@celljs/ta-web 4.23.0 → 4.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/browser/assistant/assistant-chat-list.js +3 -1
- package/esm/browser/components/app-nav.d.ts +3 -1
- package/esm/browser/components/app-nav.js +10 -10
- package/esm/browser/components/app-shell-state.d.ts +1 -0
- package/esm/browser/components/app-shell-state.js +21 -1
- package/esm/browser/components/app-view.js +20 -14
- package/esm/browser/components/chat-home-util.d.ts +7 -0
- package/esm/browser/components/chat-home-util.js +10 -0
- package/esm/browser/components/chat-home.js +3 -3
- package/esm/browser/components/chat-list-hooks.d.ts +2 -0
- package/esm/browser/components/chat-list-hooks.js +6 -0
- package/esm/browser/components/chat-list-row.js +2 -2
- package/esm/browser/components/chat-list-util.d.ts +15 -3
- package/esm/browser/components/chat-list-util.js +26 -4
- package/esm/browser/components/chat-list.js +6 -5
- package/esm/browser/components/chat-seen.d.ts +4 -3
- package/esm/browser/components/chat-seen.js +6 -5
- package/esm/browser/components/chats-dot.d.ts +30 -0
- package/esm/browser/components/chats-dot.js +32 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/list-motion.d.ts +44 -0
- package/esm/browser/components/list-motion.js +197 -0
- package/esm/browser/components/partner-row.js +1 -1
- package/esm/browser/components/settings-files.d.ts +7 -0
- package/esm/browser/components/settings-files.js +61 -0
- package/esm/browser/components/settings-more.js +2 -0
- package/esm/browser/components/side-lists.d.ts +7 -0
- package/esm/browser/components/side-lists.js +16 -0
- package/esm/browser/components/sortable.js +15 -0
- package/esm/browser/components/tool-view.js +23 -7
- package/esm/browser/components/workbench-tabs.d.ts +1 -0
- package/esm/browser/components/workbench-tabs.js +8 -3
- package/esm/browser/components/workbench-toggle.d.ts +5 -0
- package/esm/browser/components/workbench-toggle.js +10 -0
- package/esm/browser/extension/web-api-contributions.d.ts +2 -1
- package/esm/browser/extension/web-api-partners.d.ts +9 -1
- package/esm/browser/extension/web-view-util.d.ts +5 -0
- package/esm/browser/extension/web-view-util.js +8 -0
- package/esm/browser/i18n/locales.d.ts +10 -2
- package/esm/browser/i18n/messages-ja.js +9 -1
- package/esm/browser/i18n/messages-zh-tw.js +9 -1
- package/esm/browser/i18n/messages.d.ts +9 -1
- package/esm/browser/i18n/messages.js +18 -2
- package/esm/browser/partners/partners-util.d.ts +6 -0
- package/esm/browser/partners/partners-util.js +9 -0
- package/esm/browser/partners/partners-view.js +4 -1
- package/esm/browser/style/base.d.ts +1 -1
- package/esm/browser/style/base.js +5 -0
- package/esm/browser/style/chat-list.d.ts +1 -1
- package/esm/browser/style/chat-list.js +2 -0
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +3 -0
- package/esm/browser/style/device.js +4 -1
- package/esm/browser/style/layout.d.ts +1 -1
- package/esm/browser/style/layout.js +20 -6
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +8 -0
- package/esm/browser/style/shell.d.ts +1 -1
- package/esm/browser/style/shell.js +7 -2
- package/esm/browser/style/surfaces.d.ts +1 -1
- package/esm/browser/style/surfaces.js +1 -0
- package/esm/browser/util/process.d.ts +3 -1
- package/esm/browser/util/process.js +27 -0
- package/lib/browser/assistant/assistant-chat-list.js +3 -1
- package/lib/browser/components/app-nav.d.ts +3 -1
- package/lib/browser/components/app-nav.js +8 -8
- package/lib/browser/components/app-shell-state.d.ts +1 -0
- package/lib/browser/components/app-shell-state.js +21 -1
- package/lib/browser/components/app-view.js +19 -13
- package/lib/browser/components/chat-home-util.d.ts +7 -0
- package/lib/browser/components/chat-home-util.js +10 -0
- package/lib/browser/components/chat-home.js +3 -3
- package/lib/browser/components/chat-list-hooks.d.ts +2 -0
- package/lib/browser/components/chat-list-hooks.js +7 -0
- package/lib/browser/components/chat-list-row.js +2 -2
- package/lib/browser/components/chat-list-util.d.ts +15 -3
- package/lib/browser/components/chat-list-util.js +26 -4
- package/lib/browser/components/chat-list.js +5 -4
- package/lib/browser/components/chat-seen.d.ts +4 -3
- package/lib/browser/components/chat-seen.js +6 -5
- package/lib/browser/components/chats-dot.d.ts +31 -0
- package/lib/browser/components/chats-dot.js +68 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/list-motion.d.ts +45 -0
- package/lib/browser/components/list-motion.js +234 -0
- package/lib/browser/components/partner-row.js +1 -1
- package/lib/browser/components/settings-files.d.ts +8 -0
- package/lib/browser/components/settings-files.js +97 -0
- package/lib/browser/components/settings-more.js +2 -0
- package/lib/browser/components/side-lists.d.ts +7 -0
- package/lib/browser/components/side-lists.js +16 -0
- package/lib/browser/components/sortable.js +15 -0
- package/lib/browser/components/tool-view.js +23 -7
- package/lib/browser/components/workbench-tabs.d.ts +1 -0
- package/lib/browser/components/workbench-tabs.js +7 -2
- package/lib/browser/components/workbench-toggle.d.ts +5 -0
- package/lib/browser/components/workbench-toggle.js +11 -0
- package/lib/browser/extension/web-api-contributions.d.ts +2 -1
- package/lib/browser/extension/web-api-partners.d.ts +9 -1
- package/lib/browser/extension/web-view-util.d.ts +5 -0
- package/lib/browser/extension/web-view-util.js +8 -0
- package/lib/browser/i18n/locales.d.ts +10 -2
- package/lib/browser/i18n/messages-ja.js +9 -1
- package/lib/browser/i18n/messages-zh-tw.js +9 -1
- package/lib/browser/i18n/messages.d.ts +9 -1
- package/lib/browser/i18n/messages.js +18 -2
- package/lib/browser/partners/partners-util.d.ts +6 -0
- package/lib/browser/partners/partners-util.js +9 -0
- package/lib/browser/partners/partners-view.js +4 -1
- package/lib/browser/style/base.d.ts +1 -1
- package/lib/browser/style/base.js +5 -0
- package/lib/browser/style/chat-list.d.ts +1 -1
- package/lib/browser/style/chat-list.js +2 -0
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +3 -0
- package/lib/browser/style/device.js +4 -1
- package/lib/browser/style/layout.d.ts +1 -1
- package/lib/browser/style/layout.js +20 -6
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +8 -0
- package/lib/browser/style/shell.d.ts +1 -1
- package/lib/browser/style/shell.js +7 -2
- package/lib/browser/style/surfaces.d.ts +1 -1
- package/lib/browser/style/surfaces.js +1 -0
- package/lib/browser/util/process.d.ts +3 -1
- package/lib/browser/util/process.js +27 -0
- package/package.json +7 -7
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** The list of chats: its search, its rows, the letters and faces of their groups. */
|
|
2
|
-
export declare const CHAT_LIST_STYLE = "\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/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\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-ink); }\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: var(--tone-tint); color: var(--tone-ink); 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-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\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-fold { 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-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\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: var(--tone-tint); color: var(--tone-ink); 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/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\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/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\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-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 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/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 3px; right: 1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -5px; right: -11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\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/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* Starting a chat (GroupPicker): agents and friends to tick, the one of a chat it starts from ticked already. */\n.ta-partner-pick { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-partner-pick-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: min(56vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-partner-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.ta-partner-pick-row:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-partner-pick-row:disabled { cursor: default; }\n.ta-partner-pick-box { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: #fff; transition: background 0.12s, border-color 0.12s; }\n.ta-partner-pick-box.ta-on { border-color: var(--ta-green); background: var(--ta-green); }\n.ta-partner-pick-row:disabled .ta-partner-pick-box.ta-on { opacity: 0.5; }\n.ta-partner-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-partner-pick-kind { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-partner-pick-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-foot { display: flex; justify-content: flex-end; }\n";
|
|
2
|
+
export declare const CHAT_LIST_STYLE = "\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/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\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-ink); }\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: var(--tone-tint); color: var(--tone-ink); 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-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\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-fold { 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-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\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: var(--tone-tint); color: var(--tone-ink); 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/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\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/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\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-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 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/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */\n.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-size: 9px; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 3px; right: 1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: var(--ta-blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -5px; right: -11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\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/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* Starting a chat (GroupPicker): agents and friends to tick, the one of a chat it starts from ticked already. */\n.ta-partner-pick { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-partner-pick-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; max-height: min(56vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }\n.ta-partner-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.ta-partner-pick-row:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-partner-pick-row:disabled { cursor: default; }\n.ta-partner-pick-box { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--ta-border-field); border-radius: 50%; color: #fff; transition: background 0.12s, border-color 0.12s; }\n.ta-partner-pick-box.ta-on { border-color: var(--ta-green); background: var(--ta-green); }\n.ta-partner-pick-row:disabled .ta-partner-pick-box.ta-on { opacity: 0.5; }\n.ta-partner-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-partner-pick-kind { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-partner-pick-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-partner-pick-foot { display: flex; justify-content: flex-end; }\n";
|
|
3
3
|
//# sourceMappingURL=chat-list.d.ts.map
|
|
@@ -116,6 +116,8 @@ exports.CHAT_LIST_STYLE = `
|
|
|
116
116
|
.ta-chat-row { --ta-chat-bg: var(--ta-side); }
|
|
117
117
|
.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }
|
|
118
118
|
.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }
|
|
119
|
+
/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */
|
|
120
|
+
.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }
|
|
119
121
|
.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }
|
|
120
122
|
.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }
|
|
121
123
|
.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** A conversation: the console session, Markdown, tools, dialogs. */
|
|
2
|
-
export declare const CONVERSATION_STYLE = "\n/* Console session */\n.ta-session { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }\n.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }\n.ta-session-title .ta-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-title { font-weight: 600; }\n/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */\n.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }\n/* Finding in the conversation: a row under its head, as a browser's find bar; the words found marked, the row found flashing. */\n.ta-find { display: flex; align-items: center; gap: 4px; padding: 0 20px 8px; }\n.ta-find-box { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid var(--ta-border-field); }\n.ta-find-box 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-find-box input::placeholder { color: var(--ta-muted); }\n.ta-find-count { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-find .ta-icon-button:disabled { opacity: 0.4; }\n.ta-moved { margin-bottom: 8px; align-items: center; flex-wrap: wrap; }\n.ta-moved .ta-callout-text { min-width: min(240px, 70%); }\n.ta-moved-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }\n::highlight(ta-find) { background-color: color-mix(in srgb, var(--ta-yellow) 42%, transparent); color: inherit; }\n.ta-thread-item[data-found] { animation: ta-found 1.2s ease-out; border-radius: 12px; }\n@keyframes ta-found { 0%, 30% { background: color-mix(in srgb, var(--ta-yellow) 12%, transparent); } to { background: transparent; } }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n/* A name of the vault in what was said ($TA_SECRET_PHONE): a lock and what it stands for, never the variable. */\n.ta-secret-chip { display: inline-flex; border: 0; font-family: inherit; align-items: center; gap: 3px; margin: 0 1px; padding: 0 6px; border-radius: 6px; background: var(--ta-chip); box-shadow: inset 0 0 0 1px var(--ta-border); color: var(--ta-secondary); font-size: 0.9em; line-height: 1.6; white-space: nowrap; vertical-align: baseline; cursor: default; }\n.ta-secret-chip svg { flex: none; color: var(--ta-muted); }\nbutton.ta-secret-chip { cursor: pointer; transition: background 120ms, color 120ms; }\n@media (hover: hover) { button.ta-secret-chip:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */\n.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }\n/* Someone else's message in the same Ta (TaMessageAuthor): on the left, with their face and name, as in a group chat. */\n.ta-user.ta-user-other { align-items: flex-start; }\n.ta-user-by { display: flex; align-items: flex-start; gap: 8px; max-width: 86%; min-width: 0; }\n.ta-user-by > .ta-face { flex: none; margin-top: 1px; }\n.ta-user-by-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }\n.ta-user-by-name { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-user-other .ta-user-marks { justify-content: flex-start; max-width: 100%; margin-bottom: 0; }\n.ta-user-other .ta-bubble { max-width: 100%; background: var(--ta-card); box-shadow: inset 0 0 0 1px var(--ta-border); border-radius: 5px 16px 16px 16px; }\n.ta-user-other .ta-skill-use { align-items: flex-start; max-width: 100%; }\n.ta-user-other .ta-user-images { justify-content: flex-start; }\n.ta-message.ta-user-other > .ta-footer { margin-left: 32px; }\n/* Others at the conversation (TaSessionInfo.people): faces one over the next; over the box, who types. */\n.ta-people { display: inline-flex; align-items: center; flex: none; }\n.ta-people-face { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--ta-main); background: var(--ta-main); }\n.ta-people-face + .ta-people-face { margin-left: -6px; }\n.ta-people-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-session-header > .ta-people { margin-left: -8px; }\n.ta-presence-line { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-typing-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }\n.ta-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ta-typing 1.2s infinite ease-in-out; }\n.ta-typing-dots i:nth-child(2) { animation-delay: 0.15s; }\n.ta-typing-dots i:nth-child(3) { animation-delay: 0.3s; }\n@keyframes ta-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-typing-dots i { animation: none; } }\n.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }\n.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail::before { content: '\u00B7'; margin-right: 4px; }\n/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */\n.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }\n/* On the string as the other dots (conversation-column.ts), on the middle of the line of its head. */\n.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }\n.ta-status.ta-status-said::before { background: var(--ta-blue); }\n.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-said-head > .ta-origin { margin-left: 4px; }\n.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }\n/* Folded, the words said on the way stay under the head, on a string of their own. */\n.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }\n/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */\n.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }\n/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */\n.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }\n.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }\n.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }\n.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }\n.ta-compaction-mark[aria-expanded=\"true\"] .ta-compaction-chevron { transform: rotate(90deg); }\n.ta-compaction-summary { align-self: stretch; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-cover { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; pointer-events: none; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid-room { width: 100%; }\n/* A diagram that comes in (DiagramStyle motion) does so once: not again as a streamed source draws longer. */\n.ta-mermaid-settled .ta-mermaid-diagram svg :is(.node, .edgeLabel) { animation: none !important; }\n:root[data-reduce-motion] .ta-mermaid-diagram svg * { animation: none !important; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n/* Pictures of a reply together (components/gallery.tsx): rows as wide as the reply, each picture whole and a row as tall (GalleryUtil.rows), the words that name each under it. */\n.ta-gallery { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }\n.ta-gallery-row { display: flex; gap: inherit; }\n.ta-gallery-item { display: flex; flex: none; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }\n.ta-gallery-tile { position: relative; display: block; width: 100%; height: var(--ta-gallery-row); padding: 0; border: 1px solid var(--ta-border-muted); border-radius: 8px; overflow: hidden; background: var(--ta-raised); line-height: 0; cursor: zoom-in; -webkit-tap-highlight-color: transparent; transition: opacity 120ms; }\n.ta-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 240ms var(--ta-ease), opacity 160ms; }\n.ta-gallery-tile:hover img { transform: scale(1.03); }\n.ta-gallery-tile:active { opacity: 0.85; }\n.ta-gallery-tile:disabled { cursor: default; }\n.ta-gallery-pending { border-color: transparent; animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n.ta-gallery-pending img { opacity: 0; }\n.ta-gallery-missing { display: grid; place-items: center; color: var(--ta-muted); cursor: default; }\n.ta-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.48); color: #fff; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; line-height: 1; }\n.ta-gallery-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; text-align: center; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) { .ta-gallery { gap: 4px; } }\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-zoom.ts): 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; overflow: hidden; }\n/* What a finger swipes to the picture beside (image-swipe.ts): the box that scrolls, and the pictures beside it at its sides, as large as it shows them at first. */\n.ta-zoom-track { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; }\n.ta-zoom-peek { position: absolute; top: 0; width: 100%; height: 100%; padding: 16px; box-sizing: border-box; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }\n.ta-zoom-peek-previous { right: calc(100% + 20px); }\n.ta-zoom-peek-next { left: calc(100% + 20px); }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; app-region: no-drag; -webkit-app-region: no-drag; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n/* What the picture over the page is and which of how many, at its top. */\n.ta-lightbox-caption { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 120px); padding: 0 12px; border-radius: 999px; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; font-size: calc(13px * var(--ta-font-scale)); line-height: calc(30px * var(--ta-font-scale)); transform: translateX(-50%); pointer-events: none; }\n.ta-lightbox-words { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-lightbox-count { flex: none; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }\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-summary-line { font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n/* A thing ta did that says what it is for (a script): those words are the line, cut short as a target is. */\n.ta-tool-title-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n/* How many steps a thing took, at the end of its line. */\n.ta-tool-count { flex: none; margin-left: auto; padding-left: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-tool-count + .ta-tool-chevron { margin-left: 2px; }\n/* The steps of a thing, under its line: smaller, a little in, their dots beside them rather than on the string. */\n.ta-act-body { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; margin-bottom: 4px; }\n.ta-process-steps .ta-act-body .ta-status { position: relative; left: 0; background: transparent; }\n.ta-act-body .ta-tool-title, .ta-act-body .ta-step-toggle { font-size: calc(12.5px * var(--ta-font-scale)); min-height: calc(24px * var(--ta-font-scale)); }\n.ta-act-body .ta-act-script { align-self: flex-start; width: auto; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-act-body .ta-step-tag { color: var(--ta-secondary); }\n.ta-act-body .ta-tool-body { margin-top: 2px; }\n.ta-act-body > .ta-tool + .ta-tool:has(> .ta-act-script) { margin-top: 2px; }\n/* The files a turn changed, first when its work opens. */\n.ta-step-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-step-files > .ta-status { top: calc(7px * var(--ta-font-scale)); }\n.ta-step-files .ta-link { font-size: calc(12px * var(--ta-font-scale)); }\n/* The earlier steps, folded: a bead of their own on the string, as every step has. */\n.ta-step-more { display: flex; align-items: center; min-height: calc(26px * var(--ta-font-scale)); }\n.ta-step-more > .ta-more { margin-bottom: 0; }\n/* Where Ta restarted in the middle of the work and went on: a quiet line among the steps. */\n.ta-step-resumed { display: flex; align-items: center; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-file-chip { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-body); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */\n.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }\n.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }\n.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }\n.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }\n.ta-result-block { min-width: 0; }\n.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }\n.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }\n.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-result-stderr pre { color: var(--ta-muted); }\n.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }\n.ta-result-empty { color: var(--ta-muted); }\n.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }\n.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }\n/* A command reads whole, wrapped, as the line above shows only its start. */\n.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* At rest until its time comes again: still, not breathing as one that runs. */\n.ta-status-idle::before { background: color-mix(in srgb, var(--ta-blue) 45%, transparent); }\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-find { padding: 0 14px 8px; }\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/* The title is centred in the head, level with the tabs of the workbench and the search of the side; its directory hangs below it. */\n.ta-session-header > .ta-session-title .ta-path { margin-bottom: -1.35em; }\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/* Finding in the conversation: a row under its head, as a browser's find bar; the words found marked, the row found flashing. */\n.ta-find { display: flex; align-items: center; gap: 4px; padding: 0 20px 8px; }\n.ta-find-box { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid var(--ta-border-field); }\n.ta-find-box 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-find-box input::placeholder { color: var(--ta-muted); }\n.ta-find-count { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-find .ta-icon-button:disabled { opacity: 0.4; }\n.ta-moved { margin-bottom: 8px; align-items: center; flex-wrap: wrap; }\n.ta-moved .ta-callout-text { min-width: min(240px, 70%); }\n.ta-moved-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }\n::highlight(ta-find) { background-color: color-mix(in srgb, var(--ta-yellow) 42%, transparent); color: inherit; }\n.ta-thread-item[data-found] { animation: ta-found 1.2s ease-out; border-radius: 12px; }\n@keyframes ta-found { 0%, 30% { background: color-mix(in srgb, var(--ta-yellow) 12%, transparent); } to { background: transparent; } }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n/* A name of the vault in what was said ($TA_SECRET_PHONE): a lock and what it stands for, never the variable. */\n.ta-secret-chip { display: inline-flex; border: 0; font-family: inherit; align-items: center; gap: 3px; margin: 0 1px; padding: 0 6px; border-radius: 6px; background: var(--ta-chip); box-shadow: inset 0 0 0 1px var(--ta-border); color: var(--ta-secondary); font-size: 0.9em; line-height: 1.6; white-space: nowrap; vertical-align: baseline; cursor: default; }\n.ta-secret-chip svg { flex: none; color: var(--ta-muted); }\nbutton.ta-secret-chip { cursor: pointer; transition: background 120ms, color 120ms; }\n@media (hover: hover) { button.ta-secret-chip:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */\n.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }\n/* Someone else's message in the same Ta (TaMessageAuthor): on the left, with their face and name, as in a group chat. */\n.ta-user.ta-user-other { align-items: flex-start; }\n.ta-user-by { display: flex; align-items: flex-start; gap: 8px; max-width: 86%; min-width: 0; }\n.ta-user-by > .ta-face { flex: none; margin-top: 1px; }\n.ta-user-by-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }\n.ta-user-by-name { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-user-other .ta-user-marks { justify-content: flex-start; max-width: 100%; margin-bottom: 0; }\n.ta-user-other .ta-bubble { max-width: 100%; background: var(--ta-card); box-shadow: inset 0 0 0 1px var(--ta-border); border-radius: 5px 16px 16px 16px; }\n.ta-user-other .ta-skill-use { align-items: flex-start; max-width: 100%; }\n.ta-user-other .ta-user-images { justify-content: flex-start; }\n.ta-message.ta-user-other > .ta-footer { margin-left: 32px; }\n/* Others at the conversation (TaSessionInfo.people): faces one over the next; over the box, who types. */\n.ta-people { display: inline-flex; align-items: center; flex: none; }\n.ta-people-face { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--ta-main); background: var(--ta-main); }\n.ta-people-face + .ta-people-face { margin-left: -6px; }\n.ta-people-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-session-header > .ta-people { margin-left: -8px; }\n.ta-presence-line { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-typing-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }\n.ta-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ta-typing 1.2s infinite ease-in-out; }\n.ta-typing-dots i:nth-child(2) { animation-delay: 0.15s; }\n.ta-typing-dots i:nth-child(3) { animation-delay: 0.3s; }\n@keyframes ta-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-typing-dots i { animation: none; } }\n.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }\n.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail::before { content: '\u00B7'; margin-right: 4px; }\n/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */\n.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }\n/* On the string as the other dots (conversation-column.ts), on the middle of the line of its head. */\n.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }\n.ta-status.ta-status-said::before { background: var(--ta-blue); }\n.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-said-head > .ta-origin { margin-left: 4px; }\n.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }\n/* Folded, the words said on the way stay under the head, on a string of their own. */\n.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }\n/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */\n.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }\n/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */\n.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }\n.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }\n.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }\n.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }\n.ta-compaction-mark[aria-expanded=\"true\"] .ta-compaction-chevron { transform: rotate(90deg); }\n.ta-compaction-summary { align-self: stretch; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-cover { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; pointer-events: none; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid-room { width: 100%; }\n/* A diagram that comes in (DiagramStyle motion) does so once: not again as a streamed source draws longer. */\n.ta-mermaid-settled .ta-mermaid-diagram svg :is(.node, .edgeLabel) { animation: none !important; }\n:root[data-reduce-motion] .ta-mermaid-diagram svg * { animation: none !important; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n/* Pictures of a reply together (components/gallery.tsx): rows as wide as the reply, each picture whole and a row as tall (GalleryUtil.rows), the words that name each under it. */\n.ta-gallery { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }\n.ta-gallery-row { display: flex; gap: inherit; }\n.ta-gallery-item { display: flex; flex: none; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }\n.ta-gallery-tile { position: relative; display: block; width: 100%; height: var(--ta-gallery-row); padding: 0; border: 1px solid var(--ta-border-muted); border-radius: 8px; overflow: hidden; background: var(--ta-raised); line-height: 0; cursor: zoom-in; -webkit-tap-highlight-color: transparent; transition: opacity 120ms; }\n.ta-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 240ms var(--ta-ease), opacity 160ms; }\n.ta-gallery-tile:hover img { transform: scale(1.03); }\n.ta-gallery-tile:active { opacity: 0.85; }\n.ta-gallery-tile:disabled { cursor: default; }\n.ta-gallery-pending { border-color: transparent; animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n.ta-gallery-pending img { opacity: 0; }\n.ta-gallery-missing { display: grid; place-items: center; color: var(--ta-muted); cursor: default; }\n.ta-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.48); color: #fff; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; line-height: 1; }\n.ta-gallery-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; text-align: center; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) { .ta-gallery { gap: 4px; } }\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-zoom.ts): 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; overflow: hidden; }\n/* What a finger swipes to the picture beside (image-swipe.ts): the box that scrolls, and the pictures beside it at its sides, as large as it shows them at first. */\n.ta-zoom-track { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; }\n.ta-zoom-peek { position: absolute; top: 0; width: 100%; height: 100%; padding: 16px; box-sizing: border-box; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }\n.ta-zoom-peek-previous { right: calc(100% + 20px); }\n.ta-zoom-peek-next { left: calc(100% + 20px); }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; app-region: no-drag; -webkit-app-region: no-drag; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n/* What the picture over the page is and which of how many, at its top. */\n.ta-lightbox-caption { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 120px); padding: 0 12px; border-radius: 999px; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; font-size: calc(13px * var(--ta-font-scale)); line-height: calc(30px * var(--ta-font-scale)); transform: translateX(-50%); pointer-events: none; }\n.ta-lightbox-words { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-lightbox-count { flex: none; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }\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-summary-line { font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n/* A thing ta did that says what it is for (a script): those words are the line, cut short as a target is. */\n.ta-tool-title-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n/* How many steps a thing took, at the end of its line. */\n.ta-tool-count { flex: none; margin-left: auto; padding-left: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-tool-count + .ta-tool-chevron { margin-left: 2px; }\n/* The steps of a thing, under its line: smaller, a little in, their dots beside them rather than on the string. */\n.ta-act-body { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; margin-bottom: 4px; }\n.ta-tool-repeats { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-process-steps .ta-act-body .ta-status { position: relative; left: 0; background: transparent; }\n.ta-act-body .ta-tool-title, .ta-act-body .ta-step-toggle { font-size: calc(12.5px * var(--ta-font-scale)); min-height: calc(24px * var(--ta-font-scale)); }\n.ta-act-body .ta-act-script { align-self: flex-start; width: auto; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-act-body .ta-step-tag { color: var(--ta-secondary); }\n.ta-act-body .ta-tool-body { margin-top: 2px; }\n.ta-act-body > .ta-tool + .ta-tool:has(> .ta-act-script) { margin-top: 2px; }\n/* The files a turn changed, first when its work opens. */\n.ta-step-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-step-files > .ta-status { top: calc(7px * var(--ta-font-scale)); }\n.ta-step-files .ta-link { font-size: calc(12px * var(--ta-font-scale)); }\n/* The earlier steps, folded: a bead of their own on the string, as every step has. */\n.ta-step-more { display: flex; align-items: center; min-height: calc(26px * var(--ta-font-scale)); }\n.ta-step-more > .ta-more { margin-bottom: 0; }\n/* Where Ta restarted in the middle of the work and went on: a quiet line among the steps. */\n.ta-step-resumed { display: flex; align-items: center; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-file-chip { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-body); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */\n.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }\n.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }\n.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }\n.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }\n.ta-result-block { min-width: 0; }\n.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }\n.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }\n.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-result-stderr pre { color: var(--ta-muted); }\n.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }\n.ta-result-empty { color: var(--ta-muted); }\n.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }\n.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }\n/* A command reads whole, wrapped, as the line above shows only its start. */\n.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* At rest until its time comes again: still, not breathing as one that runs. */\n.ta-status-idle::before { background: color-mix(in srgb, var(--ta-blue) 45%, transparent); }\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-find { padding: 0 14px 8px; }\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; }\n /* The head of the conversation is the top of the screen: below the status bar of a phone. */\n .ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }\n .ta-session-title .ta-path { display: none; }\n .ta-thread, .ta-bottom { padding-left: 14px; padding-right: 14px; }\n}\n\n";
|
|
3
3
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -11,6 +11,8 @@ exports.CONVERSATION_STYLE = `
|
|
|
11
11
|
.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }
|
|
12
12
|
.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
|
|
13
13
|
.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)); }
|
|
14
|
+
/* The title is centred in the head, level with the tabs of the workbench and the search of the side; its directory hangs below it. */
|
|
15
|
+
.ta-session-header > .ta-session-title .ta-path { margin-bottom: -1.35em; }
|
|
14
16
|
.ta-title { font-weight: 600; }
|
|
15
17
|
/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */
|
|
16
18
|
.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }
|
|
@@ -329,6 +331,7 @@ button.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offs
|
|
|
329
331
|
.ta-tool-count + .ta-tool-chevron { margin-left: 2px; }
|
|
330
332
|
/* The steps of a thing, under its line: smaller, a little in, their dots beside them rather than on the string. */
|
|
331
333
|
.ta-act-body { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; margin-bottom: 4px; }
|
|
334
|
+
.ta-tool-repeats { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
332
335
|
.ta-process-steps .ta-act-body .ta-status { position: relative; left: 0; background: transparent; }
|
|
333
336
|
.ta-act-body .ta-tool-title, .ta-act-body .ta-step-toggle { font-size: calc(12.5px * var(--ta-font-scale)); min-height: calc(24px * var(--ta-font-scale)); }
|
|
334
337
|
.ta-act-body .ta-act-script { align-self: flex-start; width: auto; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
@@ -44,7 +44,7 @@ exports.DEVICE_STYLE = `
|
|
|
44
44
|
.ta-chip-filter::after { content: ''; position: absolute; inset: -8px -2px; }
|
|
45
45
|
.ta-editor-tab-close::after, .ta-attachment-remove::after { content: ''; position: absolute; inset: -10px; }
|
|
46
46
|
/* The tabs of a wide workbench under a finger (a tablet): a finger's height; no hover left behind by a tap, a press shows. */
|
|
47
|
-
.ta-editor-tabs { height: calc(
|
|
47
|
+
.ta-editor-tabs { height: calc(40px + env(safe-area-inset-top)); }
|
|
48
48
|
.ta-editor-tab, .ta-workbench-actions, .ta-editor-tabs > .ta-workbench-open { height: 40px; }
|
|
49
49
|
.ta-editor-tab:not(.ta-active):hover::after { opacity: 0; }
|
|
50
50
|
.ta-editor-tab:not(.ta-active):active::after { opacity: 1; }
|
|
@@ -90,6 +90,9 @@ exports.DEVICE_STYLE = `
|
|
|
90
90
|
@keyframes ta-menu-in { from { opacity: 0; transform: scale(0.94); } }
|
|
91
91
|
/* Below the status bar of a tablet in every layout, level with the heads of the sidebar and the workbench. */
|
|
92
92
|
.ta-main > .ta-session > .ta-session-header { padding-top: calc(8px + env(safe-area-inset-top)); }
|
|
93
|
+
.ta-main > .ta-session > .ta-session-header, .ta-main > * > .ta-main-head { margin-top: calc(-1 * var(--ta-lift)); }
|
|
94
|
+
/* What rises into the title bar is drawn over it, the bar of the desktop app being opaque. */
|
|
95
|
+
.ta-chats-head, .ta-side-view > :first-child { position: relative; z-index: 26; }
|
|
93
96
|
@media ${device_protocol_1.DeviceMedia.COMPACT} {
|
|
94
97
|
.ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }
|
|
95
98
|
/* The drawer follows the finger while it is dragged (sheet-swipe.ts sets its transform), on a layer of its own. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** The layout: panes and sashes, the tabs of the editor area, menus, the workbench maximized. */
|
|
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; gap: 4px; }\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 view on its way (Loading) in the middle of its body. */\n.ta-side-view-body:has(> .ta-loading) { display: flex; flex-direction: column; }\n/* The top bar of a sidebar view on its way: its room kept, empty. */\n.ta-loading-head { flex: 1; min-width: 0; height: 36px; }\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-loading { animation: none; }\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/*\n * The tabs of a wide workbench, as a browser's or an editor's: a strip the colour of the side over a line; the tab\n * shown is a card the colour of what it shows, joined to it across the line; the others lie on the strip, a short\n * line between two of them, a rounded hover inside; + follows the last. The line is an inset shadow, under the\n * tabs: the card covers it. A phone has its own head (.ta-compact, below).\n */\n.ta-editor-tabs { display: flex; align-items: flex-end; gap: 2px; height: calc(44px + env(safe-area-inset-top)); flex: none; padding: env(safe-area-inset-top) 8px 0 0; background: var(--ta-side); box-shadow: inset 0 -1px 0 var(--ta-border); }\n.ta-workbench-actions { display: flex; align-items: center; gap: 2px; flex: none; height: 34px; margin-left: auto; }\n.ta-workbench-actions .ta-icon-button, .ta-editor-tabs > .ta-workbench-open .ta-icon-button { width: 28px; height: 28px; border-radius: 7px; color: var(--ta-muted); }\n.ta-workbench-actions .ta-icon-button:hover, .ta-workbench-actions .ta-icon-button.ta-on, .ta-editor-tabs > .ta-workbench-open .ta-icon-button:is(:hover, .ta-on) { color: var(--ta-text); }\n.ta-editor-tabs > .ta-workbench-open { flex: none; align-items: center; height: 34px; }\n.ta-editor-tablist { flex: 0 1 auto; min-width: 0; display: flex; align-items: flex-end; align-self: stretch; padding-left: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }\n.ta-editor-tablist::-webkit-scrollbar { display: none; }\n.ta-editor-tab { position: relative; isolation: isolate; display: flex; align-items: center; flex: 0 1 auto; min-width: 92px; max-width: 200px; height: 34px; border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; color: var(--ta-muted); transition: color 120ms; }\n.ta-editor-tab::after { content: ''; position: absolute; z-index: -1; inset: 3px 2px 4px; border-radius: 7px; background: var(--ta-hover); opacity: 0; transition: opacity 120ms; }\n.ta-editor-tab + .ta-editor-tab::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--ta-border); transition: opacity 120ms; }\n.ta-editor-tab:hover { color: var(--ta-body); }\n.ta-editor-tab:not(.ta-active):hover::after { opacity: 1; }\n/* Short of room the tabs narrow, as a browser's, the one shown last; past their least width the strip scrolls. */\n.ta-editor-tab.ta-active { flex-shrink: 0; border-color: var(--ta-border); background: var(--ta-main); color: var(--ta-text); }\n.ta-editor-tab:is(:hover, .ta-active)::before, .ta-editor-tab:is(:hover, .ta-active) + .ta-editor-tab::before { opacity: 0; }\n.ta-editor-tab-button { display: flex; align-items: center; gap: 7px; min-width: 0; height: 100%; padding: 0 2px 0 12px; border: 0; background: transparent; color: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-editor-tab-button:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -4px; border-radius: 8px; }\n.ta-editor-tab-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-editor-tab-button > :not(span:last-child) { flex: none; }\n.ta-editor-tab-close { flex: none; width: 20px; height: 20px; margin-right: 7px; 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-strong); 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.ta-context-menu-check { flex: none; margin-left: auto; padding-left: 12px; box-sizing: content-box; color: var(--ta-brand); visibility: hidden; }\n.ta-context-menu-check.ta-on { visibility: visible; }\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; background: var(--ta-main); }\n.ta-workbench-title { display: flex; align-items: center; height: 34px; 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; 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/* Where the tools of + open: the directory of the conversation shown, as the caption of the menu. */\n.ta-workbench-menu-cwd { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; height: 30px; margin: 0 4px 4px; padding: 0 6px 4px; border-bottom: 1px solid var(--ta-border-muted); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); cursor: default; }\n.ta-workbench-menu-cwd > svg { flex: none; }\n.ta-workbench-menu.ta-start { left: 0; }\n.ta-workbench-menu.ta-end { right: 0; }\n/*\n * The head of the workbench on a phone (CompactHead): back, the tab shown with how many are open, which lists\n * them under it (TabSwitcher), and +. Over what it shows: the list and the scrim it lays over the tab.\n */\n.ta-editor-head-compact { position: relative; z-index: 5; flex: none; }\n.ta-compact .ta-editor-tabs { align-items: center; gap: 2px; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) calc(6px + env(safe-area-inset-right)) 0 calc(4px + env(safe-area-inset-left)); background: var(--ta-main); box-shadow: inset 0 -1px 0 var(--ta-border-muted); }\n.ta-compact .ta-editor-tabs > .ta-icon-button, .ta-compact .ta-editor-tabs > .ta-workbench-open .ta-icon-button { width: 40px; height: 40px; border-radius: 10px; color: var(--ta-secondary); }\n.ta-compact .ta-editor-tabs > .ta-workbench-open { flex: none; margin-left: auto; }\n.ta-compact .ta-workbench-title { flex: 1; min-width: 0; height: auto; padding: 0 6px; color: var(--ta-text); font-size: calc(16px * var(--ta-font-scale)); }\n.ta-workbench-switch { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 6px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; font-size: calc(16px * var(--ta-font-scale)); font-weight: 600; transition: background 120ms; }\n.ta-workbench-switch > :first-child { flex: none; color: var(--ta-secondary); }\n.ta-workbench-switch:active, .ta-workbench-switch.ta-on { background: var(--ta-hover); }\n.ta-workbench-switch-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-workbench-count { flex: none; min-width: calc(20px * var(--ta-font-scale)); height: calc(20px * var(--ta-font-scale)); padding: 0 6px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); font-weight: 600; line-height: calc(20px * var(--ta-font-scale)); text-align: center; font-variant-numeric: tabular-nums; }\n.ta-workbench-switch-caret { flex: none; margin-left: -2px; color: var(--ta-muted); transition: transform 220ms var(--ta-ease); }\n.ta-workbench-switch.ta-on .ta-workbench-switch-caret { transform: rotate(180deg); }\n.ta-tab-switcher-scrim { position: absolute; top: 100%; left: 0; right: 0; height: 100vh; padding: 0; border: 0; background: rgba(0, 0, 0, 0.18); animation: ta-fade 180ms ease-out; -webkit-tap-highlight-color: transparent; }\n.ta-tab-switcher { position: absolute; top: calc(100% + 6px); left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); display: flex; flex-direction: column; max-height: min(64vh, 520px); overflow: hidden; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); transform-origin: 50% 0; animation: ta-tabs-drop 200ms var(--ta-ease); }\n@keyframes ta-tabs-drop { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); } }\n.ta-tab-switcher-head { display: flex; align-items: center; gap: 10px; flex: none; height: 44px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--ta-border-muted); color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-tab-switcher-count { flex: none; font-weight: 500; color: var(--ta-secondary); }\n.ta-tab-switcher-all { flex: none; height: 32px; margin-left: auto; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-tab-switcher-all:active { background: var(--ta-hover); }\n.ta-tab-switcher-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }\n.ta-tab-switcher-row { display: flex; align-items: center; flex: none; min-height: 48px; border-radius: 11px; transition: background 120ms; }\n.ta-tab-switcher-row.ta-active { background: var(--ta-selected); }\n.ta-tab-switcher-row:has(> .ta-tab-switcher-main:active) { background: var(--ta-hover); }\n.ta-tab-switcher-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 4px 0 8px; border: 0; background: none; color: var(--ta-body); font: inherit; font-size: calc(15px * var(--ta-font-scale)); text-align: left; }\n.ta-tab-switcher-row.ta-active .ta-tab-switcher-main { color: var(--ta-text); font-weight: 500; }\n.ta-tab-switcher-glyph { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-tab-switcher-row.ta-active .ta-tab-switcher-glyph { background: var(--ta-main); }\n.ta-tab-switcher-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-tab-switcher-title.ta-preview { font-style: italic; }\n.ta-tab-switcher-dirty { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }\n.ta-tab-switcher-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ta-muted); }\n.ta-tab-switcher-close:active { background: var(--ta-hover-strong); color: var(--ta-text); }\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/* Maximized, the workbench takes the whole window: the navigation and the conversation step aside. */\n.ta-workbench-max .ta-nav, .ta-workbench-max .ta-scrim, .ta-workbench-max .ta-main { display: none; }\n.ta-workbench-max .ta-editors { border-left: 0; }\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}\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) - var(--ta-lift)) 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; gap: 4px; }\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 view on its way (Loading) in the middle of its body. */\n.ta-side-view-body:has(> .ta-loading) { display: flex; flex-direction: column; }\n/* The top bar of a sidebar view on its way: its room kept, empty. */\n.ta-loading-head { flex: 1; min-width: 0; height: 36px; }\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-loading { animation: none; }\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/*\n * A sash draws no line of its own: on a pause over it the border of the columns it sits on (the sidebar's right, the\n * workbench's left) lightens a little, a pixel wide, under the title bar and clear of the rounded corner of the\n * conversation; a little more while dragged.\n */\n.ta-sash::after { content: ''; position: absolute; top: calc(var(--ta-titlebar) + min(10px, var(--ta-titlebar))); bottom: 0; width: 1px; background: color-mix(in srgb, var(--ta-border-focus) 22%, transparent); opacity: 0; transition: opacity 180ms 0ms; }\n.ta-sash-start::after { left: 3px; }\n.ta-sash-end::after { left: 4px; }\n.ta-sash:hover::after { opacity: 1; transition-delay: 300ms; }\n.ta-sash.ta-dragging::after, .ta-sash:focus-visible::after { opacity: 1; background: color-mix(in srgb, var(--ta-border-focus) 45%, transparent); 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/*\n * The tabs of a wide workbench, as a browser's or an editor's: a strip the colour of the side over a line; the tab\n * shown is a card the colour of what it shows, joined to it across the line; the others lie on the strip, a short\n * line between two of them, a rounded hover inside; + follows the last. The line is an inset shadow, under the\n * tabs: the card covers it. A phone has its own head (.ta-compact, below).\n */\n.ta-editor-tabs { display: flex; align-items: flex-end; gap: 2px; height: calc(34px + env(safe-area-inset-top)); flex: none; padding: env(safe-area-inset-top) 8px 0 0; background: var(--ta-side); box-shadow: inset 0 -1px 0 var(--ta-border); }\n.ta-workbench-actions { display: flex; align-items: center; gap: 2px; flex: none; height: 34px; margin-left: auto; }\n.ta-workbench-actions .ta-icon-button, .ta-editor-tabs > .ta-workbench-open .ta-icon-button { width: 28px; height: 28px; border-radius: 7px; color: var(--ta-muted); }\n.ta-workbench-actions .ta-icon-button:hover, .ta-workbench-actions .ta-icon-button.ta-on, .ta-editor-tabs > .ta-workbench-open .ta-icon-button:is(:hover, .ta-on) { color: var(--ta-text); }\n.ta-editor-tabs > .ta-workbench-open { flex: none; align-items: center; height: 34px; }\n.ta-editor-tablist { flex: 0 1 auto; min-width: 0; display: flex; align-items: flex-end; align-self: stretch; padding-left: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }\n.ta-editor-tablist::-webkit-scrollbar { display: none; }\n.ta-editor-tab { position: relative; isolation: isolate; display: flex; align-items: center; flex: 0 1 auto; min-width: 92px; max-width: 200px; height: 34px; border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; color: var(--ta-muted); transition: color 120ms; }\n.ta-editor-tab::after { content: ''; position: absolute; z-index: -1; inset: 3px 2px 4px; border-radius: 7px; background: var(--ta-hover); opacity: 0; transition: opacity 120ms; }\n.ta-editor-tab + .ta-editor-tab::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 1px; background: var(--ta-border); transition: opacity 120ms; }\n.ta-editor-tab:hover { color: var(--ta-body); }\n.ta-editor-tab:not(.ta-active):hover::after { opacity: 1; }\n/* Short of room the tabs narrow, as a browser's, the one shown last; past their least width the strip scrolls. */\n.ta-editor-tab.ta-active { flex-shrink: 0; border-color: var(--ta-border); background: var(--ta-main); color: var(--ta-text); }\n.ta-editor-tab:is(:hover, .ta-active)::before, .ta-editor-tab:is(:hover, .ta-active) + .ta-editor-tab:not(.ta-active)::before { opacity: 0; }\n/*\n * The card of the tab shown flares into the line under the strip at its foot, a browser's tab: a quarter ring on each\n * side, the colour of what it shows below it.\n */\n.ta-editor-tab.ta-active::before, .ta-editor-tab.ta-active::after { content: ''; position: absolute; z-index: -1; top: auto; right: auto; bottom: 0; width: 8px; height: 8px; border-radius: 0; opacity: 1; transition: none; }\n.ta-editor-tab.ta-active::before { left: -8px; background: radial-gradient(circle at 0 0, transparent 6.5px, var(--ta-border) 7px 7.5px, var(--ta-main) 8px); }\n.ta-editor-tab.ta-active::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent 6.5px, var(--ta-border) 7px 7.5px, var(--ta-main) 8px); }\n.ta-editor-tab-button { display: flex; align-items: center; gap: 7px; min-width: 0; height: 100%; padding: 0 2px 0 12px; border: 0; background: transparent; color: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-editor-tab-button:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -4px; border-radius: 8px; }\n.ta-editor-tab-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-editor-tab-button > :not(span:last-child) { flex: none; }\n.ta-editor-tab-close { flex: none; width: 20px; height: 20px; margin-right: 7px; 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-strong); 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.ta-context-menu-check { flex: none; margin-left: auto; padding-left: 12px; box-sizing: content-box; color: var(--ta-brand); visibility: hidden; }\n.ta-context-menu-check.ta-on { visibility: visible; }\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; background: var(--ta-main); }\n.ta-workbench-title { display: flex; align-items: center; height: 34px; 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; 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/* Where the tools of + open: the directory of the conversation shown, as the caption of the menu. */\n.ta-workbench-menu-cwd { display: flex; align-items: center; gap: 6px; flex: none; min-width: 0; height: 30px; margin: 0 4px 4px; padding: 0 6px 4px; border-bottom: 1px solid var(--ta-border-muted); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); cursor: default; }\n.ta-workbench-menu-cwd > svg { flex: none; }\n.ta-workbench-menu.ta-start { left: 0; }\n.ta-workbench-menu.ta-end { right: 0; }\n/*\n * The head of the workbench on a phone (CompactHead): back, the tab shown with how many are open, which lists\n * them under it (TabSwitcher), and +. Over what it shows: the list and the scrim it lays over the tab.\n */\n.ta-editor-head-compact { position: relative; z-index: 5; flex: none; }\n.ta-compact .ta-editor-tabs { align-items: center; gap: 2px; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) calc(6px + env(safe-area-inset-right)) 0 calc(4px + env(safe-area-inset-left)); background: var(--ta-main); box-shadow: inset 0 -1px 0 var(--ta-border-muted); }\n.ta-compact .ta-editor-tabs > .ta-icon-button, .ta-compact .ta-editor-tabs > .ta-workbench-open .ta-icon-button { width: 40px; height: 40px; border-radius: 10px; color: var(--ta-secondary); }\n.ta-compact .ta-editor-tabs > .ta-workbench-open { flex: none; margin-left: auto; }\n.ta-compact .ta-workbench-title { flex: 1; min-width: 0; height: auto; padding: 0 6px; color: var(--ta-text); font-size: calc(16px * var(--ta-font-scale)); }\n.ta-workbench-switch { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 6px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; font-size: calc(16px * var(--ta-font-scale)); font-weight: 600; transition: background 120ms; }\n.ta-workbench-switch > :first-child { flex: none; color: var(--ta-secondary); }\n.ta-workbench-switch:active, .ta-workbench-switch.ta-on { background: var(--ta-hover); }\n.ta-workbench-switch-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-workbench-count { flex: none; min-width: calc(20px * var(--ta-font-scale)); height: calc(20px * var(--ta-font-scale)); padding: 0 6px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); font-weight: 600; line-height: calc(20px * var(--ta-font-scale)); text-align: center; font-variant-numeric: tabular-nums; }\n.ta-workbench-switch-caret { flex: none; margin-left: -2px; color: var(--ta-muted); transition: transform 220ms var(--ta-ease); }\n.ta-workbench-switch.ta-on .ta-workbench-switch-caret { transform: rotate(180deg); }\n.ta-tab-switcher-scrim { position: absolute; top: 100%; left: 0; right: 0; height: 100vh; padding: 0; border: 0; background: rgba(0, 0, 0, 0.18); animation: ta-fade 180ms ease-out; -webkit-tap-highlight-color: transparent; }\n.ta-tab-switcher { position: absolute; top: calc(100% + 6px); left: calc(8px + env(safe-area-inset-left)); right: calc(8px + env(safe-area-inset-right)); display: flex; flex-direction: column; max-height: min(64vh, 520px); overflow: hidden; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); transform-origin: 50% 0; animation: ta-tabs-drop 200ms var(--ta-ease); }\n@keyframes ta-tabs-drop { from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.98); } }\n.ta-tab-switcher-head { display: flex; align-items: center; gap: 10px; flex: none; height: 44px; padding: 0 6px 0 16px; border-bottom: 1px solid var(--ta-border-muted); color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-tab-switcher-count { flex: none; font-weight: 500; color: var(--ta-secondary); }\n.ta-tab-switcher-all { flex: none; height: 32px; margin-left: auto; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-tab-switcher-all:active { background: var(--ta-hover); }\n.ta-tab-switcher-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }\n.ta-tab-switcher-row { display: flex; align-items: center; flex: none; min-height: 48px; border-radius: 11px; transition: background 120ms; }\n.ta-tab-switcher-row.ta-active { background: var(--ta-selected); }\n.ta-tab-switcher-row:has(> .ta-tab-switcher-main:active) { background: var(--ta-hover); }\n.ta-tab-switcher-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 4px 0 8px; border: 0; background: none; color: var(--ta-body); font: inherit; font-size: calc(15px * var(--ta-font-scale)); text-align: left; }\n.ta-tab-switcher-row.ta-active .ta-tab-switcher-main { color: var(--ta-text); font-weight: 500; }\n.ta-tab-switcher-glyph { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-secondary); }\n.ta-tab-switcher-row.ta-active .ta-tab-switcher-glyph { background: var(--ta-main); }\n.ta-tab-switcher-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-tab-switcher-title.ta-preview { font-style: italic; }\n.ta-tab-switcher-dirty { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }\n.ta-tab-switcher-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ta-muted); }\n.ta-tab-switcher-close:active { background: var(--ta-hover-strong); color: var(--ta-text); }\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/* Maximized, the workbench takes the whole window: the navigation and the conversation step aside. */\n.ta-workbench-max .ta-nav, .ta-workbench-max .ta-scrim, .ta-workbench-max .ta-main { display: none; }\n.ta-workbench-max .ta-editors { border-left: 0; }\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}\n";
|
|
3
3
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -7,7 +7,7 @@ exports.LAYOUT_STYLE = `
|
|
|
7
7
|
/* Layout (t5): panes the user resizes and collapses, the sashes between them, the tabs of the editor area */
|
|
8
8
|
.ta-sidebar, .ta-editors-pane { position: relative; display: flex; min-height: 0; height: 100%; }
|
|
9
9
|
.ta-sidebar { width: var(--ta-pane, 260px); flex: none; }
|
|
10
|
-
.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); }
|
|
10
|
+
.ta-side-view { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar) - var(--ta-lift)) 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }
|
|
11
11
|
.ta-side-view-head { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
|
|
12
12
|
.ta-main-head-view { flex: 1; min-width: 0; display: flex; align-items: center; }
|
|
13
13
|
.ta-side-view-body { flex: 1; min-height: 0; overflow: auto; margin: 0 -8px; padding: 0 8px; }
|
|
@@ -26,9 +26,16 @@ exports.LAYOUT_STYLE = `
|
|
|
26
26
|
.ta-sash { position: absolute; z-index: 6; top: 0; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; outline: none; }
|
|
27
27
|
.ta-sash-start { right: -4px; }
|
|
28
28
|
.ta-sash-end { left: -4px; }
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
/*
|
|
30
|
+
* A sash draws no line of its own: on a pause over it the border of the columns it sits on (the sidebar's right, the
|
|
31
|
+
* workbench's left) lightens a little, a pixel wide, under the title bar and clear of the rounded corner of the
|
|
32
|
+
* conversation; a little more while dragged.
|
|
33
|
+
*/
|
|
34
|
+
.ta-sash::after { content: ''; position: absolute; top: calc(var(--ta-titlebar) + min(10px, var(--ta-titlebar))); bottom: 0; width: 1px; background: color-mix(in srgb, var(--ta-border-focus) 22%, transparent); opacity: 0; transition: opacity 180ms 0ms; }
|
|
35
|
+
.ta-sash-start::after { left: 3px; }
|
|
36
|
+
.ta-sash-end::after { left: 4px; }
|
|
37
|
+
.ta-sash:hover::after { opacity: 1; transition-delay: 300ms; }
|
|
38
|
+
.ta-sash.ta-dragging::after, .ta-sash:focus-visible::after { opacity: 1; background: color-mix(in srgb, var(--ta-border-focus) 45%, transparent); transition-delay: 0ms; }
|
|
32
39
|
.ta-resizing, .ta-resizing * { cursor: col-resize !important; user-select: none !important; }
|
|
33
40
|
.ta-resizing iframe { pointer-events: none; }
|
|
34
41
|
.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); }
|
|
@@ -38,7 +45,7 @@ exports.LAYOUT_STYLE = `
|
|
|
38
45
|
* line between two of them, a rounded hover inside; + follows the last. The line is an inset shadow, under the
|
|
39
46
|
* tabs: the card covers it. A phone has its own head (.ta-compact, below).
|
|
40
47
|
*/
|
|
41
|
-
.ta-editor-tabs { display: flex; align-items: flex-end; gap: 2px; height: calc(
|
|
48
|
+
.ta-editor-tabs { display: flex; align-items: flex-end; gap: 2px; height: calc(34px + env(safe-area-inset-top)); flex: none; padding: env(safe-area-inset-top) 8px 0 0; background: var(--ta-side); box-shadow: inset 0 -1px 0 var(--ta-border); }
|
|
42
49
|
.ta-workbench-actions { display: flex; align-items: center; gap: 2px; flex: none; height: 34px; margin-left: auto; }
|
|
43
50
|
.ta-workbench-actions .ta-icon-button, .ta-editor-tabs > .ta-workbench-open .ta-icon-button { width: 28px; height: 28px; border-radius: 7px; color: var(--ta-muted); }
|
|
44
51
|
.ta-workbench-actions .ta-icon-button:hover, .ta-workbench-actions .ta-icon-button.ta-on, .ta-editor-tabs > .ta-workbench-open .ta-icon-button:is(:hover, .ta-on) { color: var(--ta-text); }
|
|
@@ -52,7 +59,14 @@ exports.LAYOUT_STYLE = `
|
|
|
52
59
|
.ta-editor-tab:not(.ta-active):hover::after { opacity: 1; }
|
|
53
60
|
/* Short of room the tabs narrow, as a browser's, the one shown last; past their least width the strip scrolls. */
|
|
54
61
|
.ta-editor-tab.ta-active { flex-shrink: 0; border-color: var(--ta-border); background: var(--ta-main); color: var(--ta-text); }
|
|
55
|
-
.ta-editor-tab:is(:hover, .ta-active)::before, .ta-editor-tab:is(:hover, .ta-active) + .ta-editor-tab::before { opacity: 0; }
|
|
62
|
+
.ta-editor-tab:is(:hover, .ta-active)::before, .ta-editor-tab:is(:hover, .ta-active) + .ta-editor-tab:not(.ta-active)::before { opacity: 0; }
|
|
63
|
+
/*
|
|
64
|
+
* The card of the tab shown flares into the line under the strip at its foot, a browser's tab: a quarter ring on each
|
|
65
|
+
* side, the colour of what it shows below it.
|
|
66
|
+
*/
|
|
67
|
+
.ta-editor-tab.ta-active::before, .ta-editor-tab.ta-active::after { content: ''; position: absolute; z-index: -1; top: auto; right: auto; bottom: 0; width: 8px; height: 8px; border-radius: 0; opacity: 1; transition: none; }
|
|
68
|
+
.ta-editor-tab.ta-active::before { left: -8px; background: radial-gradient(circle at 0 0, transparent 6.5px, var(--ta-border) 7px 7.5px, var(--ta-main) 8px); }
|
|
69
|
+
.ta-editor-tab.ta-active::after { left: 100%; background: radial-gradient(circle at 100% 0, transparent 6.5px, var(--ta-border) 7px 7.5px, var(--ta-main) 8px); }
|
|
56
70
|
.ta-editor-tab-button { display: flex; align-items: center; gap: 7px; min-width: 0; height: 100%; padding: 0 2px 0 12px; border: 0; background: transparent; color: inherit; font-size: calc(13px * var(--ta-font-scale)); }
|
|
57
71
|
.ta-editor-tab-button:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -4px; border-radius: 8px; }
|
|
58
72
|
.ta-editor-tab-button > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|