@celljs/ta-web 4.9.1 → 4.10.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 +4 -3
- package/README.md +4 -3
- package/esm/browser/assistant/assistant-chat-list.js +8 -2
- package/esm/browser/assistant/assistant-extension.d.ts +8 -1
- package/esm/browser/assistant/assistant-extension.js +20 -0
- package/esm/browser/assistant/assistant-protocol.d.ts +3 -1
- package/esm/browser/assistant/assistant-task-util.d.ts +2 -0
- package/esm/browser/assistant/assistant-task-util.js +5 -3
- package/esm/browser/assistant/assistant-view.js +81 -56
- package/esm/browser/assistant/assistant.d.ts +10 -1
- package/esm/browser/assistant/assistant.js +44 -5
- package/esm/browser/chat/chat-packages.d.ts +39 -0
- package/esm/browser/chat/chat-packages.js +70 -0
- package/esm/browser/chat/chat-protocol.d.ts +23 -1
- package/esm/browser/chat/chat-stores.d.ts +59 -0
- package/esm/browser/chat/chat-stores.js +121 -0
- package/esm/browser/chat/chat-util.d.ts +17 -0
- package/esm/browser/chat/chat-util.js +61 -0
- package/esm/browser/chat/chat-view.js +33 -12
- package/esm/browser/chat/chat.d.ts +31 -39
- package/esm/browser/chat/chat.js +226 -175
- package/esm/browser/components/app-nav.d.ts +6 -3
- package/esm/browser/components/app-nav.js +19 -10
- package/esm/browser/components/app-shell-hooks.d.ts +2 -2
- package/esm/browser/components/app-shell-hooks.js +7 -3
- package/esm/browser/components/app-view.js +75 -21
- package/esm/browser/components/chat-list.d.ts +20 -2
- package/esm/browser/components/chat-list.js +138 -22
- package/esm/browser/components/composer-box.d.ts +5 -5
- package/esm/browser/components/composer-box.js +111 -4
- package/esm/browser/components/composer.d.ts +7 -0
- package/esm/browser/components/composer.js +5 -4
- package/esm/browser/components/connection-bar.js +50 -17
- package/esm/browser/components/context-menu.d.ts +30 -4
- package/esm/browser/components/context-menu.js +199 -37
- package/esm/browser/components/conversation-scroll.d.ts +129 -6
- package/esm/browser/components/conversation-scroll.js +429 -109
- package/esm/browser/components/earlier-messages.d.ts +2 -1
- package/esm/browser/components/earlier-messages.js +2 -17
- package/esm/browser/components/editor-area.d.ts +3 -1
- package/esm/browser/components/editor-area.js +6 -5
- package/esm/browser/components/empty-pictures.d.ts +0 -2
- package/esm/browser/components/empty-pictures.js +0 -16
- package/esm/browser/components/folder-picker.d.ts +5 -2
- package/esm/browser/components/folder-picker.js +26 -8
- package/esm/browser/components/held-talk.d.ts +28 -0
- package/esm/browser/components/held-talk.js +76 -0
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/icon.d.ts +2 -2
- package/esm/browser/components/icon.js +5 -6
- package/esm/browser/components/image-viewer.d.ts +124 -0
- package/esm/browser/components/image-viewer.js +397 -0
- package/esm/browser/components/lightbox.d.ts +11 -0
- package/esm/browser/components/lightbox.js +24 -0
- package/esm/browser/components/markdown.d.ts +6 -2
- package/esm/browser/components/markdown.js +24 -10
- package/esm/browser/components/media.js +1 -10
- package/esm/browser/components/message-footer.d.ts +16 -2
- package/esm/browser/components/message-footer.js +29 -12
- package/esm/browser/components/message-list.d.ts +24 -3
- package/esm/browser/components/message-list.js +149 -20
- package/esm/browser/components/message-menu.d.ts +3 -1
- package/esm/browser/components/message-menu.js +18 -3
- package/esm/browser/components/nav-places.d.ts +16 -1
- package/esm/browser/components/nav-places.js +12 -3
- package/esm/browser/components/phone-shell.d.ts +4 -1
- package/esm/browser/components/phone-shell.js +3 -1
- package/esm/browser/components/run-status.js +3 -3
- package/esm/browser/components/session-settings.d.ts +6 -0
- package/esm/browser/components/session-settings.js +14 -1
- package/esm/browser/components/session-view.js +8 -4
- package/esm/browser/components/settings-parts.d.ts +2 -2
- package/esm/browser/components/settings-parts.js +24 -1
- package/esm/browser/components/swipe-row.d.ts +2 -2
- package/esm/browser/components/swipe-row.js +7 -3
- package/esm/browser/components/tool-view.js +14 -12
- package/esm/browser/components/voice-button.d.ts +1 -1
- package/esm/browser/components/voice-button.js +1 -1
- package/esm/browser/components/voice-talk.d.ts +43 -0
- package/esm/browser/components/voice-talk.js +222 -0
- package/esm/browser/device/device.d.ts +3 -0
- package/esm/browser/device/device.js +11 -1
- package/esm/browser/device/hold.d.ts +42 -0
- package/esm/browser/device/hold.js +136 -0
- package/esm/browser/device/launch-screen.d.ts +1 -1
- package/esm/browser/device/launch-screen.js +1 -1
- package/esm/browser/device/long-press.d.ts +2 -0
- package/esm/browser/device/long-press.js +16 -1
- package/esm/browser/device/pull-down.d.ts +4 -2
- package/esm/browser/device/pull-down.js +64 -76
- package/esm/browser/device/row-swipe.d.ts +35 -10
- package/esm/browser/device/row-swipe.js +149 -71
- package/esm/browser/device/shake-undo.d.ts +16 -0
- package/esm/browser/device/shake-undo.js +59 -0
- package/esm/browser/device/sheet-swipe.d.ts +118 -18
- package/esm/browser/device/sheet-swipe.js +406 -107
- package/esm/browser/extension/web-extension-api.d.ts +97 -1
- package/esm/browser/extension/web-extension-code.d.ts +6 -0
- package/esm/browser/extension/web-extension-code.js +24 -0
- package/esm/browser/extension/web-extension-protocol.d.ts +23 -1
- package/esm/browser/extension/web-extension-protocol.js +8 -0
- package/esm/browser/extension/web-extensions.d.ts +14 -1
- package/esm/browser/extension/web-extensions.js +122 -23
- package/esm/browser/files/files-protocol.d.ts +25 -0
- package/esm/browser/files/files-protocol.js +2 -0
- package/esm/browser/files/files.d.ts +35 -0
- package/esm/browser/files/files.js +119 -0
- package/esm/browser/i18n/locales.d.ts +24 -2
- package/esm/browser/i18n/messages.d.ts +23 -1
- package/esm/browser/i18n/messages.js +48 -4
- package/esm/browser/index.d.ts +6 -0
- package/esm/browser/index.js +6 -0
- package/esm/browser/notices/notices-protocol.d.ts +9 -1
- package/esm/browser/notices/notices.d.ts +2 -0
- package/esm/browser/notices/notices.js +20 -10
- package/esm/browser/offline/device-values.d.ts +55 -0
- package/esm/browser/offline/device-values.js +142 -0
- package/esm/browser/offline/kept-chats-protocol.d.ts +17 -0
- package/esm/browser/offline/kept-chats-protocol.js +2 -0
- package/esm/browser/offline/kept-chats.d.ts +47 -0
- package/esm/browser/offline/kept-chats.js +146 -0
- package/esm/browser/offline/offline-reads.d.ts +44 -0
- package/esm/browser/offline/offline-reads.js +107 -0
- package/esm/browser/settings/settings-protocol.d.ts +2 -0
- package/esm/browser/settings/settings-protocol.js +2 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +57 -17
- package/esm/browser/style/device.js +27 -4
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +67 -15
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +2 -1
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +46 -3
- package/esm/browser/util/frame.d.ts +5 -4
- package/esm/browser/util/frame.js +5 -4
- package/esm/browser/util/markdown.d.ts +18 -1
- package/esm/browser/util/markdown.js +119 -5
- package/esm/browser/util/process.d.ts +21 -0
- package/esm/browser/util/process.js +45 -1
- package/esm/browser/util/voice.d.ts +5 -2
- package/esm/browser/util/voice.js +6 -3
- package/esm/browser/util/zoom.d.ts +46 -0
- package/esm/browser/util/zoom.js +96 -0
- package/esm/browser/workbench-calls.d.ts +59 -0
- package/esm/browser/workbench-calls.js +141 -0
- package/esm/browser/workbench-protocol.d.ts +5 -1
- package/esm/browser/workbench-util.d.ts +7 -0
- package/esm/browser/workbench-util.js +9 -2
- package/esm/browser/workbench.d.ts +14 -5
- package/esm/browser/workbench.js +51 -31
- package/lib/browser/assistant/assistant-chat-list.js +8 -2
- package/lib/browser/assistant/assistant-extension.d.ts +8 -1
- package/lib/browser/assistant/assistant-extension.js +20 -0
- package/lib/browser/assistant/assistant-protocol.d.ts +3 -1
- package/lib/browser/assistant/assistant-task-util.d.ts +2 -0
- package/lib/browser/assistant/assistant-task-util.js +5 -3
- package/lib/browser/assistant/assistant-view.js +78 -53
- package/lib/browser/assistant/assistant.d.ts +10 -1
- package/lib/browser/assistant/assistant.js +44 -5
- package/lib/browser/chat/chat-packages.d.ts +40 -0
- package/lib/browser/chat/chat-packages.js +74 -0
- package/lib/browser/chat/chat-protocol.d.ts +23 -1
- package/lib/browser/chat/chat-stores.d.ts +60 -0
- package/lib/browser/chat/chat-stores.js +125 -0
- package/lib/browser/chat/chat-util.d.ts +18 -0
- package/lib/browser/chat/chat-util.js +64 -0
- package/lib/browser/chat/chat-view.js +33 -12
- package/lib/browser/chat/chat.d.ts +31 -39
- package/lib/browser/chat/chat.js +227 -176
- package/lib/browser/components/app-nav.d.ts +6 -3
- package/lib/browser/components/app-nav.js +17 -8
- package/lib/browser/components/app-shell-hooks.d.ts +2 -2
- package/lib/browser/components/app-shell-hooks.js +7 -3
- package/lib/browser/components/app-view.js +74 -20
- package/lib/browser/components/chat-list.d.ts +20 -2
- package/lib/browser/components/chat-list.js +137 -21
- package/lib/browser/components/composer-box.d.ts +5 -5
- package/lib/browser/components/composer-box.js +111 -4
- package/lib/browser/components/composer.d.ts +7 -0
- package/lib/browser/components/composer.js +5 -4
- package/lib/browser/components/connection-bar.js +48 -15
- package/lib/browser/components/context-menu.d.ts +30 -4
- package/lib/browser/components/context-menu.js +198 -36
- package/lib/browser/components/conversation-scroll.d.ts +129 -6
- package/lib/browser/components/conversation-scroll.js +431 -110
- package/lib/browser/components/earlier-messages.d.ts +2 -1
- package/lib/browser/components/earlier-messages.js +2 -17
- package/lib/browser/components/editor-area.d.ts +3 -1
- package/lib/browser/components/editor-area.js +5 -4
- package/lib/browser/components/empty-pictures.d.ts +0 -2
- package/lib/browser/components/empty-pictures.js +0 -17
- package/lib/browser/components/folder-picker.d.ts +5 -2
- package/lib/browser/components/folder-picker.js +26 -8
- package/lib/browser/components/held-talk.d.ts +29 -0
- package/lib/browser/components/held-talk.js +79 -0
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/icon.d.ts +2 -2
- package/lib/browser/components/icon.js +7 -6
- package/lib/browser/components/image-viewer.d.ts +125 -0
- package/lib/browser/components/image-viewer.js +435 -0
- package/lib/browser/components/lightbox.d.ts +12 -0
- package/lib/browser/components/lightbox.js +60 -0
- package/lib/browser/components/markdown.d.ts +6 -2
- package/lib/browser/components/markdown.js +24 -10
- package/lib/browser/components/media.js +2 -11
- package/lib/browser/components/message-footer.d.ts +16 -2
- package/lib/browser/components/message-footer.js +31 -12
- package/lib/browser/components/message-list.d.ts +24 -3
- package/lib/browser/components/message-list.js +146 -16
- package/lib/browser/components/message-menu.d.ts +3 -1
- package/lib/browser/components/message-menu.js +17 -2
- package/lib/browser/components/nav-places.d.ts +16 -1
- package/lib/browser/components/nav-places.js +13 -3
- package/lib/browser/components/phone-shell.d.ts +4 -1
- package/lib/browser/components/phone-shell.js +3 -1
- package/lib/browser/components/run-status.js +3 -3
- package/lib/browser/components/session-settings.d.ts +6 -0
- package/lib/browser/components/session-settings.js +14 -1
- package/lib/browser/components/session-view.js +7 -3
- package/lib/browser/components/settings-parts.d.ts +2 -2
- package/lib/browser/components/settings-parts.js +24 -1
- package/lib/browser/components/swipe-row.d.ts +2 -2
- package/lib/browser/components/swipe-row.js +7 -3
- package/lib/browser/components/tool-view.js +14 -12
- package/lib/browser/components/voice-button.d.ts +1 -1
- package/lib/browser/components/voice-button.js +1 -1
- package/lib/browser/components/voice-talk.d.ts +44 -0
- package/lib/browser/components/voice-talk.js +260 -0
- package/lib/browser/device/device.d.ts +3 -0
- package/lib/browser/device/device.js +11 -1
- package/lib/browser/device/hold.d.ts +43 -0
- package/lib/browser/device/hold.js +173 -0
- package/lib/browser/device/launch-screen.d.ts +1 -1
- package/lib/browser/device/launch-screen.js +1 -1
- package/lib/browser/device/long-press.d.ts +2 -0
- package/lib/browser/device/long-press.js +16 -1
- package/lib/browser/device/pull-down.d.ts +4 -2
- package/lib/browser/device/pull-down.js +63 -75
- package/lib/browser/device/row-swipe.d.ts +35 -10
- package/lib/browser/device/row-swipe.js +148 -70
- package/lib/browser/device/shake-undo.d.ts +17 -0
- package/lib/browser/device/shake-undo.js +63 -0
- package/lib/browser/device/sheet-swipe.d.ts +118 -18
- package/lib/browser/device/sheet-swipe.js +410 -108
- package/lib/browser/extension/web-extension-api.d.ts +97 -1
- package/lib/browser/extension/web-extension-code.d.ts +6 -0
- package/lib/browser/extension/web-extension-code.js +24 -0
- package/lib/browser/extension/web-extension-protocol.d.ts +23 -1
- package/lib/browser/extension/web-extension-protocol.js +9 -1
- package/lib/browser/extension/web-extensions.d.ts +14 -1
- package/lib/browser/extension/web-extensions.js +120 -21
- package/lib/browser/files/files-protocol.d.ts +26 -0
- package/lib/browser/files/files-protocol.js +5 -0
- package/lib/browser/files/files.d.ts +36 -0
- package/lib/browser/files/files.js +122 -0
- package/lib/browser/i18n/locales.d.ts +24 -2
- package/lib/browser/i18n/messages.d.ts +23 -1
- package/lib/browser/i18n/messages.js +48 -4
- package/lib/browser/index.d.ts +6 -0
- package/lib/browser/index.js +6 -0
- package/lib/browser/notices/notices-protocol.d.ts +9 -1
- package/lib/browser/notices/notices.d.ts +2 -0
- package/lib/browser/notices/notices.js +20 -10
- package/lib/browser/offline/device-values.d.ts +56 -0
- package/lib/browser/offline/device-values.js +148 -0
- package/lib/browser/offline/kept-chats-protocol.d.ts +18 -0
- package/lib/browser/offline/kept-chats-protocol.js +5 -0
- package/lib/browser/offline/kept-chats.d.ts +48 -0
- package/lib/browser/offline/kept-chats.js +149 -0
- package/lib/browser/offline/offline-reads.d.ts +45 -0
- package/lib/browser/offline/offline-reads.js +111 -0
- package/lib/browser/settings/settings-protocol.d.ts +2 -0
- package/lib/browser/settings/settings-protocol.js +2 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +57 -17
- package/lib/browser/style/device.js +27 -4
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +67 -15
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +2 -1
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +46 -3
- package/lib/browser/util/frame.d.ts +5 -4
- package/lib/browser/util/frame.js +5 -4
- package/lib/browser/util/markdown.d.ts +18 -1
- package/lib/browser/util/markdown.js +119 -5
- package/lib/browser/util/process.d.ts +21 -0
- package/lib/browser/util/process.js +46 -2
- package/lib/browser/util/voice.d.ts +5 -2
- package/lib/browser/util/voice.js +6 -3
- package/lib/browser/util/zoom.d.ts +47 -0
- package/lib/browser/util/zoom.js +99 -0
- package/lib/browser/workbench-calls.d.ts +60 -0
- package/lib/browser/workbench-calls.js +145 -0
- package/lib/browser/workbench-protocol.d.ts +5 -1
- package/lib/browser/workbench-util.d.ts +7 -0
- package/lib/browser/workbench-util.js +10 -3
- package/lib/browser/workbench.d.ts +14 -5
- package/lib/browser/workbench.js +51 -31
- package/package.json +10 -10
- package/public/launch.svg +46 -42
|
@@ -1,2 +1,2 @@
|
|
|
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.ta-scroll { flex: 1; 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.ta-message { display: flex; flex-direction: column; gap: 8px; color: var(--ta-body); line-height: 1.75; }\n.ta-user { align-items: flex-end; }\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 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.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.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\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.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.35; color: var(--ta-text); font-size: calc(15px * 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.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 14px 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.ta-table { overflow-x: auto; 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.5; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; }\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-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; 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; 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: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-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.ta-lightbox { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 24px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }\n.ta-lightbox:not([open]) { display: none; }\n.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }\n.ta-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }\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: 26px; 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; }\n@media (hover: hover) { button.ta-tool-title:hover, .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-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 .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.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.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 { 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 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.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\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-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: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-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.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(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ta-border); border-radius: 999px; background: color-mix(in srgb, var(--ta-card) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\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-bar .ta-zoom-scale { min-width: 50px; }\n.ta-zoom-bar .ta-zoom-scale:disabled { opacity: 1; }\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) .ta-zoom-bar { 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-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-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.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";
|
|
@@ -7,12 +7,13 @@ export const CONVERSATION_STYLE = `
|
|
|
7
7
|
.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
|
|
8
8
|
.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)); }
|
|
9
9
|
.ta-title { font-weight: 600; }
|
|
10
|
-
|
|
10
|
+
/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */
|
|
11
|
+
.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }
|
|
11
12
|
.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; }
|
|
12
13
|
/* An empty conversation: the welcome in the middle of the room, as that of the double. */
|
|
13
14
|
.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }
|
|
14
15
|
.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; }
|
|
15
|
-
.ta-message { display: flex; flex-direction: column; gap: 8px; color: var(--ta-body); line-height: 1.75; }
|
|
16
|
+
.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }
|
|
16
17
|
.ta-user { align-items: flex-end; }
|
|
17
18
|
.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; }
|
|
18
19
|
/* A skill the user ran: its name on one line, which opens to the skill's file */
|
|
@@ -23,6 +24,10 @@ export const CONVERSATION_STYLE = `
|
|
|
23
24
|
.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
|
24
25
|
.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }
|
|
25
26
|
.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)); }
|
|
27
|
+
/* A message that did not go: what to do with it, in the place of its footer */
|
|
28
|
+
.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)); }
|
|
29
|
+
.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }
|
|
30
|
+
.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }
|
|
26
31
|
.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; }
|
|
27
32
|
.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }
|
|
28
33
|
@media (hover: none) { .ta-footer { opacity: 1; } }
|
|
@@ -31,6 +36,9 @@ export const CONVERSATION_STYLE = `
|
|
|
31
36
|
.ta-footer-time { padding: 0 6px; white-space: nowrap; }
|
|
32
37
|
.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }
|
|
33
38
|
.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }
|
|
39
|
+
/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */
|
|
40
|
+
.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; }
|
|
41
|
+
.ta-thread-item > .ta-time-break { margin-bottom: 16px; }
|
|
34
42
|
.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }
|
|
35
43
|
.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); }
|
|
36
44
|
.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; }
|
|
@@ -55,12 +63,17 @@ export const CONVERSATION_STYLE = `
|
|
|
55
63
|
.ta-markdown > :first-child { margin-top: 0; }
|
|
56
64
|
.ta-markdown > :last-child { margin-bottom: 0; }
|
|
57
65
|
.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }
|
|
58
|
-
|
|
66
|
+
/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */
|
|
67
|
+
.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; }
|
|
68
|
+
.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }
|
|
69
|
+
.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }
|
|
70
|
+
.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }
|
|
59
71
|
.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }
|
|
60
72
|
.ta-markdown strong { color: var(--ta-text); font-weight: 600; }
|
|
61
73
|
.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }
|
|
62
|
-
|
|
63
|
-
.ta-markdown
|
|
74
|
+
/* A long path in a code span breaks where the line ends, each piece in a box of its own. */
|
|
75
|
+
.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; }
|
|
76
|
+
.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }
|
|
64
77
|
.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
65
78
|
.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; }
|
|
66
79
|
.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
@@ -76,9 +89,15 @@ export const CONVERSATION_STYLE = `
|
|
|
76
89
|
.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }
|
|
77
90
|
.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }
|
|
78
91
|
.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.ta-table
|
|
92
|
+
/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the
|
|
93
|
+
conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */
|
|
94
|
+
.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }
|
|
95
|
+
.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; }
|
|
96
|
+
.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; }
|
|
97
|
+
.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }
|
|
98
|
+
.ta-table [data-align='center'] { text-align: center; }
|
|
99
|
+
.ta-table [data-align='right'] { text-align: right; }
|
|
100
|
+
.ta-table :not(pre) > code { overflow-wrap: normal; }
|
|
82
101
|
.ta-table tr:last-child td { border-bottom: 0; }
|
|
83
102
|
.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }
|
|
84
103
|
.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; }
|
|
@@ -92,7 +111,7 @@ export const CONVERSATION_STYLE = `
|
|
|
92
111
|
.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }
|
|
93
112
|
.ta-terminal .xterm-viewport { background: transparent !important; }
|
|
94
113
|
.ta-terminal .xterm-helper-textarea { caret-color: transparent; }
|
|
95
|
-
.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; color: var(--ta-body); }
|
|
114
|
+
.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }
|
|
96
115
|
.ta-code-actions { display: flex; align-items: center; gap: 2px; }
|
|
97
116
|
.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }
|
|
98
117
|
.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }
|
|
@@ -101,7 +120,7 @@ export const CONVERSATION_STYLE = `
|
|
|
101
120
|
.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }
|
|
102
121
|
.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }
|
|
103
122
|
.ta-code-float .ta-icon-button { background: var(--ta-code); }
|
|
104
|
-
.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; text-align: center; }
|
|
123
|
+
.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }
|
|
105
124
|
.ta-math-block .katex-display { margin: 0; }
|
|
106
125
|
.ta-markdown .katex { font-size: 1.1em; }
|
|
107
126
|
.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }
|
|
@@ -120,10 +139,30 @@ div.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px;
|
|
|
120
139
|
.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }
|
|
121
140
|
.ta-media-loading.ta-media-audio { height: 40px; }
|
|
122
141
|
.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; }
|
|
123
|
-
|
|
124
|
-
.ta-
|
|
125
|
-
.ta-
|
|
126
|
-
.ta-
|
|
142
|
+
/* A picture that zooms (image-viewer.tsx): what scrolls is the box; the picture sits in it where ImageZoom puts it. */
|
|
143
|
+
.ta-zoom { position: relative; display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; }
|
|
144
|
+
.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; }
|
|
145
|
+
.ta-zoom-stage { position: relative; }
|
|
146
|
+
.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; }
|
|
147
|
+
.ta-zoom-stage img:not([data-ready]) { opacity: 0; }
|
|
148
|
+
.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }
|
|
149
|
+
.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }
|
|
150
|
+
.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }
|
|
151
|
+
.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ta-border); border-radius: 999px; background: color-mix(in srgb, var(--ta-card) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }
|
|
152
|
+
.ta-zoom-bar button { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
|
|
153
|
+
.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }
|
|
154
|
+
.ta-zoom-bar button:disabled { opacity: 0.4; }
|
|
155
|
+
.ta-zoom-bar .ta-zoom-scale { min-width: 50px; }
|
|
156
|
+
.ta-zoom-bar .ta-zoom-scale:disabled { opacity: 1; }
|
|
157
|
+
/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */
|
|
158
|
+
:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) .ta-zoom-bar { opacity: 0; }
|
|
159
|
+
.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; }
|
|
160
|
+
.ta-lightbox[open] { display: flex; }
|
|
161
|
+
.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }
|
|
162
|
+
.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }
|
|
163
|
+
.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }
|
|
164
|
+
.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; }
|
|
165
|
+
.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }
|
|
127
166
|
.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)); }
|
|
128
167
|
.ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }
|
|
129
168
|
.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }
|
|
@@ -131,16 +170,17 @@ div.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px;
|
|
|
131
170
|
/* Tools: one line a step, a dot for its state; it opens to what it did */
|
|
132
171
|
.ta-tool { min-width: 0; }
|
|
133
172
|
.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }
|
|
134
|
-
.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 26px; 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); }
|
|
173
|
+
.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); }
|
|
135
174
|
button.ta-tool-title { transition: background 120ms; }
|
|
136
|
-
|
|
175
|
+
button.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }
|
|
176
|
+
@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }
|
|
137
177
|
button.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }
|
|
138
178
|
.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); }
|
|
139
179
|
.ta-tool-verb { flex: none; color: var(--ta-text); }
|
|
140
180
|
.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }
|
|
141
181
|
.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }
|
|
142
182
|
.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }
|
|
143
|
-
button.ta-tool-title:hover .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }
|
|
183
|
+
button.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }
|
|
144
184
|
button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }
|
|
145
185
|
.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }
|
|
146
186
|
.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }
|
|
@@ -28,13 +28,25 @@ export const DEVICE_STYLE = `
|
|
|
28
28
|
*/
|
|
29
29
|
@media ${DeviceMedia.TOUCH} {
|
|
30
30
|
button, a, summary, label, [role='button'], [role='tab'], [role^='menuitem'], [role='treeitem'], [role='option'] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
|
|
31
|
+
/* What a held finger does something with (device/hold.ts): the finger is not the browser's to pan. */
|
|
32
|
+
[data-held] { touch-action: none; }
|
|
31
33
|
button, .ta-rail, .ta-main-head, .ta-session-header, .ta-chat-item, .ta-tabs, .ta-footer, .ta-turn-head, .ta-run-line, .ta-bottom, .ta-sidebar { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
|
|
34
|
+
/* A row of a list (SwipeRow, also of web extensions) is held for its menu, not to select its text. */
|
|
35
|
+
.ta-swipe-row { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
|
|
36
|
+
.ta-swipe-row :is(input, textarea, [contenteditable]) { -webkit-user-select: text; user-select: text; }
|
|
32
37
|
/* Positioned for the hit area; the others are already (an icon button, a rail item, a close of a tab), some absolutely (the delete of a chat). */
|
|
33
38
|
.ta-send, .ta-chip-filter { position: relative; }
|
|
34
39
|
.ta-icon-button::after, .ta-send::after, .ta-rail-item::after { content: ''; position: absolute; inset: -6px; }
|
|
35
40
|
.ta-chip-filter::after { content: ''; position: absolute; inset: -8px -2px; }
|
|
36
41
|
.ta-editor-tab-close::after, .ta-attachment-remove::after { content: ''; position: absolute; inset: -10px; }
|
|
37
42
|
.ta-send { width: 34px; height: 34px; --ta-control: 34px; }
|
|
43
|
+
/*
|
|
44
|
+
* No hover to show the footers of the messages on: only the last turn keeps its own, its copy and fork. When a
|
|
45
|
+
* message came and what a turn took are atop the menu of a held message, which does what the footers do;
|
|
46
|
+
* the time shows between messages far apart, as in WeChat.
|
|
47
|
+
*/
|
|
48
|
+
.ta-footer:not(.ta-footer-latest), .ta-footer-latest > .ta-footer-time, .ta-footer-latest > .ta-footer-usage, .ta-footer-latest > .ta-footer-debug { display: none; }
|
|
49
|
+
.ta-time-break { display: block; }
|
|
38
50
|
/* The buttons under a message stand in a row, too close to grow invisibly: larger, the glyph where it was (-11px: (36 - 14) / 2). */
|
|
39
51
|
.ta-footer { min-height: 36px; gap: 0; }
|
|
40
52
|
.ta-footer-button { position: relative; width: 36px; height: 36px; border-radius: 10px; }
|
|
@@ -50,6 +62,7 @@ export const DEVICE_STYLE = `
|
|
|
50
62
|
.ta-context-menu-item { height: 44px; padding: 0 14px; font-size: calc(15px * var(--ta-font-scale)); border-radius: 10px; }
|
|
51
63
|
.ta-context-menu-item:active:not(:disabled) { background: var(--ta-hover); }
|
|
52
64
|
.ta-context-menu-line { margin: 4px 10px; }
|
|
65
|
+
.ta-context-menu-caption { margin: 0 10px 4px; padding: 6px 4px 10px; font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
53
66
|
.ta-icon-button:active:not(:disabled), .ta-account-item:active, .ta-chat-item:active, .ta-rail-item:active { background: var(--ta-hover); }
|
|
54
67
|
.ta-account-item { height: 44px; font-size: calc(14.5px * var(--ta-font-scale)); }
|
|
55
68
|
/* The rows of a group and its head: a finger's height; its + always there, hover is none. */
|
|
@@ -139,12 +152,22 @@ export const DEVICE_STYLE = `
|
|
|
139
152
|
.ta-swipe-row[data-swiped] > .ta-swipe-content { transform: translate3d(calc(-1 * var(--ta-swipe-width)), 0, 0); }
|
|
140
153
|
.ta-swipe-row[data-swiping] > .ta-swipe-content { transition: none; }
|
|
141
154
|
.ta-swipe-row[data-swipe-clip] > .ta-swipe-content, .ta-swipe-row[data-swipe-clip] > .ta-swipe-content > * { border-start-end-radius: 0; border-end-end-radius: 0; }
|
|
142
|
-
|
|
155
|
+
/* The actions span the row and clip what is pushed out of it, whenever the row itself clips or not: closed, they wait to its right (--ta-swipe-share), out of sight. */
|
|
156
|
+
.ta-swipe-actions { position: absolute; inset: 0; display: flex; justify-content: flex-end; overflow: hidden; border-radius: inherit; visibility: hidden; transition: visibility 0s 300ms; }
|
|
143
157
|
.ta-swipe-row[data-swiped] > .ta-swipe-actions, .ta-swipe-row[data-swiping] > .ta-swipe-actions { visibility: visible; transition: none; }
|
|
144
|
-
|
|
158
|
+
/* Closed, each action waits to the right, as far as it comes out with the row's edge (RowSwipeUtil.shift); open, where it rests. */
|
|
159
|
+
.ta-swipe-action { position: relative; width: 84px; padding: 0; border: 0; background: var(--ta-muted); color: #fff; font: inherit; font-size: calc(15px * var(--ta-font-scale)); font-weight: 500; transform: translate3d(calc(var(--ta-swipe-width) * var(--ta-swipe-share, 1)), 0, 0); transition: transform 300ms ${DeviceMotion.SHEET_CURVE}; }
|
|
160
|
+
.ta-swipe-row[data-swiped] > .ta-swipe-actions > .ta-swipe-action { transform: none; }
|
|
161
|
+
.ta-swipe-row[data-swiping] > .ta-swipe-actions > .ta-swipe-action { transition: none; }
|
|
145
162
|
.ta-swipe-action.ta-danger { background: var(--ta-red); }
|
|
146
|
-
/*
|
|
147
|
-
.ta-swipe-action:first-child::before { content: ''; position: absolute; top: 0; bottom: 0;
|
|
163
|
+
/* Each action fills what it leaves to its right as the row stretches past them (at most BEYOND_PX), under the next one; the first one what the content leaves, should their edges part by a pixel. */
|
|
164
|
+
.ta-swipe-action::after, .ta-swipe-action:first-child::before { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; background: inherit; }
|
|
165
|
+
/* Over its edge by a pixel: at a fraction of a pixel the two would show a seam. */
|
|
166
|
+
.ta-swipe-action::after { left: calc(100% - 1px); }
|
|
167
|
+
.ta-swipe-action:first-child::before { right: calc(100% - 1px); }
|
|
168
|
+
.ta-swipe-action:active { filter: brightness(0.9); }
|
|
169
|
+
/* Moved by the finger, the row is not pressed: what it shows pressed goes back to what it is under it, unless it is the one chosen. */
|
|
170
|
+
.ta-swipe-row[data-swiping] > .ta-swipe-content > :active:not([aria-current]) { background: var(--ta-swipe-bg, var(--ta-side)); }
|
|
148
171
|
|
|
149
172
|
/* Several rows chosen at once, as WeChat's multiple selection (SelectCheck, SelectBar): a round mark at the start of each, a bar under the list. */
|
|
150
173
|
.ta-select-check { flex: none; display: grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ta-muted); border-radius: 50%; color: #fff; transition: background 120ms, border-color 120ms; animation: ta-fade 160ms; }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The layout: panes and sashes, the editor area, the conversation column, the list of chats, sheets. */
|
|
2
|
-
export declare const LAYOUT_STYLE = "\n/* Layout (t5): panes the user resizes and collapses, the sashes between them, the tabs of the editor area */\n.ta-sidebar, .ta-editors-pane { position: relative; display: flex; min-height: 0; height: 100%; }\n.ta-sidebar { width: var(--ta-pane, 260px); flex: none; }\n.ta-side-view { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)) 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.ta-side-view-head { flex: 1; min-width: 0; display: flex; align-items: center; }\n.ta-main-head-view { flex: 1; min-width: 0; display: flex; align-items: center; }\n.ta-side-view-body { flex: 1; min-height: 0; overflow: auto; margin: 0 -8px; padding: 0 8px; }\n/* A list on its way (ListSkeleton), in the shapes of the rows of the lists: only after a moment, so that one that comes at once never flashes it; then it breathes, opacity only. */\n.ta-skeleton { display: flex; flex-direction: column; animation: ta-fade 240ms ease-out 180ms both; }\n.ta-skeleton-rows { display: flex; flex-direction: column; animation: ta-skeleton 1.6s ease-in-out 420ms infinite; }\n.ta-skeleton-row { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 1px 0; padding: 9px 10px; box-sizing: border-box; }\n.ta-skeleton-face { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ta-hover); }\n.ta-skeleton-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }\n.ta-skeleton-lines > span { height: 10px; border-radius: 5px; background: var(--ta-hover); }\n.ta-skeleton-lines > span + span { height: 8px; border-radius: 4px; }\n/* The top bar of a sidebar view on its way: the search box and the button where the lists have them. */\n.ta-skeleton-head { flex: 1; min-width: 0; }\n.ta-skeleton-head .ta-skeleton-rows { flex-direction: row; gap: 4px; }\n.ta-skeleton-search { flex: 1; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n.ta-skeleton-button { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* Its own rows come in over the place it kept: a fade, once (the top bar is where it was). */\n.ta-side-view[data-arrived] > .ta-side-view-body { animation: ta-fade 200ms ease-out; }\n/* Rows still on their way in it (its data not read yet) take the place of the placeholder's at once, without its moment. */\n.ta-side-view[data-arrived] .ta-skeleton { animation: none; }\n@keyframes ta-skeleton { 50% { opacity: 0.5; } }\n/* The editors may not be wider than the conversation: at most half of what the other columns leave. */\n.ta-editors-pane { width: var(--ta-pane, 480px); max-width: calc((100vw - var(--ta-left, 56px) - var(--ta-right, 0px)) / 2); flex: 0 1 auto; min-width: 280px; }\n.ta-main { min-width: 400px; }\n.ta-rail-gap { width: 24px; height: 1px; flex: none; margin: 4px 0; background: var(--ta-border); }\n.ta-sash { position: absolute; z-index: 6; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; outline: none; }\n.ta-sash-start { right: -4px; }\n.ta-sash-end { left: -4px; }\n.ta-sash::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: transparent; transition: background 120ms 0ms; }\n.ta-sash:hover::after { background: var(--ta-border-focus); transition-delay: 250ms; }\n.ta-sash.ta-dragging::after, .ta-sash:focus-visible::after { background: var(--ta-border-focus); transition-delay: 0ms; }\n.ta-resizing, .ta-resizing * { cursor: col-resize !important; user-select: none !important; }\n.ta-resizing iframe { pointer-events: none; }\n.ta-editors { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: var(--ta-titlebar); background: var(--ta-side); border-left: 1px solid var(--ta-border-muted); }\n.ta-editor-tabs { display: flex; align-items: center; gap: 8px; height: calc(56px + env(safe-area-inset-top)); flex: none; padding: env(safe-area-inset-top) 10px 0 0; border-bottom: 1px solid var(--ta-border-muted); }\n.ta-workbench-actions { display: flex; align-items: center; gap: 2px; flex: none; }\n.ta-workbench-actions .ta-icon-button { width: 32px; height: 32px; color: var(--ta-muted); }\n.ta-workbench-actions .ta-icon-button:hover, .ta-workbench-actions .ta-icon-button.ta-on { color: var(--ta-text); }\n.ta-editor-tablist { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; align-self: stretch; padding-left: 10px; overflow-x: auto; scrollbar-width: none; }\n.ta-editor-tab { position: relative; display: flex; align-items: center; flex: none; max-width: 200px; height: 32px; border-radius: 8px; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-editor-tab:hover { background: var(--ta-hover); color: var(--ta-body); }\n.ta-editor-tab.ta-active { background: var(--ta-selected); color: var(--ta-text); }\n.ta-editor-tab-button { display: flex; align-items: center; gap: 7px; min-width: 0; height: 100%; padding: 0 2px 0 10px; border: 0; background: transparent; color: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-editor-tab-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-editor-tab-close { width: 20px; height: 20px; margin-right: 6px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: inherit; opacity: 0; }\n.ta-editor-tab:hover .ta-editor-tab-close, .ta-editor-tab.ta-active .ta-editor-tab-close, .ta-editor-tab-close:focus-visible { opacity: 1; }\n.ta-editor-tab-close:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-context-menu { position: fixed; z-index: 80; min-width: 190px; max-width: 320px; display: flex; flex-direction: column; gap: 1px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 100ms ease-out; }\n.ta-context-menu-item { display: flex; align-items: center; flex: none; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); text-align: left; cursor: pointer; outline: none; }\n.ta-context-menu-item:hover:not(:disabled), .ta-context-menu-item:focus-visible { background: var(--ta-hover); }\n.ta-context-menu-item:disabled { opacity: 0.45; cursor: default; }\n.ta-context-menu-item.ta-danger { color: var(--ta-red); }\n.ta-context-menu-line { flex: none; height: 1px; margin: 5px 8px; border: 0; background: var(--ta-border-muted); }\n.ta-editor-tab.ta-preview .ta-editor-tab-button > span { font-style: italic; }\n.ta-editor-tab-close { position: relative; }\n.ta-editor-tab-dirty { position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close { opacity: 1; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close > svg { visibility: hidden; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close:hover > svg, .ta-editor-tab.ta-dirty .ta-editor-tab-close:focus-visible > svg { visibility: visible; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close:hover > .ta-editor-tab-dirty, .ta-editor-tab.ta-dirty .ta-editor-tab-close:focus-visible > .ta-editor-tab-dirty { display: none; }\n.ta-editor-body { flex: 1; min-height: 0; overflow: auto; }\n.ta-workbench-title { display: flex; align-items: center; padding: 0 6px; font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-workbench-open { position: relative; display: flex; }\n.ta-workbench-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 220px; max-height: min(440px, 70vh); overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-workbench-menu .ta-account-item { flex: none; gap: 12px; height: 36px; padding: 0 10px; font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-body); }\n.ta-workbench-menu .ta-account-item > svg { flex: none; color: var(--ta-secondary); }\n.ta-workbench-menu .ta-account-item:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-workbench-launcher { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); }\n.ta-workbench-launcher > * { width: 100%; max-width: 280px; }\n.ta-workbench-launcher-head { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 320px; margin-bottom: 24px; text-align: center; }\n.ta-workbench-launcher-title { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-workbench-launcher-hint { font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); }\n.ta-workbench-launch { display: flex; align-items: center; gap: 12px; height: 40px; flex: none; margin-bottom: 8px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-body); font-size: calc(14px * var(--ta-font-scale)); text-align: left; transition: background 120ms, color 120ms; }\n.ta-workbench-launch:last-child { margin-bottom: 0; }\n.ta-workbench-launch:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-workbench-launch > svg { flex: none; color: var(--ta-secondary); }\n.ta-workbench-launch:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-workbench-max .ta-main { display: none; }\n.ta-workbench-max .ta-editors-pane { flex: 1; width: auto; max-width: none; }\n.ta-workbench-max .ta-editors-pane > .ta-sash { display: none; }\n.ta-editor-body[hidden] { display: none; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-sash { display: none; }\n .ta-main { min-width: 0; }\n .ta-editors-pane { position: fixed; z-index: 36; inset: 0; width: auto; min-width: 0; max-width: none; animation: ta-fade 160ms; }\n .ta-editors { border-left: 0; }\n .ta-editor-tabs { height: calc(52px + env(safe-area-inset-top)); padding-right: 6px; }\n .ta-editor-tablist { padding-left: 6px; }\n .ta-editor-tab-close { opacity: 1; }\n}\n\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; padding-left: 6px; margin-top: -6px; }\n/* Under the open steps of a turn the line is one more step: the same pitch, its dot on the string's line. */\n.ta-thread-item:has(> .ta-message > .ta-process:last-child > .ta-process-steps) + .ta-run-line, .ta-msg-ta:has(> .ta-process:last-child > .ta-process-steps) + .ta-run-line { margin-top: -18px; padding-left: 4.5px; }\n.ta-status-waiting::before { background: var(--ta-yellow); }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 11px; padding: 2px 0 2px 14px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: 15px; bottom: 15px; width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6.5px; border-radius: 50%; background: var(--ta-main); }\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); margin: 2px 0; }\n.ta-step-text > .ta-status { margin-top: 6px; }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: 26px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-thinking .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; width: max-content; min-width: 220px; max-width: min(340px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* As tall as the room above the message box allows (the page minus the box and a margin), so that the sections extensions add (registerComposerAddon) are seen without scrolling; it scrolls only on a short screen. */\n.ta-plus-items { display: flex; flex-direction: column; max-height: max(200px, calc(var(--ta-viewport, 100dvh) - 200px)); overflow-y: auto; }\n.ta-plus-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-plus-item:hover:not(:disabled), .ta-plus-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-plus-item:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; color: var(--ta-secondary); }\n.ta-plus-label { flex: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-detail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-plus-chevron { flex: none; margin-left: auto; color: var(--ta-muted); }\n.ta-plus-line { height: 1px; margin: 5px 8px; border: 0; background: var(--ta-border-muted); flex: none; }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { padding: 5px 2px; }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-queue { display: flex; flex-direction: column; margin-bottom: 6px; padding: 4px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 4px 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 4px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: grid; place-items: center; color: var(--ta-muted); }\n.ta-queue-text { flex: 1; }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; min-width: 0; }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-user-images { max-width: 88%; }\n}\n\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-selected='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-removed-toggle { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-removed-toggle:hover { color: var(--ta-text); }\n.ta-chat-removed-toggle svg { transition: transform 0.15s ease; }\n.ta-chat-removed-toggle[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-row { position: relative; border-radius: 12px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n.ta-chat-delete { position: absolute; top: 50%; right: 8px; width: 30px; height: 30px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n.ta-chat-row:hover .ta-chat-time, .ta-chat-row:hover .ta-chat-line .ta-spinner { visibility: hidden; }\n/* The directory of a new conversation, beside the +, in its look: a pill as high as the +. */\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 600px) { .ta-cwd-chip { max-width: 120px; } }\n.ta-tone-0 { --tone: #f5c04a; }\n.ta-tone-1 { --tone: #6ea8fe; }\n.ta-tone-2 { --tone: #f59a5b; }\n.ta-tone-3 { --tone: #4fd1a1; }\n.ta-tone-4 { --tone: #b197fc; }\n.ta-tone-5 { --tone: #f783ac; }\n:root[data-theme='light'] .ta-tone-0 { --tone: #c88a00; }\n:root[data-theme='light'] .ta-tone-1 { --tone: #2f74e0; }\n:root[data-theme='light'] .ta-tone-2 { --tone: #d96a1c; }\n:root[data-theme='light'] .ta-tone-3 { --tone: #0f9a6a; }\n:root[data-theme='light'] .ta-tone-4 { --tone: #7b5ce0; }\n:root[data-theme='light'] .ta-tone-5 { --tone: #d6457a; }\n\n/* A dialog in the middle of the page; a sheet from the bottom on a phone */\n.ta-modal-scrim { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 12px 12px; background: rgba(0, 0, 0, 0.32); animation: ta-fade 140ms ease-out; }\n.ta-modal { position: relative; z-index: 1; width: min(520px, 100%); max-height: 76vh; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-radius: 14px; border: 1px solid var(--ta-border); background: var(--ta-card); box-shadow: var(--ta-shadow-pop); }\n.ta-modal-head { display: flex; align-items: center; justify-content: space-between; padding-left: 2px; }\n.ta-modal-title { font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-web-dialog { width: min(480px, 100%); gap: 14px; padding: 16px 18px 18px; }\n.ta-web-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-folder-bar { display: flex; align-items: center; gap: 6px; }\n.ta-folder-bar .ta-field input { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-folder-list { list-style: none; flex: none; height: min(340px, 44vh); overflow-y: auto; margin: 0; padding: 4px; border: 1px solid var(--ta-border-muted); border-radius: 10px; }\n.ta-folder-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-body); font-size: calc(13px * var(--ta-font-scale)); text-align: left; }\n.ta-folder-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-folder-item > .ta-icon:first-child, .ta-folder-chevron { color: var(--ta-muted); }\n.ta-folder-chevron { opacity: 0; }\n.ta-folder-item:hover .ta-folder-chevron { opacity: 1; }\n.ta-folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-folder-note { display: flex; justify-content: center; padding: 28px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-folder-failed { color: var(--ta-red); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n.ta-folder-note { gap: 8px; align-items: center; }\n.ta-folder-step { color: var(--ta-secondary); }\n.ta-folder-unreachable { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-folder-unreachable span { max-width: 100%; color: var(--ta-muted); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n/* The machines of the picker: this one, the hosts of ssh, + another */\n.ta-modal.ta-folder { width: min(640px, 100%); }\n.ta-folder-machines { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 0 0 2px; gap: 6px; scrollbar-width: none; }\n.ta-folder-machines::-webkit-scrollbar { display: none; }\n.ta-folder-machines .ta-icon-button { flex: none; width: 28px; height: 28px; border-radius: 14px; }\n.ta-folder-add input { width: 230px; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border-field); background: var(--ta-input); color: var(--ta-text); font-size: calc(12.5px * var(--ta-font-scale)); outline: none; }\n.ta-folder-add input:focus { border-color: var(--ta-border-focus); }\n.ta-folder-add input[aria-invalid='true'] { border-color: var(--ta-red); }\n.ta-folder-add input { width: 300px; }\n.ta-remote-state { display: inline-flex; align-items: center; gap: 6px; }\n.ta-remote-light { width: 7px; height: 7px; border-radius: 50%; background: var(--ta-border-field); flex: none; }\n.ta-remote-light.ta-on { background: var(--ta-green); }\n.ta-remote-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ta-green); flex: none; }\n/* The host of a directory of another machine, before its name */\n.ta-host-tag { display: inline-flex; align-items: center; gap: 3px; flex: none; box-sizing: border-box; max-width: 120px; height: 17px; padding: 0 5px 0 4px; margin-right: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ta-blue) 11%, transparent); color: color-mix(in srgb, var(--ta-blue) 82%, var(--ta-text)); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(17px * var(--ta-font-scale)); white-space: nowrap; vertical-align: middle; }\n.ta-host-tag > svg { flex: none; }\n.ta-host-tag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n/* In a narrow chip the host gives way before the name of the folder, and both stay inside it. */\n.ta-cwd-chip .ta-host-tag { flex: 0 10 auto; min-width: 0; margin: 0 0 0 2px; }\n.ta-cwd-chip .ta-ellipsis { flex: none; max-width: 60%; }\n/* What ssh asks, and the line while a host connects */\n.ta-remote-prompt { width: min(440px, 100%); gap: 12px; }\n.ta-remote-prompt .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-remote-message { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-hover); color: var(--ta-body); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow-y: auto; }\n.ta-remote-status { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top) + var(--ta-titlebar, 0px)); z-index: 65; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ta-fade 160ms ease-out; }\n/* The picker says it itself */\nbody:has(.ta-folder) .ta-remote-status { display: none; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-modal-scrim { align-items: flex-end; padding: 0; }\n .ta-modal { max-height: 88dvh; border-radius: 16px 16px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); animation: ta-up 260ms var(--ta-ease); }\n .ta-chat-row:hover .ta-chat-time, .ta-chat-row:hover .ta-chat-line .ta-spinner { visibility: visible; }\n .ta-chat-row:not(.ta-selected) .ta-chat-delete { display: none; }\n .ta-chat-row.ta-selected .ta-chat-delete { opacity: 1; }\n .ta-chat-row.ta-selected .ta-chat-time, .ta-chat-row.ta-selected .ta-chat-line .ta-spinner { visibility: hidden; }\n .ta-folder-chevron { opacity: 1; }\n}\n\n/* Performance (t6): rows far up the conversation skip layout and paint until they come into view */\n.ta-thread-item { display: flex; flex-direction: column; min-width: 0; }\n.ta-thread-item.ta-settled { content-visibility: auto; contain-intrinsic-size: auto 160px; }\n/* Above the messages while the earlier ones of a long conversation load, as it is scrolled up. */\n.ta-earlier { display: flex; justify-content: center; padding: 12px 0; }\n\n/* Model accounts: the sign-in page, the dialog and a sign-in under way */\n.ta-login-card { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }\n.ta-login-card h1 { margin: 6px 0 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-login-card > p { margin: 0 0 6px; color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-login-card .ta-auth-panel { width: 100%; text-align: left; }\n.ta-login-card .ta-auth-list { max-height: min(46vh, 420px); }\n.ta-login-later { margin-top: 2px; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; }\n.ta-login-later:hover { color: var(--ta-text); }\n.ta-login-card .ta-pic-cards { margin-top: 4px; }\n.ta-auth-dialog { width: min(520px, 100%); gap: 12px; padding: 16px 18px 18px; }\n.ta-auth-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-auth-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-auth-list { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 56vh; }\n.ta-auth-group h3 { margin: 0 0 4px; padding: 0 10px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-auth-row { display: flex; align-items: center; gap: 4px; }\n.ta-auth-item { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-body); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-auth-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-auth-item > .ta-icon:last-child { color: var(--ta-muted); }\n.ta-auth-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }\n.ta-auth-kind { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--ta-raised); color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-auth-note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-auth-on { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--ta-green); font-size: calc(12px * var(--ta-font-scale)); max-width: 45%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }\n.ta-auth-item .ta-auth-on + .ta-icon { margin-left: 0; }\n.ta-auth-item > .ta-auth-kind + .ta-icon { margin-left: auto; }\n.ta-auth-flow { display: flex; flex-direction: column; gap: 14px; text-align: left; }\n.ta-auth-flow-head { display: flex; align-items: center; gap: 8px; }\n.ta-auth-flow-title { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-auth-step { display: flex; flex-direction: column; gap: 10px; }\n.ta-auth-step p { margin: 0; color: var(--ta-body); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-auth-actions { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-auth-code { align-self: flex-start; padding: 8px 14px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-text); font-family: var(--ta-mono); font-size: calc(20px * var(--ta-font-scale)); letter-spacing: 0.12em; user-select: all; }\n.ta-auth-options { display: flex; flex-direction: column; gap: 2px; }\n.ta-auth-progress { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-auth-link { display: block; margin-top: 4px; color: var(--ta-link, var(--ta-brand)); word-break: break-all; }\n/* The sign-in comes in step by step; its pictures answer the pointer */\n@keyframes ta-rise { from { transform: translateY(10px); opacity: 0; } }\n@keyframes ta-key-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; transform: translateY(-1.5px); } }\n@keyframes ta-tick { from { stroke-dashoffset: 12; } }\n@keyframes ta-code-in { from { letter-spacing: 0.4em; opacity: 0; } }\n.ta-login-card > * { animation: ta-rise 420ms var(--ta-ease) both; }\n.ta-login-card > :nth-child(2) { animation-delay: 60ms; }\n.ta-login-card > :nth-child(3) { animation-delay: 100ms; }\n.ta-login-card > :nth-child(4) { animation-delay: 150ms; }\n.ta-login-card > :nth-child(5) { animation-delay: 220ms; }\n.ta-login-card .ta-pic-card:hover .ta-pic-tick { stroke-dasharray: 12; animation: ta-tick 420ms var(--ta-ease) both; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot { animation: ta-key-dot 900ms ease-in-out infinite; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot:nth-child(n+8) { animation-delay: 90ms; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot:nth-child(n+10) { animation-delay: 180ms; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot:nth-child(n+12) { animation-delay: 270ms; }\n.ta-auth-flow > *, .ta-auth-panel > *, .ta-auth-group { animation: ta-in 260ms var(--ta-ease) both; }\n.ta-auth-code { animation: ta-code-in 420ms var(--ta-ease) both; }\n.ta-auth-item { transition: background 120ms, color 120ms, transform 120ms var(--ta-ease); }\n.ta-auth-item:hover > .ta-icon:last-child { transform: translateX(2px); transition: transform 160ms var(--ta-ease); }\n/* Ta on a phone: a picture of the way through the relay, the code to scan, the devices */\n@keyframes ta-qr-in { from { transform: scale(.94); opacity: 0; } }\n.ta-relay-dialog { width: min(440px, 100%); gap: 14px; padding: 16px 18px 18px; }\n.ta-relay-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-relay-start, .ta-relay-pairing { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: ta-in 260ms var(--ta-ease) both; }\n.ta-relay-start p, .ta-relay-pairing p { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-relay-pic { width: 100%; max-width: 320px; border-radius: 0; }\n.ta-relay-form { display: flex; gap: 8px; width: 100%; }\n.ta-relay-form .ta-field { flex: 1; }\n.ta-qr { width: 220px; height: 220px; border-radius: 12px; animation: ta-qr-in 320ms var(--ta-ease) both; }\n.ta-relay-state { margin-left: 8px; font-weight: 400; color: var(--ta-muted); }\n.ta-relay-state::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--ta-muted); vertical-align: middle; }\n.ta-relay-state.ta-on::before { background: var(--ta-green); }\n.ta-relay-device { gap: 10px; height: 38px; padding: 0 4px 0 10px; color: var(--ta-muted); }\n.ta-relay-device .ta-auth-note { flex: none; margin-left: auto; }\n";
|
|
2
|
+
export declare const LAYOUT_STYLE = "\n/* Layout (t5): panes the user resizes and collapses, the sashes between them, the tabs of the editor area */\n.ta-sidebar, .ta-editors-pane { position: relative; display: flex; min-height: 0; height: 100%; }\n.ta-sidebar { width: var(--ta-pane, 260px); flex: none; }\n.ta-side-view { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)) 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.ta-side-view-head { flex: 1; min-width: 0; display: flex; align-items: center; }\n.ta-main-head-view { flex: 1; min-width: 0; display: flex; align-items: center; }\n.ta-side-view-body { flex: 1; min-height: 0; overflow: auto; margin: 0 -8px; padding: 0 8px; }\n/* A list on its way (ListSkeleton), in the shapes of the rows of the lists: only after a moment, so that one that comes at once never flashes it; then it breathes, opacity only. */\n.ta-skeleton { display: flex; flex-direction: column; animation: ta-fade 240ms ease-out 180ms both; }\n.ta-skeleton-rows { display: flex; flex-direction: column; animation: ta-skeleton 1.6s ease-in-out 420ms infinite; }\n.ta-skeleton-row { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 1px 0; padding: 9px 10px; box-sizing: border-box; }\n.ta-skeleton-face { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ta-hover); }\n.ta-skeleton-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }\n.ta-skeleton-lines > span { height: 10px; border-radius: 5px; background: var(--ta-hover); }\n.ta-skeleton-lines > span + span { height: 8px; border-radius: 4px; }\n/* The top bar of a sidebar view on its way: the search box and the button where the lists have them. */\n.ta-skeleton-head { flex: 1; min-width: 0; }\n.ta-skeleton-head .ta-skeleton-rows { flex-direction: row; gap: 4px; }\n.ta-skeleton-search { flex: 1; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n.ta-skeleton-button { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* Its own rows come in over the place it kept: a fade, once (the top bar is where it was). */\n.ta-side-view[data-arrived] > .ta-side-view-body { animation: ta-fade 200ms ease-out; }\n/* Rows still on their way in it (its data not read yet) take the place of the placeholder's at once, without its moment. */\n.ta-side-view[data-arrived] .ta-skeleton { animation: none; }\n@keyframes ta-skeleton { 50% { opacity: 0.5; } }\n/* The editors may not be wider than the conversation: at most half of what the other columns leave. */\n.ta-editors-pane { width: var(--ta-pane, 480px); max-width: calc((100vw - var(--ta-left, 56px) - var(--ta-right, 0px)) / 2); flex: 0 1 auto; min-width: 280px; }\n.ta-main { min-width: 400px; }\n.ta-rail-gap { width: 24px; height: 1px; flex: none; margin: 4px 0; background: var(--ta-border); }\n.ta-sash { position: absolute; z-index: 6; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; outline: none; }\n.ta-sash-start { right: -4px; }\n.ta-sash-end { left: -4px; }\n.ta-sash::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 1px; background: transparent; transition: background 120ms 0ms; }\n.ta-sash:hover::after { background: var(--ta-border-focus); transition-delay: 250ms; }\n.ta-sash.ta-dragging::after, .ta-sash:focus-visible::after { background: var(--ta-border-focus); transition-delay: 0ms; }\n.ta-resizing, .ta-resizing * { cursor: col-resize !important; user-select: none !important; }\n.ta-resizing iframe { pointer-events: none; }\n.ta-editors { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: var(--ta-titlebar); background: var(--ta-side); border-left: 1px solid var(--ta-border-muted); }\n.ta-editor-tabs { display: flex; align-items: center; gap: 8px; height: calc(56px + env(safe-area-inset-top)); flex: none; padding: env(safe-area-inset-top) 10px 0 0; border-bottom: 1px solid var(--ta-border-muted); }\n.ta-workbench-actions { display: flex; align-items: center; gap: 2px; flex: none; }\n.ta-workbench-cwd { display: flex; align-items: center; gap: 4px; max-width: 132px; height: 24px; margin-right: 4px; padding: 0 8px; border-radius: 12px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); cursor: default; }\n.ta-workbench-cwd svg { flex: none; }\n:root[data-handheld] .ta-workbench-cwd { max-width: 88px; margin-right: 0; }\n.ta-workbench-actions .ta-icon-button { width: 32px; height: 32px; color: var(--ta-muted); }\n.ta-workbench-actions .ta-icon-button:hover, .ta-workbench-actions .ta-icon-button.ta-on { color: var(--ta-text); }\n.ta-editor-tablist { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; align-self: stretch; padding-left: 10px; overflow-x: auto; scrollbar-width: none; }\n.ta-editor-tab { position: relative; display: flex; align-items: center; flex: none; max-width: 200px; height: 32px; border-radius: 8px; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-editor-tab:hover { background: var(--ta-hover); color: var(--ta-body); }\n.ta-editor-tab.ta-active { background: var(--ta-selected); color: var(--ta-text); }\n.ta-editor-tab-button { display: flex; align-items: center; gap: 7px; min-width: 0; height: 100%; padding: 0 2px 0 10px; border: 0; background: transparent; color: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-editor-tab-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-editor-tab-close { width: 20px; height: 20px; margin-right: 6px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: inherit; opacity: 0; }\n.ta-editor-tab:hover .ta-editor-tab-close, .ta-editor-tab.ta-active .ta-editor-tab-close, .ta-editor-tab-close:focus-visible { opacity: 1; }\n.ta-editor-tab-close:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-context-menu { position: fixed; left: 0; top: 0; z-index: 80; min-width: 190px; max-width: 320px; display: flex; flex-direction: column; gap: 1px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 100ms ease-out; }\n.ta-context-menu-item { display: flex; align-items: center; flex: none; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); text-align: left; cursor: pointer; outline: none; }\n.ta-context-menu-item:hover:not(:disabled), .ta-context-menu-item:focus-visible { background: var(--ta-hover); }\n.ta-context-menu-item:disabled { opacity: 0.45; cursor: default; }\n.ta-context-menu-item.ta-danger { color: var(--ta-red); }\n/* The entry of any menu a held finger slid onto (ContextMenuUtil.attach): let go, it is chosen. */\n[role=\"menuitem\"][data-armed] { background: var(--ta-hover); }\n.ta-context-menu-line { flex: none; height: 1px; margin: 5px 8px; border: 0; background: var(--ta-border-muted); }\n.ta-context-menu-caption { flex: none; margin: 0 8px 5px; padding: 3px 2px 8px; border-bottom: 1px solid var(--ta-border-muted); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-editor-tab.ta-preview .ta-editor-tab-button > span { font-style: italic; }\n.ta-editor-tab-close { position: relative; }\n.ta-editor-tab-dirty { position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close { opacity: 1; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close > svg { visibility: hidden; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close:hover > svg, .ta-editor-tab.ta-dirty .ta-editor-tab-close:focus-visible > svg { visibility: visible; }\n.ta-editor-tab.ta-dirty .ta-editor-tab-close:hover > .ta-editor-tab-dirty, .ta-editor-tab.ta-dirty .ta-editor-tab-close:focus-visible > .ta-editor-tab-dirty { display: none; }\n.ta-editor-body { flex: 1; min-height: 0; overflow: auto; }\n.ta-workbench-title { display: flex; align-items: center; padding: 0 6px; font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-workbench-open { position: relative; display: flex; }\n.ta-workbench-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 220px; max-height: min(440px, 70vh); overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-workbench-menu .ta-account-item { flex: none; gap: 12px; height: 36px; padding: 0 10px; font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-body); }\n.ta-workbench-menu .ta-account-item > svg { flex: none; color: var(--ta-secondary); }\n.ta-workbench-menu .ta-account-item:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-workbench-launcher { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 32px 20px calc(32px + env(safe-area-inset-bottom)); }\n.ta-workbench-launcher > * { width: 100%; max-width: 280px; }\n.ta-workbench-launcher-head { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 320px; margin-bottom: 24px; text-align: center; }\n.ta-workbench-launcher-title { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-workbench-launcher-hint { font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); }\n.ta-workbench-launch { display: flex; align-items: center; gap: 12px; height: 40px; flex: none; margin-bottom: 8px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-body); font-size: calc(14px * var(--ta-font-scale)); text-align: left; transition: background 120ms, color 120ms; }\n.ta-workbench-launch:last-child { margin-bottom: 0; }\n.ta-workbench-launch:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-workbench-launch > svg { flex: none; color: var(--ta-secondary); }\n.ta-workbench-launch:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-workbench-max .ta-main { display: none; }\n.ta-workbench-max .ta-editors-pane { flex: 1; width: auto; max-width: none; }\n.ta-workbench-max .ta-editors-pane > .ta-sash { display: none; }\n.ta-editor-body[hidden] { display: none; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-sash { display: none; }\n .ta-main { min-width: 0; }\n .ta-editors-pane { position: fixed; z-index: 36; inset: 0; width: auto; min-width: 0; max-width: none; animation: ta-fade 160ms; }\n .ta-editors { border-left: 0; }\n .ta-editor-tabs { height: calc(52px + env(safe-area-inset-top)); padding-right: 6px; }\n .ta-editor-tablist { padding-left: 6px; }\n .ta-editor-tab-close { opacity: 1; }\n}\n\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n/* What ta does, before the first step, where the head of the steps will say how many there are: its words in the same place. */\n.ta-turn-head > .ta-run-status { padding-left: 6px; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; padding-left: 6px; margin-top: -6px; }\n/* Under the open steps of a turn the line is one more step: the same pitch, its dot on the string's line. */\n.ta-thread-item:has(> .ta-message > .ta-process:last-child > .ta-process-steps) + .ta-run-line, .ta-msg-ta:has(> .ta-process:last-child > .ta-process-steps) + .ta-run-line { margin-top: -18px; padding-left: 6px; }\n.ta-status-waiting::before { background: var(--ta-yellow); }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n/* A message of the user that has pictures: the pictures and the words in one bubble, the pictures first\n and within the bubble's padding. */\n.ta-bubble-media { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px; white-space: normal; }\n.ta-bubble-media .ta-bubble-text { align-self: stretch; padding: 2px 10px 5px; white-space: pre-wrap; word-break: break-word; }\n/* Pictures alone: the bubble is what they are, so it has no frame of its own. */\n.ta-bubble-media.ta-bubble-bare, .ta-msg-bubble.ta-bubble-bare { padding: 0; background: transparent; }\n/* One picture keeps its own shape, a few stand as squares of one size: the sizes of a message, not of a page. */\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; max-width: 100%; }\n.ta-user-image { padding: 0; border: 0; border-radius: 12px; background: transparent; line-height: 0; cursor: zoom-in; overflow: hidden; transition: opacity 120ms; }\n.ta-user-image:active { opacity: 0.8; }\n.ta-user-images .ta-thumb { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--ta-raised); }\n.ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }\n/* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */\n.ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n/* The string of the steps runs under the middle of the avatar (24px wide): 12px in. */\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 12px; padding: 2px 0 2px 13px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: calc(2px + 13px * var(--ta-font-scale)); bottom: calc(2px + 13px * var(--ta-font-scale)); width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6px; border-radius: 50%; background: var(--ta-main); }\n/* A step of words is as high as a step of a tool when it has one line, its dot on the middle of that line: the steps keep one pitch. */\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; padding: calc(2.2px * var(--ta-font-scale)) 0; }\n.ta-step-text > .ta-status { margin-top: calc(0.8em - 6px); }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-chevron { flex: none; transition: transform 150ms var(--ta-ease); }\n.ta-step-toggle[aria-expanded='true'] .ta-step-chevron { transform: rotate(90deg); }\n.ta-step-thinking .ta-thinking-text, .ta-step-summary .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; width: max-content; min-width: 220px; max-width: min(340px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* As tall as the room above the message box allows (the page minus the box and a margin), so that the sections extensions add (registerComposerAddon) are seen without scrolling; it scrolls only on a short screen. */\n.ta-plus-items { display: flex; flex-direction: column; max-height: max(200px, calc(var(--ta-viewport, 100dvh) - 200px)); overflow-y: auto; }\n.ta-plus-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-plus-item:hover:not(:disabled), .ta-plus-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-plus-item:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; color: var(--ta-secondary); }\n.ta-plus-label { flex: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-detail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-plus-chevron { flex: none; margin-left: auto; color: var(--ta-muted); }\n.ta-plus-line { height: 1px; margin: 5px 8px; border: 0; background: var(--ta-border-muted); flex: none; }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { padding: 5px 2px; }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-queue { display: flex; flex-direction: column; margin-bottom: 6px; padding: 4px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 4px 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 4px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: grid; place-items: center; color: var(--ta-muted); }\n.ta-queue-text { flex: 1; }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; min-width: 0; }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { max-width: 88%; }\n}\n\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-selected='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-removed-toggle { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-removed-toggle:hover { color: var(--ta-text); }\n.ta-chat-removed-toggle svg { transition: transform 0.15s ease; }\n.ta-chat-removed-toggle[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-row { position: relative; border-radius: 12px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/* The directory of a new conversation, beside the +, in its look: a pill as high as the +. */\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 600px) { .ta-cwd-chip { max-width: 120px; } }\n.ta-tone-0 { --tone: #f5c04a; }\n.ta-tone-1 { --tone: #6ea8fe; }\n.ta-tone-2 { --tone: #f59a5b; }\n.ta-tone-3 { --tone: #4fd1a1; }\n.ta-tone-4 { --tone: #b197fc; }\n.ta-tone-5 { --tone: #f783ac; }\n:root[data-theme='light'] .ta-tone-0 { --tone: #c88a00; }\n:root[data-theme='light'] .ta-tone-1 { --tone: #2f74e0; }\n:root[data-theme='light'] .ta-tone-2 { --tone: #d96a1c; }\n:root[data-theme='light'] .ta-tone-3 { --tone: #0f9a6a; }\n:root[data-theme='light'] .ta-tone-4 { --tone: #7b5ce0; }\n:root[data-theme='light'] .ta-tone-5 { --tone: #d6457a; }\n\n/* A dialog in the middle of the page; a sheet from the bottom on a phone */\n.ta-modal-scrim { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 12px 12px; background: rgba(0, 0, 0, 0.32); animation: ta-fade 140ms ease-out; }\n.ta-modal { position: relative; z-index: 1; width: min(520px, 100%); max-height: 76vh; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border-radius: 14px; border: 1px solid var(--ta-border); background: var(--ta-card); box-shadow: var(--ta-shadow-pop); }\n.ta-modal-head { display: flex; align-items: center; justify-content: space-between; padding-left: 2px; }\n.ta-modal-title { font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-web-dialog { width: min(480px, 100%); gap: 14px; padding: 16px 18px 18px; }\n.ta-web-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-folder-bar { display: flex; align-items: center; gap: 6px; }\n.ta-folder-bar .ta-field input { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-folder-list { list-style: none; flex: none; height: min(340px, 44vh); overflow-y: auto; margin: 0; padding: 4px; border: 1px solid var(--ta-border-muted); border-radius: 10px; }\n.ta-folder-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-body); font-size: calc(13px * var(--ta-font-scale)); text-align: left; }\n.ta-folder-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-folder-item > .ta-icon:first-child, .ta-folder-chevron { color: var(--ta-muted); }\n.ta-folder-chevron { opacity: 0; }\n.ta-folder-item:hover .ta-folder-chevron { opacity: 1; }\n.ta-folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-folder-note { display: flex; justify-content: center; padding: 28px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-folder-failed { color: var(--ta-red); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n.ta-folder-note { gap: 8px; align-items: center; }\n.ta-folder-step { color: var(--ta-secondary); }\n.ta-folder-unreachable { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-folder-unreachable span { max-width: 100%; color: var(--ta-muted); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n/* The machines of the picker: this one, the hosts of ssh, + another */\n.ta-modal.ta-folder { width: min(640px, 100%); }\n.ta-folder-machines { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 0 0 2px; gap: 6px; scrollbar-width: none; }\n.ta-folder-machines::-webkit-scrollbar { display: none; }\n.ta-folder-machines .ta-icon-button { flex: none; width: 28px; height: 28px; border-radius: 14px; }\n.ta-folder-add input { width: 230px; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border-field); background: var(--ta-input); color: var(--ta-text); font-size: calc(12.5px * var(--ta-font-scale)); outline: none; }\n.ta-folder-add input:focus { border-color: var(--ta-border-focus); }\n.ta-folder-add input[aria-invalid='true'] { border-color: var(--ta-red); }\n.ta-folder-add input { width: 300px; }\n.ta-remote-state { display: inline-flex; align-items: center; gap: 6px; }\n.ta-remote-light { width: 7px; height: 7px; border-radius: 50%; background: var(--ta-border-field); flex: none; }\n.ta-remote-light.ta-on { background: var(--ta-green); }\n.ta-remote-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ta-green); flex: none; }\n/* The host of a directory of another machine, before its name */\n.ta-host-tag { display: inline-flex; align-items: center; gap: 3px; flex: none; box-sizing: border-box; max-width: 120px; height: 17px; padding: 0 5px 0 4px; margin-right: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ta-blue) 11%, transparent); color: color-mix(in srgb, var(--ta-blue) 82%, var(--ta-text)); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(17px * var(--ta-font-scale)); white-space: nowrap; vertical-align: middle; }\n.ta-host-tag > svg { flex: none; }\n.ta-host-tag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n/* In a narrow chip the host gives way before the name of the folder, and both stay inside it. */\n.ta-cwd-chip .ta-host-tag { flex: 0 10 auto; min-width: 0; margin: 0 0 0 2px; }\n.ta-cwd-chip .ta-ellipsis { flex: none; max-width: 60%; }\n/* What ssh asks, and the line while a host connects */\n.ta-remote-prompt { width: min(440px, 100%); gap: 12px; }\n.ta-remote-prompt .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-remote-message { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-hover); color: var(--ta-body); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow-y: auto; }\n.ta-remote-status { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top) + var(--ta-titlebar, 0px)); z-index: 65; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ta-fade 160ms ease-out; }\n/* The picker says it itself */\nbody:has(.ta-folder) .ta-remote-status { display: none; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-modal-scrim { align-items: flex-end; padding: 0; }\n .ta-modal { max-height: 88dvh; border-radius: 16px 16px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); animation: ta-up 260ms var(--ta-ease); }\n .ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: visible; }\n .ta-chat-row:not(.ta-selected) .ta-chat-delete { display: none; }\n .ta-chat-row.ta-selected .ta-chat-delete { opacity: 1; }\n .ta-chat-row.ta-selected .ta-compact .ta-chat-time, .ta-chat-row.ta-selected .ta-chat-state { visibility: hidden; }\n .ta-chat-row.ta-selected .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n .ta-folder-chevron { opacity: 1; }\n}\n\n/* Performance (t6): rows far up the conversation skip layout and paint until they come into view */\n.ta-thread-item { display: flex; flex-direction: column; min-width: 0; }\n/* A message nothing is drawn of (pi's note of a changed prompt) takes no gap: the first message does not move down when it comes. */\n.ta-thread-item:empty { display: none; }\n.ta-thread-item.ta-settled { content-visibility: auto; contain-intrinsic-size: auto 160px; }\n/* Above the messages while the earlier ones of a long conversation load, as it is scrolled up. */\n.ta-earlier { display: flex; justify-content: center; padding: 12px 0; }\n\n/* Model accounts: the sign-in page, the dialog and a sign-in under way */\n.ta-login-card { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }\n.ta-login-card h1 { margin: 6px 0 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-login-card > p { margin: 0 0 6px; color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-login-card .ta-auth-panel { width: 100%; text-align: left; }\n.ta-login-card .ta-auth-list { max-height: min(46vh, 420px); }\n.ta-login-later { margin-top: 2px; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; }\n.ta-login-later:hover { color: var(--ta-text); }\n.ta-login-card .ta-pic-cards { margin-top: 4px; }\n.ta-auth-dialog { width: min(520px, 100%); gap: 12px; padding: 16px 18px 18px; }\n.ta-auth-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-auth-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-auth-list { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 56vh; }\n.ta-auth-group h3 { margin: 0 0 4px; padding: 0 10px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-auth-row { display: flex; align-items: center; gap: 4px; }\n.ta-auth-item { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-body); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-auth-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-auth-item > .ta-icon:last-child { color: var(--ta-muted); }\n.ta-auth-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }\n.ta-auth-kind { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--ta-raised); color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-auth-note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-auth-on { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--ta-green); font-size: calc(12px * var(--ta-font-scale)); max-width: 45%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }\n.ta-auth-item .ta-auth-on + .ta-icon { margin-left: 0; }\n.ta-auth-item > .ta-auth-kind + .ta-icon { margin-left: auto; }\n.ta-auth-flow { display: flex; flex-direction: column; gap: 14px; text-align: left; }\n.ta-auth-flow-head { display: flex; align-items: center; gap: 8px; }\n.ta-auth-flow-title { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-auth-step { display: flex; flex-direction: column; gap: 10px; }\n.ta-auth-step p { margin: 0; color: var(--ta-body); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-auth-actions { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-auth-code { align-self: flex-start; padding: 8px 14px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-text); font-family: var(--ta-mono); font-size: calc(20px * var(--ta-font-scale)); letter-spacing: 0.12em; user-select: all; }\n.ta-auth-options { display: flex; flex-direction: column; gap: 2px; }\n.ta-auth-progress { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-auth-link { display: block; margin-top: 4px; color: var(--ta-link, var(--ta-brand)); word-break: break-all; }\n/* The sign-in comes in step by step; its pictures answer the pointer */\n@keyframes ta-rise { from { transform: translateY(10px); opacity: 0; } }\n@keyframes ta-key-dot { 0%, 100% { opacity: .35; } 50% { opacity: 1; transform: translateY(-1.5px); } }\n@keyframes ta-tick { from { stroke-dashoffset: 12; } }\n@keyframes ta-code-in { from { letter-spacing: 0.4em; opacity: 0; } }\n.ta-login-card > * { animation: ta-rise 420ms var(--ta-ease) both; }\n.ta-login-card > :nth-child(2) { animation-delay: 60ms; }\n.ta-login-card > :nth-child(3) { animation-delay: 100ms; }\n.ta-login-card > :nth-child(4) { animation-delay: 150ms; }\n.ta-login-card > :nth-child(5) { animation-delay: 220ms; }\n.ta-login-card .ta-pic-card:hover .ta-pic-tick { stroke-dasharray: 12; animation: ta-tick 420ms var(--ta-ease) both; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot { animation: ta-key-dot 900ms ease-in-out infinite; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot:nth-child(n+8) { animation-delay: 90ms; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot:nth-child(n+10) { animation-delay: 180ms; }\n.ta-login-card .ta-pic-card:hover .ta-pic-dot:nth-child(n+12) { animation-delay: 270ms; }\n.ta-auth-flow > *, .ta-auth-panel > *, .ta-auth-group { animation: ta-in 260ms var(--ta-ease) both; }\n.ta-auth-code { animation: ta-code-in 420ms var(--ta-ease) both; }\n.ta-auth-item { transition: background 120ms, color 120ms, transform 120ms var(--ta-ease); }\n.ta-auth-item:hover > .ta-icon:last-child { transform: translateX(2px); transition: transform 160ms var(--ta-ease); }\n/* Ta on a phone: a picture of the way through the relay, the code to scan, the devices */\n@keyframes ta-qr-in { from { transform: scale(.94); opacity: 0; } }\n.ta-relay-dialog { width: min(440px, 100%); gap: 14px; padding: 16px 18px 18px; }\n.ta-relay-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-relay-start, .ta-relay-pairing { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: ta-in 260ms var(--ta-ease) both; }\n.ta-relay-start p, .ta-relay-pairing p { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-relay-pic { width: 100%; max-width: 320px; border-radius: 0; }\n.ta-relay-form { display: flex; gap: 8px; width: 100%; }\n.ta-relay-form .ta-field { flex: 1; }\n.ta-qr { width: 220px; height: 220px; border-radius: 12px; animation: ta-qr-in 320ms var(--ta-ease) both; }\n.ta-relay-state { margin-left: 8px; font-weight: 400; color: var(--ta-muted); }\n.ta-relay-state::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--ta-muted); vertical-align: middle; }\n.ta-relay-state.ta-on::before { background: var(--ta-green); }\n.ta-relay-device { gap: 10px; height: 38px; padding: 0 4px 0 10px; color: var(--ta-muted); }\n.ta-relay-device .ta-auth-note { flex: none; margin-left: auto; }\n";
|