@celljs/ta-web 4.25.0 → 4.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/esm/browser/account/account-side.js +3 -1
  2. package/esm/browser/assistant/assistant-task-source.js +3 -1
  3. package/esm/browser/assistant/assistant-thread.d.ts +5 -2
  4. package/esm/browser/assistant/assistant-thread.js +70 -46
  5. package/esm/browser/assistant/assistant-view.js +9 -3
  6. package/esm/browser/components/account-menu.d.ts +2 -1
  7. package/esm/browser/components/account-menu.js +7 -2
  8. package/esm/browser/components/app-nav.js +5 -5
  9. package/esm/browser/components/chat-asks.js +16 -1
  10. package/esm/browser/components/chat-home.d.ts +7 -2
  11. package/esm/browser/components/chat-home.js +2 -2
  12. package/esm/browser/components/chat-icon.d.ts +6 -1
  13. package/esm/browser/components/chat-icon.js +45 -4
  14. package/esm/browser/components/chat-list-hooks.d.ts +10 -0
  15. package/esm/browser/components/chat-list-hooks.js +15 -0
  16. package/esm/browser/components/chat-list.js +7 -9
  17. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  18. package/esm/browser/components/composer-addon-util.d.ts +5 -0
  19. package/esm/browser/components/composer-addon-util.js +17 -0
  20. package/esm/browser/components/composer-addons.d.ts +3 -1
  21. package/esm/browser/components/composer-addons.js +5 -2
  22. package/esm/browser/components/editor-area.js +2 -2
  23. package/esm/browser/components/host-view.d.ts +1 -1
  24. package/esm/browser/components/message-footer.d.ts +2 -2
  25. package/esm/browser/components/message-footer.js +2 -2
  26. package/esm/browser/components/message-list.d.ts +12 -0
  27. package/esm/browser/components/message-list.js +31 -18
  28. package/esm/browser/components/nav-places.d.ts +2 -1
  29. package/esm/browser/components/nav-places.js +3 -2
  30. package/esm/browser/components/serve-restart.d.ts +11 -2
  31. package/esm/browser/components/serve-restart.js +64 -3
  32. package/esm/browser/components/session-view.js +3 -2
  33. package/esm/browser/components/settings-more.js +7 -4
  34. package/esm/browser/extension/extension-view.d.ts +8 -0
  35. package/esm/browser/extension/extension-view.js +12 -1
  36. package/esm/browser/extension/icons.js +10 -1
  37. package/esm/browser/extension/web-api-contributions.d.ts +15 -2
  38. package/esm/browser/extension/web-api-partners.d.ts +6 -0
  39. package/esm/browser/extension/web-home.js +8 -0
  40. package/esm/browser/i18n/locales.d.ts +8 -1
  41. package/esm/browser/i18n/messages-ja.js +7 -0
  42. package/esm/browser/i18n/messages-zh-tw.js +7 -0
  43. package/esm/browser/i18n/messages.d.ts +7 -0
  44. package/esm/browser/i18n/messages.js +14 -0
  45. package/esm/browser/style/conversation-column.d.ts +1 -1
  46. package/esm/browser/style/conversation-column.js +2 -2
  47. package/esm/browser/style/shell.d.ts +1 -1
  48. package/esm/browser/style/shell.js +7 -4
  49. package/esm/browser/style/tasks.d.ts +1 -1
  50. package/esm/browser/style/tasks.js +1 -1
  51. package/esm/browser/workbench-protocol.d.ts +5 -0
  52. package/esm/browser/workbench.d.ts +1 -0
  53. package/esm/browser/workbench.js +20 -0
  54. package/lib/browser/account/account-side.js +3 -1
  55. package/lib/browser/assistant/assistant-task-source.js +3 -1
  56. package/lib/browser/assistant/assistant-thread.d.ts +5 -2
  57. package/lib/browser/assistant/assistant-thread.js +70 -46
  58. package/lib/browser/assistant/assistant-view.js +8 -2
  59. package/lib/browser/components/account-menu.d.ts +2 -1
  60. package/lib/browser/components/account-menu.js +6 -1
  61. package/lib/browser/components/app-nav.js +4 -4
  62. package/lib/browser/components/chat-asks.js +16 -1
  63. package/lib/browser/components/chat-home.d.ts +7 -2
  64. package/lib/browser/components/chat-home.js +2 -2
  65. package/lib/browser/components/chat-icon.d.ts +6 -1
  66. package/lib/browser/components/chat-icon.js +45 -4
  67. package/lib/browser/components/chat-list-hooks.d.ts +10 -0
  68. package/lib/browser/components/chat-list-hooks.js +16 -0
  69. package/lib/browser/components/chat-list.js +6 -8
  70. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  71. package/lib/browser/components/composer-addon-util.d.ts +5 -0
  72. package/lib/browser/components/composer-addon-util.js +17 -0
  73. package/lib/browser/components/composer-addons.d.ts +3 -1
  74. package/lib/browser/components/composer-addons.js +5 -2
  75. package/lib/browser/components/editor-area.js +1 -1
  76. package/lib/browser/components/host-view.d.ts +1 -1
  77. package/lib/browser/components/message-footer.d.ts +2 -2
  78. package/lib/browser/components/message-footer.js +3 -4
  79. package/lib/browser/components/message-list.d.ts +12 -0
  80. package/lib/browser/components/message-list.js +32 -18
  81. package/lib/browser/components/nav-places.d.ts +2 -1
  82. package/lib/browser/components/nav-places.js +3 -2
  83. package/lib/browser/components/serve-restart.d.ts +11 -2
  84. package/lib/browser/components/serve-restart.js +64 -3
  85. package/lib/browser/components/session-view.js +3 -2
  86. package/lib/browser/components/settings-more.js +7 -4
  87. package/lib/browser/extension/extension-view.d.ts +8 -0
  88. package/lib/browser/extension/extension-view.js +12 -0
  89. package/lib/browser/extension/icons.js +9 -0
  90. package/lib/browser/extension/web-api-contributions.d.ts +15 -2
  91. package/lib/browser/extension/web-api-partners.d.ts +6 -0
  92. package/lib/browser/extension/web-home.js +8 -0
  93. package/lib/browser/i18n/locales.d.ts +8 -1
  94. package/lib/browser/i18n/messages-ja.js +7 -0
  95. package/lib/browser/i18n/messages-zh-tw.js +7 -0
  96. package/lib/browser/i18n/messages.d.ts +7 -0
  97. package/lib/browser/i18n/messages.js +14 -0
  98. package/lib/browser/style/conversation-column.d.ts +1 -1
  99. package/lib/browser/style/conversation-column.js +2 -2
  100. package/lib/browser/style/shell.d.ts +1 -1
  101. package/lib/browser/style/shell.js +7 -4
  102. package/lib/browser/style/tasks.d.ts +1 -1
  103. package/lib/browser/style/tasks.js +1 -1
  104. package/lib/browser/workbench-protocol.d.ts +5 -0
  105. package/lib/browser/workbench.d.ts +1 -0
  106. package/lib/browser/workbench.js +20 -0
  107. package/package.json +7 -7
@@ -1,2 +1,2 @@
1
1
  /** The shell: navigation, main column, panel; the double, cards, notices, overlays, sign-in. */
2
- export declare const SHELL_STYLE = "\n/* Shell: the navigation (rail and chats), the main column, the panel */\n.ta-app { display: flex; height: 100vh; height: var(--ta-viewport, 100dvh); background: var(--ta-main); overflow: hidden; }\n.ta-nav { display: flex; flex: none; height: 100%; z-index: 20; }\n.ta-rail { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar) - var(--ta-lift)) 0 calc(10px + env(safe-area-inset-bottom)); background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.ta-nav:has(> .ta-sidebar) > .ta-rail { border-right-color: transparent; }\n.ta-rail-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; margin-bottom: 6px; }\n.ta-rail-items { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow-y: auto; scrollbar-width: none; padding: 0 8px; }\n.ta-rail-item { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ta-muted); transition: background 150ms, color 150ms; }\n.ta-rail-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-rail-item.ta-active { background: var(--ta-selected); color: var(--ta-text); }\n.ta-rail-divider { width: 24px; height: 0; flex: none; margin: 4px 0; border: 0; border-top: 1px solid var(--ta-border); }\n.ta-rail-status { display: grid; place-items: center; width: 40px; height: 22px; }\n.ta-ok .ta-dot { color: var(--ta-green); }\n.ta-warn .ta-dot { color: var(--ta-yellow); }\n.ta-chats, .ta-side-view { flex: 1; min-width: 0; 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-chats-head { display: flex; align-items: center; gap: 2px; height: 40px; flex: none; padding: 0 0 0 8px; margin-bottom: 6px; }\n.ta-chats-title { flex: 1; font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-panel-cards { display: flex; flex-direction: column; gap: 12px; min-height: 100%; box-sizing: border-box; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }\n.ta-side-section { display: flex; align-items: center; gap: 6px; padding: 6px 8px 2px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-side-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }\n.ta-side-scroll:has(> .ta-empty) { display: flex; flex-direction: column; }\n.ta-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-side-row { position: relative; display: flex; align-items: center; border-radius: 10px; }\n.ta-side-row:hover, .ta-side-row.ta-selected { background: var(--ta-hover); }\n.ta-side-row.ta-selected { background: var(--ta-selected); }\n.ta-side-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; transition: background 120ms; }\n.ta-side-list > li > .ta-side-item:hover { background: var(--ta-hover); }\n.ta-side-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.ta-side-item-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-side-item-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-side-item-time { align-self: flex-start; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }\n.ta-close { position: absolute; right: 4px; opacity: 0; width: 26px; height: 26px; }\n.ta-side-row:hover .ta-close, .ta-close:focus-visible { opacity: 1; }\n.ta-task-status { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ta-raised); color: var(--ta-secondary); }\n.ta-task-status-done { color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 14%, transparent); }\n.ta-task-status-failed { color: var(--ta-red); background: color-mix(in srgb, var(--ta-red) 14%, transparent); }\n.ta-task-status-stopped { color: var(--ta-muted); }\n.ta-task-status .ta-spinner { width: 12px; height: 12px; }\n.ta-main { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-top: var(--ta-titlebar); background: var(--ta-main); }\n.ta-main-head { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 12px; padding-top: env(safe-area-inset-top); flex: none; }\n.ta-main-title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.3; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n/* A title between the buttons of the head is centred on it, whatever buttons its sides have: a back button on one,\n the workbench's on the other, both or neither. */\n.ta-main-head:has(> .ta-main-title) { display: grid; grid-template-columns: minmax(32px, 1fr) minmax(0, auto) minmax(32px, 1fr); }\n.ta-main-head:has(> .ta-main-title) > * { grid-row: 1; grid-column: 1; justify-self: start; }\n.ta-main-head:has(> .ta-main-title) > .ta-main-title { grid-column: 2; justify-self: stretch; }\n.ta-main-head:has(> .ta-main-title) > .ta-main-title ~ * { grid-column: 3; justify-self: end; }\n.ta-main-sub { font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 400; color: var(--ta-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n\n/* The double's chat */\n/* As .ta-scroll: nothing in a conversation is wider than it, it never scrolls sideways. */\n.ta-chat-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }\n.ta-chat-col { width: 100%; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 16px; }\n.ta-chat-scroll { overflow-anchor: none; }\n.ta-chat-scroll .ta-chat-col { position: relative; padding-top: 12px; padding-bottom: 24px; min-height: 100%; }\n.ta-hero { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 0; animation: ta-in 320ms var(--ta-ease); }\n.ta-hero-center { flex: 1; justify-content: center; }\n.ta-hero h1 { margin: 6px 0 0; font-size: calc(22px * var(--ta-font-scale)); font-weight: 650; letter-spacing: -0.01em; }\n/* Chinese breaks between its words and after its commas, not inside a word, so that balance does not cut \u547D\u4EE4 in two. */\n.ta-hero p { margin: 0; max-width: 440px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; color: var(--ta-secondary); font-size: calc(14px * var(--ta-font-scale)); }\n.ta-hero-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-hero-step { display: inline-flex; align-items: center; gap: 7px; }\n.ta-hero-step-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.ta-hero-arrow { color: var(--ta-muted); }\n.ta-hero .ta-pic-cards { max-width: 524px; margin-top: 18px; }\n/* Pictures (components/picture.tsx, ui.Picture): a few shapes in the tones of the theme; choices as cards of them */\n.ta-pic-cards { display: grid; grid-template-columns: repeat(var(--ta-pic-columns, 3), minmax(0, 1fr)); gap: 10px; width: 100%; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) { .ta-pic-cards { grid-template-columns: repeat(var(--ta-pic-columns-compact, 3), minmax(0, 1fr)); gap: 8px; } }\n.ta-pic-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 7px 7px 10px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); color: var(--ta-body); font: inherit; font-size: calc(13px * var(--ta-font-scale)); text-align: center; cursor: pointer; transition: border-color 140ms, background 140ms, box-shadow 140ms, transform 140ms var(--ta-ease); animation: ta-in 320ms var(--ta-ease) both; }\n.ta-pic-card:nth-child(2) { animation-delay: 50ms; }\n.ta-pic-card:nth-child(3) { animation-delay: 100ms; }\n.ta-pic-card:nth-child(n+4) { animation-delay: 150ms; }\n.ta-pic-card:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ta-green) 55%, var(--ta-border)); background: var(--ta-hover); color: var(--ta-text); }\n.ta-pic-card:hover:not(:disabled) .ta-pic-accent { fill: color-mix(in srgb, var(--ta-green) 26%, transparent); }\n.ta-pic-card:active:not(:disabled) { transform: scale(.98); }\n.ta-pic-card:disabled { opacity: .55; cursor: default; }\n.ta-pic-card-label { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-wrap: balance; }\n.ta-pic-card-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pic-card-hinted { gap: 6px; text-align: left; }\n.ta-pic-card-hinted .ta-pic-card-label { padding: 0 4px; color: var(--ta-text); font-weight: 600; }\n.ta-pic-card-hint { margin-top: -3px; padding: 0 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-pic { display: block; width: 100%; height: auto; border-radius: 8px; }\n.ta-pic-frame { fill: var(--ta-raised); stroke: var(--ta-border-muted); stroke-width: 1; }\n.ta-pic-pane { fill: var(--ta-hover); }\n.ta-pic-line, .ta-pic-dot { fill: var(--ta-hover-strong); }\n.ta-pic-box { fill: none; stroke: var(--ta-border); stroke-width: 1; }\n.ta-pic-accent { fill: color-mix(in srgb, var(--ta-green) 16%, transparent); stroke: color-mix(in srgb, var(--ta-green) 70%, transparent); stroke-width: 1; transition: fill 140ms; }\n.ta-pic-mark { fill: var(--ta-green); }\n.ta-pic-soft { opacity: .45; }\n.ta-pic-plus { fill: color-mix(in srgb, var(--ta-green) 55%, transparent); }\n.ta-pic-bad { fill: color-mix(in srgb, var(--ta-red) 85%, transparent); }\n.ta-pic-wait { fill: var(--ta-yellow); }\n.ta-pic-ring { fill: color-mix(in srgb, var(--ta-raised) 60%, transparent); stroke: var(--ta-green); stroke-width: 3; }\n.ta-pic-stroke { fill: none; stroke: var(--ta-green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }\n.ta-pic-thin { stroke: var(--ta-border); stroke-width: 2; }\n.ta-pic-path { fill: none; stroke: var(--ta-border); stroke-width: 1.5; stroke-dasharray: 3 4; }\n.ta-pic-hand, .ta-pic-tick, .ta-pic-cross { fill: none; stroke: var(--ta-raised); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }\n.ta-pic-tick { stroke-width: 1.6; }\n.ta-pic-tick-big { stroke: var(--ta-green); stroke-width: 3; }\n.ta-pic-text { fill: var(--ta-green); font-family: var(--ta-mono); font-size: 8px; font-weight: 600; }\n.ta-pic-fine { stroke-width: 2; }\n.ta-pic-shackle { fill: none; stroke: var(--ta-green); stroke-width: 2.4; stroke-linecap: round; }\n/* Something on its way along a ta-pic-path, and a line that sweeps a screen being scanned */\n@keyframes ta-pic-go { 0% { transform: translateX(-14px); opacity: 0; } 25%, 75% { opacity: 1; } 100% { transform: translateX(14px); opacity: 0; } }\n@keyframes ta-pic-sweep { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }\n.ta-pic-go { animation: ta-pic-go 1.8s ease-in-out infinite; transform-box: fill-box; }\n.ta-pic-go-back { animation-delay: .9s; }\n.ta-pic-sweep { animation: ta-pic-sweep 2.4s ease-in-out infinite; transform-box: fill-box; }\n/* Where to tap, as a ring that spreads from it */\n@keyframes ta-pic-pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }\n.ta-pic-pulse { animation: ta-pic-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }\n.ta-msg-user { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; animation: ta-in 220ms var(--ta-ease); }\n.ta-msg-bubble { max-width: 78%; padding: 9px 14px; border-radius: 16px 16px 5px 16px; background: var(--ta-user); color: var(--ta-text); white-space: pre-wrap; word-break: break-word; }\n.ta-msg-ta { color: var(--ta-body); line-height: 1.75; display: flex; flex-direction: column; gap: 6px; animation: ta-in 220ms var(--ta-ease); }\n.ta-row { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 8px; margin: 0 -8px; border-radius: 8px; border: 0; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-row-title { color: var(--ta-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-row-meta, .ta-row-label { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); flex: none; }\n.ta-row-chevron { margin-left: auto; color: var(--ta-muted); }\n.ta-row-quiet { color: var(--ta-muted); }\n.ta-row-quiet .ta-row-title { font-weight: 400; color: var(--ta-secondary); }\n.ta-composer-area { flex: none; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }\n.ta-composer-area .ta-chat-col { gap: 8px; }\n.ta-attention { display: flex; flex-direction: column; gap: 4px; animation: ta-in 220ms var(--ta-ease); }\n.ta-attention-source { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); padding-left: 4px; }\n.ta-mic { height: 30px; min-width: 30px; flex: none; display: inline-grid; place-items: center; padding: 0 8px; border: 0; border-radius: 15px; background: transparent; color: var(--ta-secondary); transition: background 150ms, color 150ms, min-width 200ms var(--ta-ease); }\n.ta-mic:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-mic.ta-on { min-width: 48px; background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 14px; }\n.ta-wave i { width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; animation: ta-wave 0.9s ease-in-out infinite; }\n.ta-wave i:nth-child(2) { animation-delay: -0.7s; }\n.ta-wave i:nth-child(3) { animation-delay: -0.45s; }\n.ta-wave i:nth-child(4) { animation-delay: -0.2s; }\n/* A conversation by voice (voice-talk.tsx), as WeChat's: the page dims and blurs, a green bubble holds the words as\n they come, \u53D6\u6D88 and \u7F16\u8F91 wait to have the finger slid onto them, and the bottom it starts on says what letting go\n does. It comes up from the bottom, says \"too short\" in a bubble of its own, and fades out. Above the keyboard. */\n.ta-talk { --ta-talk-base: calc(112px + env(safe-area-inset-bottom)); --ta-talk-gap: 172px; position: fixed; inset: 0; z-index: 96; overflow: hidden; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; animation: ta-fade 160ms ease-out; transition: opacity 160ms ease-in; }\n:root[data-keyboard] .ta-talk { --ta-talk-base: 104px; bottom: auto; height: var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))); }\n.ta-talk-leaving { opacity: 0; pointer-events: none; }\n.ta-talk-bubble { position: absolute; left: 50%; bottom: calc(var(--ta-talk-base) + var(--ta-talk-gap)); transform: translateX(-50%); box-sizing: border-box; width: max-content; min-width: 140px; max-width: min(80vw, 440px); min-height: 56px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; border-radius: 14px; background: #95ec69; color: #111; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); transform-origin: 50% 100%; animation: ta-talk-pop 240ms var(--ta-ease); transition: background 160ms, color 160ms; }\n.ta-talk-bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 2px; background: inherit; transform: rotate(45deg); }\n.ta-talk-cancel .ta-talk-bubble { background: #fa5151; color: #fff; }\n.ta-talk-short .ta-talk-bubble { background: #f2f2f2; color: #555; }\n.ta-talk-bubble .ta-wave { height: 24px; gap: 4px; }\n.ta-talk-bubble .ta-wave i { width: 4px; }\n.ta-talk-words { position: relative; z-index: 1; margin: 0; max-height: 30vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: calc(17px * var(--ta-font-scale)); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-talk-zones { position: absolute; left: 50%; bottom: calc(var(--ta-talk-base) + 24px); width: min(100%, 420px); transform: translateX(-50%); box-sizing: border-box; display: flex; justify-content: space-between; padding: 0 12px; animation: ta-talk-rise 260ms var(--ta-ease) both; transition: opacity 140ms; }\n.ta-talk-released .ta-talk-zones, .ta-talk-short .ta-talk-zones, .ta-talk-leaving .ta-talk-zones { opacity: 0; }\n/* What a finger counts as on \u53D6\u6D88 or \u7F16\u8F91: more than the circle, as a thumb lands. */\n.ta-talk-zone { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 16px 16px; }\n.ta-talk-zone-label { color: #fff; font-size: calc(13px * var(--ta-font-scale)); opacity: 0; transform: translateY(4px); transition: opacity 120ms, transform 160ms var(--ta-ease); }\n.ta-talk-zone-circle { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.86); transition: transform 180ms var(--ta-ease), background 160ms, color 160ms; }\n.ta-talk-zone.ta-on .ta-talk-zone-label { opacity: 1; transform: none; }\n.ta-talk-zone.ta-on .ta-talk-zone-circle { transform: scale(1.18); background: #fff; color: #111; }\n/* \u6301\u7EED\u8BF4 and \u901A\u8BDD, between them and higher, on the arc the bottom draws: a finger slid straight up from the bar only reaches them on purpose. \u901A\u8BDD green as a call is. */\n.ta-talk-zone-call, .ta-talk-zone-keep { transform: translateY(-40px); }\n.ta-talk-zones:has(.ta-talk-zone-keep + .ta-talk-zone-call) .ta-talk-zone { padding-left: 6px; padding-right: 6px; }\n.ta-talk-callable { --ta-talk-gap: 216px; }\n.ta-talk-zone-call.ta-on .ta-talk-zone-circle { background: #07c160; color: #fff; }\n.ta-talk-base { position: absolute; left: -12%; right: -12%; bottom: 0; height: var(--ta-talk-base); display: flex; justify-content: center; padding-top: 30px; box-sizing: border-box; border-radius: 50% 50% 0 0 / 60px 60px 0 0; background: #2c2c2e; color: rgba(255, 255, 255, 0.8); animation: ta-talk-base 260ms var(--ta-ease); transition: background 160ms, color 160ms; }\n.ta-talk-send.ta-talk-listening .ta-talk-base { background: linear-gradient(#f2f2f2, #d6d6d6); color: #333; }\n.ta-talk-hint { font-size: calc(15px * var(--ta-font-scale)); letter-spacing: 0.04em; }\n/* Low screens (a phone on its side): the same, closer together. */\n@media (max-height: 520px) {\n .ta-talk { --ta-talk-base: calc(64px + env(safe-area-inset-bottom)); --ta-talk-gap: 112px; }\n .ta-talk-base { padding-top: 16px; border-radius: 50% 50% 0 0 / 36px 36px 0 0; }\n .ta-talk-zones { bottom: calc(var(--ta-talk-base) + 4px); width: min(100%, 520px); }\n .ta-talk-zone { gap: 8px; padding-bottom: 8px; }\n .ta-talk-zone-circle { width: 56px; height: 56px; }\n .ta-talk-zone-call, .ta-talk-zone-keep { transform: translateY(-20px); }\n .ta-talk-callable { --ta-talk-gap: 136px; }\n .ta-talk-words { max-height: 18vh; }\n}\n@keyframes ta-talk-pop { from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.9); } }\n@keyframes ta-talk-rise { from { opacity: 0; transform: translateX(-50%) translateY(24px); } }\n@keyframes ta-talk-base { from { transform: translateY(100%); } }\n@media (prefers-reduced-motion: reduce) {\n .ta-talk, .ta-talk * { animation: none !important; transition-duration: 0ms !important; }\n}\n/* While the keyboard is down, a finger on the field of a box that talks is the box's: a tap types in it, a hold talks. */\n.ta-talkable textarea:not(:focus) { pointer-events: none; }\n/* The field of a box on a touch screen once its microphone is tapped (TalkBar), as WeChat's: \u6309\u4F4F \u8BF4\u8BDD, the height of a line of text. */\n.ta-console-row > .ta-talk-bar { flex: 1; min-width: 0; height: var(--ta-field-height); margin: 0 2px; border: 0; border-radius: 10px; background: var(--ta-hover); color: var(--ta-text); font-size: var(--ta-field-font); font-weight: 600; letter-spacing: 0.06em; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; transition: background 120ms; }\n.ta-console-row > .ta-talk-bar.ta-on { background: var(--ta-hover-strong); }\n/* Reading a reply aloud (SpeakingButton): the wave of the microphone's, which a tap stops. */\n.ta-call { display: flex; flex-direction: column; margin-bottom: 8px; padding: 8px 8px 8px 12px; border-radius: 16px; background: var(--ta-card); border: 1px solid var(--ta-border-muted); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); color: var(--ta-green); animation: ta-in 200ms var(--ta-ease); }\n.ta-call-row { display: flex; align-items: center; gap: 10px; }\n/* The one line of a call is what is said, as a ticker (CaptionTicker), faded where it goes on. */\n.ta-call-ticker { flex: 1; min-width: 0; display: flex; overflow: hidden; white-space: nowrap; color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); line-height: 1.35; }\n.ta-call-ticker > span { flex: none; }\n.ta-ticker-follow { justify-content: flex-end; }\n.ta-ticker-follow.ta-over { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2em); mask-image: linear-gradient(90deg, transparent, #000 2em); }\n.ta-ticker-read.ta-over { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent); }\n.ta-ticker-read.ta-over > span { animation: ta-ticker var(--ta-ticker-time) linear 0.8s both; }\n@keyframes ta-ticker { from { transform: translateX(0); } to { transform: translateX(var(--ta-ticker-over)); } }\n.ta-call-mark { flex: none; width: 32px; height: 32px; padding: 0; border: 0; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: inherit; font: inherit; cursor: pointer; transition: background 120ms; }\n/* The state is in the mark: a ring that breathes while Ta listens, a spinner while it thinks, the wave while it speaks. Tapped with words heard, they go. */\n.ta-call-mark:disabled { cursor: default; opacity: 1; }\n.ta-call-mark { position: relative; }\n@media (hover: hover) { .ta-call-mark:not(:disabled):hover { background: color-mix(in srgb, var(--ta-green) 26%, transparent); } }\n.ta-call-listening .ta-call-mark { animation: ta-call-pulse 1.6s ease-out infinite; }\n@keyframes ta-call-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-green) 40%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }\n.ta-call-paused { color: var(--ta-secondary); background: var(--ta-card); border-color: var(--ta-border-muted); }\n.ta-call-paused .ta-call-mark { background: var(--ta-raised); }\n.ta-call-text { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 32px; line-height: 1.35; }\n.ta-call-heard { color: var(--ta-secondary); font-size: calc(14px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-call-captions-toggle { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ta-secondary); cursor: pointer; transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-call-captions-toggle:hover { background: var(--ta-hover); } }\n.ta-call-captions-toggle[aria-pressed=\"true\"] { color: var(--ta-green); }\n.ta-call-end { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ta-red); color: #fff; cursor: pointer; transition: filter 120ms; }\n.ta-call-end:hover { filter: brightness(1.08); }\n/* A call going on elsewhere (KeptCallBar): a small window at the top, as a messenger's. */\n.ta-kept-call { position: fixed; z-index: 2147482990; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); transform: translate3d(-50%, 0, 0); display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 3px 0 4px; border-radius: 18px; background: var(--ta-side); border: 1px solid var(--ta-border); box-shadow: var(--ta-shadow-pop); animation: ta-toast-in 220ms var(--ta-ease); max-width: calc(100vw - 24px); app-region: no-drag; -webkit-app-region: no-drag; }\n.ta-kept-call-back { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 10px 0 3px; border: 0; border-radius: 15px; background: transparent; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; }\n.ta-kept-call-back:hover { background: var(--ta-hover); }\n.ta-kept-call-icon { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ta-green); color: #fff; }\n.ta-kept-call:not([data-phase='connecting']) .ta-kept-call-icon { animation: ta-kept-call-pulse 1.6s ease-in-out infinite; }\n@keyframes ta-kept-call-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-green) 45%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ta-green) 0%, transparent); } }\n.ta-kept-call-title { min-width: 0; max-width: 180px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-kept-call-phase { flex: none; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-kept-call-end { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ta-red); color: #fff; cursor: pointer; }\n.ta-kept-call-end:hover { filter: brightness(1.08); }\n@media (prefers-reduced-motion: reduce) { .ta-kept-call-icon { animation: none !important; } }\n@media (prefers-reduced-motion: reduce) { .ta-call-listening .ta-call-mark, .ta-ticker-read > span { animation: none; } }\n.ta-speaking { height: 30px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 9px; border: 0; border-radius: 15px; background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; animation: ta-in 180ms var(--ta-ease); transition: background 120ms; }\n.ta-speaking:hover { background: color-mix(in srgb, var(--ta-green) 22%, transparent); }\n.ta-speaking .ta-wave { height: 12px; }\n.ta-send { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ta-brand); color: var(--ta-brand-text); transition: opacity 120ms, transform 120ms; }\n.ta-send:hover:not(:disabled) { opacity: 0.88; }\n.ta-send:active:not(:disabled) { transform: scale(0.94); }\n.ta-send:disabled { opacity: 0.25; cursor: default; }\n.ta-send-stop { background: var(--ta-brand); }\n.ta-avatar { flex: none; display: block; overflow: visible; }\n.ta-dino-shadow { fill: #000; fill-opacity: 0.32; }\n:root[data-theme='light'] .ta-dino-shadow { fill-opacity: 0.13; }\n.ta-dino-face { flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: color-mix(in oklch, var(--ta-dino) 34%, var(--ta-main)); }\n.ta-dino-face > .ta-avatar { width: 100%; height: 100%; }\n/* The double in the navigation: its face; quieter while another place is shown, as the icons beside it are muted. */\n.ta-nav-face { filter: saturate(0.45); opacity: 0.8; transition: filter 150ms, opacity 150ms; }\n.ta-rail-item:hover .ta-nav-face, .ta-rail-item.ta-active .ta-nav-face, .ta-tabbar-item.ta-active .ta-nav-face { filter: none; opacity: 1; }\n.ta-dino-joy, .ta-dino-poked .ta-dino-look { display: none; }\n.ta-dino-poked .ta-dino-joy { display: inline; }\n.ta-dino-lid { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: ta-dino-blink 5s ease-in-out infinite; }\n.ta-dino-badge { animation: ta-dino-pop 0.35s var(--ta-ease); }\n.ta-dino-bubble, .ta-dino-z, .ta-dino-wave { animation: ta-pulse 2.4s ease-in-out infinite; }\n.ta-dino-bubble:nth-of-type(2), .ta-dino-z:nth-of-type(2), .ta-dino-wave:nth-of-type(2) { animation-delay: 0.4s; }\n.ta-dino-bubble:nth-of-type(3) { animation-delay: 0.8s; }\n\n/* Cards of web extensions */\n.ta-card-widget { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-card); }\n.ta-card-widget h2 { margin: 0; }\n.ta-card-widget button { white-space: nowrap; }\n\n/* Notices: cards in the bottom right, the newest nearest the corner; on phones from the top. */\n.ta-toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }\n.ta-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 6px 11px 14px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-toast-in 220ms var(--ta-ease); }\n.ta-toast.ta-leaving { animation: ta-toast-out 160ms ease-in forwards; }\n.ta-toast > .ta-level-icon { margin-top: 2px; }\n.ta-toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 0; }\n.ta-toast-message { color: var(--ta-text); overflow-wrap: anywhere; white-space: pre-wrap; }\n.ta-toast-count { margin-left: 6px; padding: 0 5px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(11px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-toast-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); overflow-wrap: anywhere; white-space: pre-wrap; }\n.ta-toast-art { align-self: flex-start; width: 200px; height: auto; margin-top: 8px; border-radius: 10px; }\n.ta-toast-action { align-self: flex-start; margin-top: 6px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--ta-border-field); background: transparent; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; transition: background 120ms; }\n.ta-toast-action:hover { background: var(--ta-hover); }\n.ta-toast .ta-toast-close { width: 24px; height: 24px; margin-top: -1px; color: var(--ta-muted); }\n.ta-toast .ta-toast-close svg { width: 14px; height: 14px; }\n.ta-toast-session { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 4px; padding: 10px 6px 10px 10px; }\n.ta-toast-open { grid-column: 1; grid-row: 1; display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-toast-face { flex: none; display: grid; place-items: center; width: 38px; height: 38px; }\n.ta-toast-head { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-toast-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ta-text); }\n.ta-toast-session .ta-toast-message { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; color: var(--ta-secondary); }\n.ta-toast-session .ta-toast-close { grid-column: 2; grid-row: 1; }\n.ta-toast-actions { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 48px; }\n.ta-toast-session .ta-toast-action { margin-top: 0; }\n.ta-toast-text > .ta-toast-actions { padding-left: 0; margin-top: 6px; }\n.ta-toast-text > .ta-toast-actions .ta-toast-action { margin-top: 0; }\n.ta-toast-ta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 2px 10px; padding: 10px 6px 10px 10px; }\n.ta-toast-ta .ta-toast-face { width: 32px; height: 32px; }\n.ta-toast-ta .ta-toast-text { gap: 3px; padding-top: 1px; }\n.ta-toast-ta .ta-toast-title { font-weight: 600; color: var(--ta-text); }\n.ta-toast-change { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ta-secondary); }\n.ta-toast-change-label { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 2px; }\n.ta-toast-change-before { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-toast-change-arrow { flex: none; color: var(--ta-muted); }\n.ta-toast-change-after { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ta-text); }\n.ta-toast-change-name { color: var(--ta-secondary); font-weight: 400; }\n.ta-toast-undo { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-top: 3px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-accent); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 120ms; }\n@media (hover: hover) { .ta-toast-undo:hover { background: var(--ta-hover); } }\n.ta-toast-ta .ta-toast-close { margin-top: 4px; }\n@keyframes ta-toast-in { from { transform: translateY(8px) scale(0.98); opacity: 0; } }\n@keyframes ta-toast-out { to { transform: translateX(12px); opacity: 0; } }\n\n/* The connection to ta serve, over the top of the main area while it is down */\n.ta-connection { position: absolute; top: calc(66px + env(safe-area-inset-top) + var(--ta-titlebar)); left: 50%; transform: translateX(-50%); z-index: 15; height: 34px; overflow: hidden; border-radius: 17px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-body); white-space: nowrap; animation: ta-drop 200ms var(--ta-ease); transition: width 240ms var(--ta-ease); --ta-level: var(--ta-yellow); }\n.ta-connection-body { display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(720px, calc(100vw - 24px - var(--ta-left, 0px))); height: 100%; padding: 0 6px 0 12px; animation: ta-fade 160ms ease-out; }\n.ta-connection-back { --ta-level: var(--ta-green); }\n.ta-connection-back .ta-connection-body { padding-right: 12px; }\n.ta-connection-outdated { --ta-level: var(--ta-blue); }\n.ta-connection-leaving { animation: ta-connection-out 200ms var(--ta-ease) forwards; pointer-events: none; }\n.ta-connection-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }\n.ta-connection-when { color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-connection-retry { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; border: 0; background: var(--ta-chip); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; transition: background 120ms; }\n.ta-connection-retry:hover { background: var(--ta-hover-strong); }\n.ta-connection:not(.ta-connection-back):not(.ta-connection-notdone):not(.ta-connection-outdated) .ta-level-icon { animation: ta-pulse 2s ease-in-out infinite; }\n.ta-connection-notdone .ta-connection-body { padding-right: 12px; }\n@keyframes ta-connection-out { to { transform: translate(-50%, -6px); opacity: 0; } }\n/* On a phone: a row in the page, whose height opens and closes. */\n.ta-connection-banner { display: grid; grid-template-rows: 0fr; flex: none; transition: grid-template-rows 240ms var(--ta-ease); --ta-level: var(--ta-yellow); }\n.ta-connection-banner.ta-open { grid-template-rows: 1fr; }\n.ta-connection-banner.ta-connection-back { --ta-level: var(--ta-green); }\n.ta-connection-banner.ta-connection-outdated { --ta-level: var(--ta-blue); }\n.ta-connection-banner-inner { min-height: 0; overflow: hidden; }\n/* Over the message box its row brings its own gap (margin under it), none while closed: not that of the column too. */\n.ta-bottom > .ta-connection-banner, .ta-composer-area .ta-chat-col > .ta-connection-banner { margin-bottom: -8px; }\n.ta-connection-banner-row { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--ta-level) 9%, var(--ta-card)); color: var(--ta-body); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.45; text-align: left; transition: background 200ms; -webkit-tap-highlight-color: transparent; }\n.ta-connection-banner-row:active:not(:disabled) { background: color-mix(in srgb, var(--ta-level) 16%, var(--ta-card)); }\n.ta-connection-banner-row:disabled { opacity: 1; cursor: default; }\n.ta-connection-banner-row > .ta-level-icon { flex: none; }\n.ta-connection-banner-text { flex: 1; min-width: 0; }\n.ta-connection-banner-action { display: inline-flex; flex: none; align-items: center; gap: 5px; color: var(--ta-text); font-weight: 500; white-space: nowrap; }\n.ta-connection-retry:disabled { opacity: 1; }\n@keyframes ta-drop { from { transform: translate(-50%, -8px); opacity: 0; } }\n\n/* A question before going ahead */\n.ta-modal.ta-confirm { width: min(400px, 100%); gap: 6px; padding: 18px 18px 16px; }\n.ta-confirm-title { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-confirm-message { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; }\n.ta-confirm .ta-dialog-actions { margin-top: 12px; }\n.ta-modal.ta-ask { width: min(460px, 100%); gap: 12px; }\n.ta-ask .ta-dialog-actions { margin-top: 2px; }\ntextarea.ta-ask-text { height: auto; min-height: 180px; max-height: 50vh; padding: 8px 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; resize: vertical; }\n.ta-button-danger { background: var(--ta-red); border-color: var(--ta-red); color: #fff; }\n.ta-button-danger:hover:not(:disabled) { background: var(--ta-red); opacity: 0.9; }\n\n/* Built-in pages */\n.ta-assistant { flex: 1; min-height: 0; display: flex; }\n.ta-assistant-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }\n.ta-assistant-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-assistant-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }\n.ta-head-spacer { width: 32px; flex: none; }\n.ta-assistant-tasks { min-height: 100%; box-sizing: border-box; padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 10px; }\n.ta-assistant-tasks > .ta-select-bar { margin: auto -10px -12px; }\n.ta-assistant-task { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-task-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px 6px 4px; border-bottom: 1px solid var(--ta-border-muted); flex: none; }\n.ta-task-head .ta-task-status { width: 26px; height: 26px; }\n.ta-task-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }\n.ta-task-head-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-head-meta { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }\n.ta-task-head-meta .ta-task-time { font-size: inherit; color: inherit; }\n.ta-task-head-take { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; }\n.ta-assistant-task .ta-session { min-height: 0; flex: 1; }\n.ta-assistant-task .ta-session-header { display: none; }\n.ta-assistant-task > .ta-scroll { flex: 1; min-height: 0; overflow-y: auto; }\n.ta-task-result { max-width: 760px; margin: 0 auto; padding: 18px 20px 28px; line-height: 1.7; }\n.ta-task-result-note { margin: 0 0 8px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n\n/* Overlays */\n.ta-overlay-close { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: default; }\n.ta-scrim { display: none; }\n.ta-hud { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-setting-section { display: flex; flex-direction: column; gap: 8px; }\n.ta-setting-section h2 { margin: 0; padding: 0 4px; }\n.ta-setting-card { border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-card); overflow: hidden; }\n.ta-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; min-height: 48px; }\n.ta-setting-row + .ta-setting-row { border-top: 1px solid var(--ta-border-muted); }\n.ta-setting-row.ta-stacked { flex-direction: column; align-items: stretch; gap: 8px; }\n.ta-setting-row.ta-stacked .ta-setting-control { width: 100%; }\n.ta-setting-row.ta-stacked .ta-segmented { flex: 1; }\n.ta-setting-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-setting-icon { flex: none; width: 32px; height: 32px; margin-right: -4px; display: grid; place-items: center; border-radius: 8px; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-setting-label { font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; overflow-wrap: anywhere; }\n.ta-setting-description { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow-wrap: anywhere; }\n.ta-trusted-add { display: flex; gap: 8px; width: 100%; }\n.ta-trusted-add .ta-input { height: 32px; flex: 1; min-width: 0; }\n.ta-store-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; width: 100%; padding: 12px; border-radius: 10px; background: var(--ta-raised); border: 1px solid var(--ta-border-muted); }\n.ta-store-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-store-field .ta-input { height: 32px; width: 100%; }\n.ta-store-field-label { display: inline-flex; align-items: baseline; gap: 6px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }\n.ta-store-field-optional { font-weight: 400; color: var(--ta-muted); }\n.ta-store-form-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-store-form-note svg { flex: none; margin-top: 2px; color: var(--ta-green); }\n.ta-store-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }\n@media (max-width: 640px) { .ta-store-form { grid-template-columns: minmax(0, 1fr); } .ta-store-form-actions .ta-button { flex: 1; } }\n.ta-setting-control { display: flex; align-items: center; justify-content: flex-end; flex: none; }\n.ta-segmented { margin: 0; min-width: 0; border: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ta-raised); }\n.ta-segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; transition: background 120ms, color 120ms; }\n.ta-segmented button:hover { color: var(--ta-text); }\n.ta-segmented .ta-on { background: var(--ta-segment); color: var(--ta-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--ta-border); }\n.ta-switch { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; flex: none; border-radius: 10px; background: var(--ta-hover-strong); position: relative; transition: background 160ms; margin: 0; cursor: pointer; }\n.ta-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 180ms var(--ta-ease); }\n.ta-switch:checked { background: var(--ta-green); }\n.ta-switch:checked::after { transform: translateX(16px); }\n\n/* Sign in */\n.ta-signin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--ta-main); }\n/*\n * The installed app with its title bar hidden (window controls overlay): the page draws up to the top of\n * the window, and the bar is the colour of the side columns, as theme-color is (useTitlebarColor). Each\n * column starts lower by the height of the bar, which is left empty for the window's buttons, and is\n * where the window is dragged.\n */\n.ta-titlebar { display: none; position: fixed; z-index: 25; left: env(titlebar-area-x, 0); top: env(titlebar-area-y, 0); width: env(titlebar-area-width, 100%); height: var(--ta-titlebar); app-region: drag; -webkit-app-region: drag; }\n@media (display-mode: window-controls-overlay) {\n :root { --ta-titlebar: env(titlebar-area-height, 0px); }\n .ta-titlebar { display: block; }\n /* Above the conversation the bar keeps the colour of the side columns, under the browser's buttons too. */\n .ta-main { background: linear-gradient(var(--ta-side) var(--ta-titlebar), var(--ta-main) 0); }\n}\n/* Under a title bar (an installed web app, the desktop app) the conversation starts with rounded corners, the bar's colour in them. */\n.ta-main::before, .ta-main::after { content: ''; position: absolute; z-index: 1; top: var(--ta-titlebar); width: min(10px, var(--ta-titlebar)); height: min(10px, var(--ta-titlebar)); pointer-events: none; }\n/* Each reaches over the border beside it too (the sidebar's, the workbench's), which so starts below the corner, where the line of its sash does. */\n.ta-main::before { left: -1px; width: calc(min(10px, var(--ta-titlebar)) + 1px); background: radial-gradient(circle at 100% 100%, transparent 9.5px, var(--ta-side) 10px); }\n.ta-main::after { right: -1px; width: calc(min(10px, var(--ta-titlebar)) + 1px); background: radial-gradient(circle at 0 100%, transparent 9.5px, var(--ta-side) 10px); }\n.ta-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }\n.ta-card h1 { margin: 4px 0 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 650; }\n.ta-card p { margin: 0 0 8px; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-connect-pic { max-width: 300px; margin: -2px 0 6px; border-radius: 0; }\n.ta-strip-pic { border-radius: 0; }\n.ta-empty-picture:has(> .ta-strip-pic) { width: min(260px, 90%); }\n\n";
2
+ export declare const SHELL_STYLE = "\n/* Shell: the navigation (rail and chats), the main column, the panel */\n.ta-app { display: flex; height: 100vh; height: var(--ta-viewport, 100dvh); background: var(--ta-main); overflow: hidden; }\n.ta-nav { display: flex; flex: none; height: 100%; z-index: 20; }\n.ta-rail { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar) - var(--ta-lift)) 0 calc(10px + env(safe-area-inset-bottom)); background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.ta-nav:has(> .ta-sidebar) > .ta-rail { border-right-color: transparent; }\n.ta-rail-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; margin-bottom: 6px; }\n.ta-rail-items { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow-y: auto; scrollbar-width: none; padding: 0 8px; }\n.ta-rail-item { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ta-muted); transition: background 150ms, color 150ms; }\n.ta-rail-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-rail-item.ta-active { background: var(--ta-selected); color: var(--ta-text); }\n.ta-rail-divider { width: 24px; height: 0; flex: none; margin: 4px 0; border: 0; border-top: 1px solid var(--ta-border); }\n.ta-rail-status { display: grid; place-items: center; width: 40px; height: 22px; }\n.ta-ok .ta-dot { color: var(--ta-green); }\n.ta-warn .ta-dot { color: var(--ta-yellow); }\n.ta-chats, .ta-side-view { flex: 1; min-width: 0; 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-chats-head { display: flex; align-items: center; gap: 2px; height: 40px; flex: none; padding: 0 0 0 8px; margin-bottom: 6px; }\n.ta-chats-title { flex: 1; font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-panel-cards { display: flex; flex-direction: column; gap: 12px; min-height: 100%; box-sizing: border-box; padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }\n.ta-side-section { display: flex; align-items: center; gap: 6px; padding: 6px 8px 2px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-side-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }\n.ta-side-scroll:has(> .ta-empty) { display: flex; flex-direction: column; }\n.ta-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-side-row { position: relative; display: flex; align-items: center; border-radius: 10px; }\n.ta-side-row:hover, .ta-side-row.ta-selected { background: var(--ta-hover); }\n.ta-side-row.ta-selected { background: var(--ta-selected); }\n.ta-side-item { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; transition: background 120ms; }\n.ta-side-list > li > .ta-side-item:hover { background: var(--ta-hover); }\n.ta-side-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.ta-side-item-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-side-item-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-side-item-time { align-self: flex-start; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }\n.ta-close { position: absolute; right: 4px; opacity: 0; width: 26px; height: 26px; }\n.ta-side-row:hover .ta-close, .ta-close:focus-visible { opacity: 1; }\n.ta-task-status { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ta-raised); color: var(--ta-secondary); }\n.ta-task-status-done { color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 14%, transparent); }\n.ta-task-status-failed { color: var(--ta-red); background: color-mix(in srgb, var(--ta-red) 14%, transparent); }\n.ta-task-status-stopped { color: var(--ta-muted); }\n.ta-task-status .ta-spinner { width: 12px; height: 12px; }\n.ta-main { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-top: var(--ta-titlebar); background: var(--ta-main); }\n.ta-main-head { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 12px; padding-top: env(safe-area-inset-top); flex: none; }\n.ta-main-title { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.3; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n/* A title between the buttons of the head is centred on it, whatever buttons its sides have: a back button on one,\n the workbench's on the other, both or neither. */\n.ta-main-head:has(> .ta-main-title) { display: grid; grid-template-columns: minmax(32px, 1fr) minmax(0, auto) minmax(32px, 1fr); }\n.ta-main-head:has(> .ta-main-title) > * { grid-row: 1; grid-column: 1; justify-self: start; }\n.ta-main-head:has(> .ta-main-title) > .ta-main-title { grid-column: 2; justify-self: stretch; }\n.ta-main-head:has(> .ta-main-title) > .ta-main-title ~ * { grid-column: 3; justify-self: end; }\n.ta-main-sub { font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 400; color: var(--ta-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n\n/* The double's chat */\n/* As .ta-scroll: nothing in a conversation is wider than it, it never scrolls sideways. */\n.ta-chat-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }\n.ta-chat-col { width: 100%; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 16px; }\n.ta-chat-scroll { overflow-anchor: none; }\n.ta-chat-scroll .ta-chat-col { position: relative; padding-top: 12px; padding-bottom: 24px; min-height: 100%; }\n.ta-hero { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 0; animation: ta-in 320ms var(--ta-ease); }\n.ta-hero-center { flex: 1; justify-content: center; }\n.ta-hero h1 { margin: 6px 0 0; font-size: calc(22px * var(--ta-font-scale)); font-weight: 650; letter-spacing: -0.01em; }\n/* Chinese breaks between its words and after its commas, not inside a word, so that balance does not cut \u547D\u4EE4 in two. */\n.ta-hero p { margin: 0; max-width: 440px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; color: var(--ta-secondary); font-size: calc(14px * var(--ta-font-scale)); }\n.ta-hero-steps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-hero-step { display: inline-flex; align-items: center; gap: 7px; }\n.ta-hero-step-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.ta-hero-arrow { color: var(--ta-muted); }\n.ta-hero .ta-pic-cards { max-width: 524px; margin-top: 18px; }\n/* Pictures (components/picture.tsx, ui.Picture): a few shapes in the tones of the theme; choices as cards of them */\n.ta-pic-cards { display: grid; grid-template-columns: repeat(var(--ta-pic-columns, 3), minmax(0, 1fr)); gap: 10px; width: 100%; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) { .ta-pic-cards { grid-template-columns: repeat(var(--ta-pic-columns-compact, 3), minmax(0, 1fr)); gap: 8px; } }\n.ta-pic-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 7px 7px 10px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); color: var(--ta-body); font: inherit; font-size: calc(13px * var(--ta-font-scale)); text-align: center; cursor: pointer; transition: border-color 140ms, background 140ms, box-shadow 140ms, transform 140ms var(--ta-ease); animation: ta-in 320ms var(--ta-ease) both; }\n.ta-pic-card:nth-child(2) { animation-delay: 50ms; }\n.ta-pic-card:nth-child(3) { animation-delay: 100ms; }\n.ta-pic-card:nth-child(n+4) { animation-delay: 150ms; }\n.ta-pic-card:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ta-green) 55%, var(--ta-border)); background: var(--ta-hover); color: var(--ta-text); }\n.ta-pic-card:hover:not(:disabled) .ta-pic-accent { fill: color-mix(in srgb, var(--ta-green) 26%, transparent); }\n.ta-pic-card:active:not(:disabled) { transform: scale(.98); }\n.ta-pic-card:disabled { opacity: .55; cursor: default; }\n.ta-pic-card-label { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-wrap: balance; }\n.ta-pic-card-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pic-card-hinted { gap: 6px; text-align: left; }\n.ta-pic-card-hinted .ta-pic-card-label { padding: 0 4px; color: var(--ta-text); font-weight: 600; }\n.ta-pic-card-hint { margin-top: -3px; padding: 0 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-pic { display: block; width: 100%; height: auto; border-radius: 8px; }\n.ta-pic-frame { fill: var(--ta-raised); stroke: var(--ta-border-muted); stroke-width: 1; }\n.ta-pic-pane { fill: var(--ta-hover); }\n.ta-pic-line, .ta-pic-dot { fill: var(--ta-hover-strong); }\n.ta-pic-box { fill: none; stroke: var(--ta-border); stroke-width: 1; }\n.ta-pic-accent { fill: color-mix(in srgb, var(--ta-green) 16%, transparent); stroke: color-mix(in srgb, var(--ta-green) 70%, transparent); stroke-width: 1; transition: fill 140ms; }\n.ta-pic-mark { fill: var(--ta-green); }\n.ta-pic-soft { opacity: .45; }\n.ta-pic-plus { fill: color-mix(in srgb, var(--ta-green) 55%, transparent); }\n.ta-pic-bad { fill: color-mix(in srgb, var(--ta-red) 85%, transparent); }\n.ta-pic-wait { fill: var(--ta-yellow); }\n.ta-pic-ring { fill: color-mix(in srgb, var(--ta-raised) 60%, transparent); stroke: var(--ta-green); stroke-width: 3; }\n.ta-pic-stroke { fill: none; stroke: var(--ta-green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }\n.ta-pic-thin { stroke: var(--ta-border); stroke-width: 2; }\n.ta-pic-path { fill: none; stroke: var(--ta-border); stroke-width: 1.5; stroke-dasharray: 3 4; }\n.ta-pic-hand, .ta-pic-tick, .ta-pic-cross { fill: none; stroke: var(--ta-raised); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }\n.ta-pic-tick { stroke-width: 1.6; }\n.ta-pic-tick-big { stroke: var(--ta-green); stroke-width: 3; }\n.ta-pic-text { fill: var(--ta-green); font-family: var(--ta-mono); font-size: 8px; font-weight: 600; }\n.ta-pic-fine { stroke-width: 2; }\n.ta-pic-shackle { fill: none; stroke: var(--ta-green); stroke-width: 2.4; stroke-linecap: round; }\n/* Something on its way along a ta-pic-path, and a line that sweeps a screen being scanned */\n@keyframes ta-pic-go { 0% { transform: translateX(-14px); opacity: 0; } 25%, 75% { opacity: 1; } 100% { transform: translateX(14px); opacity: 0; } }\n@keyframes ta-pic-sweep { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }\n.ta-pic-go { animation: ta-pic-go 1.8s ease-in-out infinite; transform-box: fill-box; }\n.ta-pic-go-back { animation-delay: .9s; }\n.ta-pic-sweep { animation: ta-pic-sweep 2.4s ease-in-out infinite; transform-box: fill-box; }\n/* Where to tap, as a ring that spreads from it */\n@keyframes ta-pic-pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }\n.ta-pic-pulse { animation: ta-pic-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }\n.ta-msg-user { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }\n.ta-msg-bubble { max-width: 78%; padding: 9px 14px; border-radius: 16px 16px 5px 16px; background: var(--ta-user); color: var(--ta-text); white-space: pre-wrap; word-break: break-word; }\n.ta-msg-ta { color: var(--ta-body); line-height: 1.75; display: flex; flex-direction: column; gap: 6px; }\n.ta-row { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 8px; margin: 0 -8px; border-radius: 8px; border: 0; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-row-title { color: var(--ta-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-row-meta, .ta-row-label { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); flex: none; }\n.ta-row-chevron { margin-left: auto; color: var(--ta-muted); }\n.ta-row-quiet { color: var(--ta-muted); }\n.ta-row-quiet .ta-row-title { font-weight: 400; color: var(--ta-secondary); }\n.ta-composer-area { flex: none; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }\n.ta-composer-area .ta-chat-col { gap: 8px; }\n.ta-attention { display: flex; flex-direction: column; gap: 4px; animation: ta-in 220ms var(--ta-ease); }\n.ta-attention-source { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); padding-left: 4px; }\n.ta-mic { height: 30px; min-width: 30px; flex: none; display: inline-grid; place-items: center; padding: 0 8px; border: 0; border-radius: 15px; background: transparent; color: var(--ta-secondary); transition: background 150ms, color 150ms, min-width 200ms var(--ta-ease); }\n.ta-mic:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-mic.ta-on { min-width: 48px; background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 14px; }\n.ta-wave i { width: 2.5px; height: 100%; border-radius: 2px; background: currentColor; animation: ta-wave 0.9s ease-in-out infinite; }\n.ta-wave i:nth-child(2) { animation-delay: -0.7s; }\n.ta-wave i:nth-child(3) { animation-delay: -0.45s; }\n.ta-wave i:nth-child(4) { animation-delay: -0.2s; }\n/* A conversation by voice (voice-talk.tsx), as WeChat's: the page dims and blurs, a green bubble holds the words as\n they come, \u53D6\u6D88 and \u7F16\u8F91 wait to have the finger slid onto them, and the bottom it starts on says what letting go\n does. It comes up from the bottom, says \"too short\" in a bubble of its own, and fades out. Above the keyboard. */\n.ta-talk { --ta-talk-base: calc(112px + env(safe-area-inset-bottom)); --ta-talk-gap: 172px; position: fixed; inset: 0; z-index: 96; overflow: hidden; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; animation: ta-fade 160ms ease-out; transition: opacity 160ms ease-in; }\n:root[data-keyboard] .ta-talk { --ta-talk-base: 104px; bottom: auto; height: var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))); }\n.ta-talk-leaving { opacity: 0; pointer-events: none; }\n.ta-talk-bubble { position: absolute; left: 50%; bottom: calc(var(--ta-talk-base) + var(--ta-talk-gap)); transform: translateX(-50%); box-sizing: border-box; width: max-content; min-width: 140px; max-width: min(80vw, 440px); min-height: 56px; display: flex; align-items: center; justify-content: center; padding: 14px 18px; border-radius: 14px; background: #95ec69; color: #111; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); transform-origin: 50% 100%; animation: ta-talk-pop 240ms var(--ta-ease); transition: background 160ms, color 160ms; }\n.ta-talk-bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 2px; background: inherit; transform: rotate(45deg); }\n.ta-talk-cancel .ta-talk-bubble { background: #fa5151; color: #fff; }\n.ta-talk-short .ta-talk-bubble { background: #f2f2f2; color: #555; }\n.ta-talk-bubble .ta-wave { height: 24px; gap: 4px; }\n.ta-talk-bubble .ta-wave i { width: 4px; }\n.ta-talk-words { position: relative; z-index: 1; margin: 0; max-height: 30vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: calc(17px * var(--ta-font-scale)); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-talk-zones { position: absolute; left: 50%; bottom: calc(var(--ta-talk-base) + 24px); width: min(100%, 420px); transform: translateX(-50%); box-sizing: border-box; display: flex; justify-content: space-between; padding: 0 12px; animation: ta-talk-rise 260ms var(--ta-ease) both; transition: opacity 140ms; }\n.ta-talk-released .ta-talk-zones, .ta-talk-short .ta-talk-zones, .ta-talk-leaving .ta-talk-zones { opacity: 0; }\n/* What a finger counts as on \u53D6\u6D88 or \u7F16\u8F91: more than the circle, as a thumb lands. */\n.ta-talk-zone { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 16px 16px; }\n.ta-talk-zone-label { color: #fff; font-size: calc(13px * var(--ta-font-scale)); opacity: 0; transform: translateY(4px); transition: opacity 120ms, transform 160ms var(--ta-ease); }\n.ta-talk-zone-circle { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.86); transition: transform 180ms var(--ta-ease), background 160ms, color 160ms; }\n.ta-talk-zone.ta-on .ta-talk-zone-label { opacity: 1; transform: none; }\n.ta-talk-zone.ta-on .ta-talk-zone-circle { transform: scale(1.18); background: #fff; color: #111; }\n/* \u6301\u7EED\u8BF4 and \u901A\u8BDD, between them and higher, on the arc the bottom draws: a finger slid straight up from the bar only reaches them on purpose. \u901A\u8BDD green as a call is. */\n.ta-talk-zone-call, .ta-talk-zone-keep { transform: translateY(-40px); }\n.ta-talk-zones:has(.ta-talk-zone-keep + .ta-talk-zone-call) .ta-talk-zone { padding-left: 6px; padding-right: 6px; }\n.ta-talk-callable { --ta-talk-gap: 216px; }\n.ta-talk-zone-call.ta-on .ta-talk-zone-circle { background: #07c160; color: #fff; }\n.ta-talk-base { position: absolute; left: -12%; right: -12%; bottom: 0; height: var(--ta-talk-base); display: flex; justify-content: center; padding-top: 30px; box-sizing: border-box; border-radius: 50% 50% 0 0 / 60px 60px 0 0; background: #2c2c2e; color: rgba(255, 255, 255, 0.8); animation: ta-talk-base 260ms var(--ta-ease); transition: background 160ms, color 160ms; }\n.ta-talk-send.ta-talk-listening .ta-talk-base { background: linear-gradient(#f2f2f2, #d6d6d6); color: #333; }\n.ta-talk-hint { font-size: calc(15px * var(--ta-font-scale)); letter-spacing: 0.04em; }\n/* Low screens (a phone on its side): the same, closer together. */\n@media (max-height: 520px) {\n .ta-talk { --ta-talk-base: calc(64px + env(safe-area-inset-bottom)); --ta-talk-gap: 112px; }\n .ta-talk-base { padding-top: 16px; border-radius: 50% 50% 0 0 / 36px 36px 0 0; }\n .ta-talk-zones { bottom: calc(var(--ta-talk-base) + 4px); width: min(100%, 520px); }\n .ta-talk-zone { gap: 8px; padding-bottom: 8px; }\n .ta-talk-zone-circle { width: 56px; height: 56px; }\n .ta-talk-zone-call, .ta-talk-zone-keep { transform: translateY(-20px); }\n .ta-talk-callable { --ta-talk-gap: 136px; }\n .ta-talk-words { max-height: 18vh; }\n}\n@keyframes ta-talk-pop { from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.9); } }\n@keyframes ta-talk-rise { from { opacity: 0; transform: translateX(-50%) translateY(24px); } }\n@keyframes ta-talk-base { from { transform: translateY(100%); } }\n@media (prefers-reduced-motion: reduce) {\n .ta-talk, .ta-talk * { animation: none !important; transition-duration: 0ms !important; }\n}\n/* While the keyboard is down, a finger on the field of a box that talks is the box's: a tap types in it, a hold talks. */\n.ta-talkable textarea:not(:focus) { pointer-events: none; }\n/* The field of a box on a touch screen once its microphone is tapped (TalkBar), as WeChat's: \u6309\u4F4F \u8BF4\u8BDD, the height of a line of text. */\n.ta-console-row > .ta-talk-bar { flex: 1; min-width: 0; height: var(--ta-field-height); margin: 0 2px; border: 0; border-radius: 10px; background: var(--ta-hover); color: var(--ta-text); font-size: var(--ta-field-font); font-weight: 600; letter-spacing: 0.06em; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; transition: background 120ms; }\n.ta-console-row > .ta-talk-bar.ta-on { background: var(--ta-hover-strong); }\n/* Reading a reply aloud (SpeakingButton): the wave of the microphone's, which a tap stops. */\n.ta-call { display: flex; flex-direction: column; margin-bottom: 8px; padding: 8px 8px 8px 12px; border-radius: 16px; background: var(--ta-card); border: 1px solid var(--ta-border-muted); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); color: var(--ta-green); animation: ta-in 200ms var(--ta-ease); }\n.ta-call-row { display: flex; align-items: center; gap: 10px; }\n/* The one line of a call is what is said, as a ticker (CaptionTicker), faded where it goes on. */\n.ta-call-ticker { flex: 1; min-width: 0; display: flex; overflow: hidden; white-space: nowrap; color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); line-height: 1.35; }\n.ta-call-ticker > span { flex: none; }\n.ta-ticker-follow { justify-content: flex-end; }\n.ta-ticker-follow.ta-over { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2em); mask-image: linear-gradient(90deg, transparent, #000 2em); }\n.ta-ticker-read.ta-over { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent); }\n.ta-ticker-read.ta-over > span { animation: ta-ticker var(--ta-ticker-time) linear 0.8s both; }\n@keyframes ta-ticker { from { transform: translateX(0); } to { transform: translateX(var(--ta-ticker-over)); } }\n.ta-call-mark { flex: none; width: 32px; height: 32px; padding: 0; border: 0; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: inherit; font: inherit; cursor: pointer; transition: background 120ms; }\n/* The state is in the mark: a ring that breathes while Ta listens, a spinner while it thinks, the wave while it speaks. Tapped with words heard, they go. */\n.ta-call-mark:disabled { cursor: default; opacity: 1; }\n.ta-call-mark { position: relative; }\n@media (hover: hover) { .ta-call-mark:not(:disabled):hover { background: color-mix(in srgb, var(--ta-green) 26%, transparent); } }\n.ta-call-listening .ta-call-mark { animation: ta-call-pulse 1.6s ease-out infinite; }\n@keyframes ta-call-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-green) 40%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }\n.ta-call-paused { color: var(--ta-secondary); background: var(--ta-card); border-color: var(--ta-border-muted); }\n.ta-call-paused .ta-call-mark { background: var(--ta-raised); }\n.ta-call-text { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 32px; line-height: 1.35; }\n.ta-call-heard { color: var(--ta-secondary); font-size: calc(14px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-call-captions-toggle { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ta-secondary); cursor: pointer; transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-call-captions-toggle:hover { background: var(--ta-hover); } }\n.ta-call-captions-toggle[aria-pressed=\"true\"] { color: var(--ta-green); }\n.ta-call-end { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ta-red); color: #fff; cursor: pointer; transition: filter 120ms; }\n.ta-call-end:hover { filter: brightness(1.08); }\n/* A call going on elsewhere (KeptCallBar): a small window at the top, as a messenger's. */\n.ta-kept-call { position: fixed; z-index: 2147482990; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); transform: translate3d(-50%, 0, 0); display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 3px 0 4px; border-radius: 18px; background: var(--ta-side); border: 1px solid var(--ta-border); box-shadow: var(--ta-shadow-pop); animation: ta-toast-in 220ms var(--ta-ease); max-width: calc(100vw - 24px); app-region: no-drag; -webkit-app-region: no-drag; }\n.ta-kept-call-back { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 10px 0 3px; border: 0; border-radius: 15px; background: transparent; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; }\n.ta-kept-call-back:hover { background: var(--ta-hover); }\n.ta-kept-call-icon { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ta-green); color: #fff; }\n.ta-kept-call:not([data-phase='connecting']) .ta-kept-call-icon { animation: ta-kept-call-pulse 1.6s ease-in-out infinite; }\n@keyframes ta-kept-call-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-green) 45%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ta-green) 0%, transparent); } }\n.ta-kept-call-title { min-width: 0; max-width: 180px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-kept-call-phase { flex: none; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-kept-call-end { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ta-red); color: #fff; cursor: pointer; }\n.ta-kept-call-end:hover { filter: brightness(1.08); }\n@media (prefers-reduced-motion: reduce) { .ta-kept-call-icon { animation: none !important; } }\n@media (prefers-reduced-motion: reduce) { .ta-call-listening .ta-call-mark, .ta-ticker-read > span { animation: none; } }\n.ta-speaking { height: 30px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 9px; border: 0; border-radius: 15px; background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; animation: ta-in 180ms var(--ta-ease); transition: background 120ms; }\n.ta-speaking:hover { background: color-mix(in srgb, var(--ta-green) 22%, transparent); }\n.ta-speaking .ta-wave { height: 12px; }\n.ta-send { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ta-brand); color: var(--ta-brand-text); transition: opacity 120ms, transform 120ms; }\n.ta-send:hover:not(:disabled) { opacity: 0.88; }\n.ta-send:active:not(:disabled) { transform: scale(0.94); }\n.ta-send:disabled { opacity: 0.25; cursor: default; }\n.ta-send-stop { background: var(--ta-brand); }\n.ta-avatar { flex: none; display: block; overflow: visible; }\n.ta-dino-shadow { fill: #000; fill-opacity: 0.32; }\n:root[data-theme='light'] .ta-dino-shadow { fill-opacity: 0.13; }\n.ta-dino-face { flex: none; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: color-mix(in oklch, var(--ta-dino) 34%, var(--ta-main)); }\n.ta-dino-face > .ta-avatar { width: 100%; height: 100%; }\n/* The double in the navigation: its face; quieter while another place is shown, as the icons beside it are muted. */\n.ta-nav-face { filter: saturate(0.45); opacity: 0.8; transition: filter 150ms, opacity 150ms; }\n.ta-rail-item:hover .ta-nav-face, .ta-rail-item.ta-active .ta-nav-face, .ta-tabbar-item.ta-active .ta-nav-face { filter: none; opacity: 1; }\n.ta-dino-joy, .ta-dino-poked .ta-dino-look { display: none; }\n.ta-dino-poked .ta-dino-joy { display: inline; }\n.ta-dino-lid { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: ta-dino-blink 5s ease-in-out infinite; }\n.ta-dino-badge { animation: ta-dino-pop 0.35s var(--ta-ease); }\n.ta-dino-bubble, .ta-dino-z, .ta-dino-wave { animation: ta-pulse 2.4s ease-in-out infinite; }\n.ta-dino-bubble:nth-of-type(2), .ta-dino-z:nth-of-type(2), .ta-dino-wave:nth-of-type(2) { animation-delay: 0.4s; }\n.ta-dino-bubble:nth-of-type(3) { animation-delay: 0.8s; }\n\n/* Cards of web extensions */\n.ta-card-widget { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-card); }\n.ta-card-widget h2 { margin: 0; }\n.ta-card-widget button { white-space: nowrap; }\n\n/* Notices: cards in the bottom right, the newest nearest the corner; on phones from the top. */\n.ta-toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }\n.ta-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 6px 11px 14px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-toast-in 220ms var(--ta-ease); }\n.ta-toast.ta-leaving { animation: ta-toast-out 160ms ease-in forwards; }\n.ta-toast > .ta-level-icon { margin-top: 2px; }\n.ta-toast-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 0; }\n.ta-toast-message { color: var(--ta-text); overflow-wrap: anywhere; white-space: pre-wrap; }\n.ta-toast-count { margin-left: 6px; padding: 0 5px; border-radius: 6px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(11px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-toast-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); overflow-wrap: anywhere; white-space: pre-wrap; }\n.ta-toast-art { align-self: flex-start; width: 200px; height: auto; margin-top: 8px; border-radius: 10px; }\n.ta-toast-action { align-self: flex-start; margin-top: 6px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--ta-border-field); background: transparent; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; transition: background 120ms; }\n.ta-toast-action:hover { background: var(--ta-hover); }\n.ta-toast .ta-toast-close { width: 24px; height: 24px; margin-top: -1px; color: var(--ta-muted); }\n.ta-toast .ta-toast-close svg { width: 14px; height: 14px; }\n.ta-toast-session { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 4px; padding: 10px 6px 10px 10px; }\n.ta-toast-open { grid-column: 1; grid-row: 1; display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-toast-face { flex: none; display: grid; place-items: center; width: 38px; height: 38px; }\n.ta-toast-head { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-toast-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ta-text); }\n.ta-toast-session .ta-toast-message { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; color: var(--ta-secondary); }\n.ta-toast-session .ta-toast-close { grid-column: 2; grid-row: 1; }\n.ta-toast-actions { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; padding-left: 48px; }\n.ta-toast-session .ta-toast-action { margin-top: 0; }\n.ta-toast-text > .ta-toast-actions { padding-left: 0; margin-top: 6px; }\n.ta-toast-text > .ta-toast-actions .ta-toast-action { margin-top: 0; }\n.ta-toast-ta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; gap: 2px 10px; padding: 10px 6px 10px 10px; }\n.ta-toast-ta .ta-toast-face { width: 32px; height: 32px; }\n.ta-toast-ta .ta-toast-text { gap: 3px; padding-top: 1px; }\n.ta-toast-ta .ta-toast-title { font-weight: 600; color: var(--ta-text); }\n.ta-toast-change { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ta-secondary); }\n.ta-toast-change-label { flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 2px; }\n.ta-toast-change-before { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-toast-change-arrow { flex: none; color: var(--ta-muted); }\n.ta-toast-change-after { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ta-text); }\n.ta-toast-change-name { color: var(--ta-secondary); font-weight: 400; }\n.ta-toast-undo { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-top: 3px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-accent); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 120ms; }\n@media (hover: hover) { .ta-toast-undo:hover { background: var(--ta-hover); } }\n.ta-toast-ta .ta-toast-close { margin-top: 4px; }\n@keyframes ta-toast-in { from { transform: translateY(8px) scale(0.98); opacity: 0; } }\n@keyframes ta-toast-out { to { transform: translateX(12px); opacity: 0; } }\n\n/* The connection to ta serve, over the top of the main area while it is down */\n.ta-connection { position: absolute; top: calc(66px + env(safe-area-inset-top) + var(--ta-titlebar)); left: 50%; transform: translateX(-50%); z-index: 15; height: 34px; overflow: hidden; border-radius: 17px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-body); white-space: nowrap; animation: ta-drop 200ms var(--ta-ease); transition: width 240ms var(--ta-ease); --ta-level: var(--ta-yellow); }\n.ta-connection-body { display: flex; align-items: center; gap: 8px; width: max-content; max-width: min(720px, calc(100vw - 24px - var(--ta-left, 0px))); height: 100%; padding: 0 6px 0 12px; animation: ta-fade 160ms ease-out; }\n.ta-connection-back { --ta-level: var(--ta-green); }\n.ta-connection-back .ta-connection-body { padding-right: 12px; }\n.ta-connection-outdated { --ta-level: var(--ta-blue); }\n.ta-connection-leaving { animation: ta-connection-out 200ms var(--ta-ease) forwards; pointer-events: none; }\n.ta-connection-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }\n.ta-connection-when { color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-connection-retry { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; border: 0; background: var(--ta-chip); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; transition: background 120ms; }\n.ta-connection-retry:hover { background: var(--ta-hover-strong); }\n.ta-connection:not(.ta-connection-back):not(.ta-connection-notdone):not(.ta-connection-outdated) .ta-level-icon { animation: ta-pulse 2s ease-in-out infinite; }\n.ta-connection-notdone .ta-connection-body { padding-right: 12px; }\n@keyframes ta-connection-out { to { transform: translate(-50%, -6px); opacity: 0; } }\n/* On a phone: a row in the page, whose height opens and closes. */\n.ta-connection-banner { display: grid; grid-template-rows: 0fr; flex: none; transition: grid-template-rows 240ms var(--ta-ease); --ta-level: var(--ta-yellow); }\n.ta-connection-banner.ta-open { grid-template-rows: 1fr; }\n.ta-connection-banner.ta-connection-back { --ta-level: var(--ta-green); }\n.ta-connection-banner.ta-connection-outdated { --ta-level: var(--ta-blue); }\n.ta-connection-banner-inner { min-height: 0; overflow: hidden; }\n/* Over the message box its row brings its own gap (margin under it), none while closed: not that of the column too. */\n.ta-bottom > .ta-connection-banner, .ta-composer-area .ta-chat-col > .ta-connection-banner { margin-bottom: -8px; }\n.ta-connection-banner-row { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--ta-level) 9%, var(--ta-card)); color: var(--ta-body); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.45; text-align: left; transition: background 200ms; -webkit-tap-highlight-color: transparent; }\n.ta-connection-banner-row:active:not(:disabled) { background: color-mix(in srgb, var(--ta-level) 16%, var(--ta-card)); }\n.ta-connection-banner-row:disabled { opacity: 1; cursor: default; }\n.ta-connection-banner-row > .ta-level-icon { flex: none; }\n.ta-connection-banner-text { flex: 1; min-width: 0; }\n.ta-connection-banner-action { display: inline-flex; flex: none; align-items: center; gap: 5px; color: var(--ta-text); font-weight: 500; white-space: nowrap; }\n.ta-connection-retry:disabled { opacity: 1; }\n@keyframes ta-drop { from { transform: translate(-50%, -8px); opacity: 0; } }\n\n/* A question before going ahead */\n.ta-modal.ta-confirm { width: min(400px, 100%); gap: 6px; padding: 18px 18px 16px; }\n.ta-confirm-title { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-confirm-message { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; }\n.ta-confirm .ta-dialog-actions { margin-top: 12px; }\n.ta-modal.ta-ask { width: min(460px, 100%); gap: 12px; }\n.ta-ask .ta-dialog-actions { margin-top: 2px; }\ntextarea.ta-ask-text { height: auto; min-height: 180px; max-height: 50vh; padding: 8px 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; resize: vertical; }\n.ta-button-danger { background: var(--ta-red); border-color: var(--ta-red); color: #fff; }\n.ta-button-danger:hover:not(:disabled) { background: var(--ta-red); opacity: 0.9; }\n\n/* Built-in pages */\n.ta-assistant { flex: 1; min-height: 0; display: flex; }\n.ta-assistant-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }\n.ta-assistant-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-assistant-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }\n.ta-head-spacer { width: 32px; flex: none; }\n.ta-assistant-tasks { min-height: 100%; box-sizing: border-box; padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 10px; }\n.ta-assistant-tasks > .ta-select-bar { margin: auto -10px -12px; }\n.ta-assistant-task { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-task-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px 6px 4px; border-bottom: 1px solid var(--ta-border-muted); flex: none; }\n.ta-task-head .ta-task-status { width: 26px; height: 26px; }\n.ta-task-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }\n.ta-task-head-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-head-meta { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }\n.ta-task-head-meta .ta-task-time { font-size: inherit; color: inherit; }\n.ta-task-head-take { flex: none; height: 30px; padding: 0 12px; border-radius: 15px; }\n.ta-assistant-task .ta-session { min-height: 0; flex: 1; }\n.ta-assistant-task .ta-session-header { display: none; }\n.ta-assistant-task > .ta-scroll { flex: 1; min-height: 0; overflow-y: auto; }\n.ta-task-result { max-width: 760px; margin: 0 auto; padding: 18px 20px 28px; line-height: 1.7; }\n.ta-task-result-note { margin: 0 0 8px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n\n/* Overlays */\n.ta-overlay-close { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: default; }\n.ta-scrim { display: none; }\n.ta-hud { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-setting-section { display: flex; flex-direction: column; gap: 8px; }\n.ta-setting-section h2 { margin: 0; padding: 0 4px; }\n.ta-setting-card { border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-card); overflow: hidden; }\n.ta-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; min-height: 48px; }\n.ta-setting-row + .ta-setting-row { border-top: 1px solid var(--ta-border-muted); }\n.ta-setting-row.ta-stacked { flex-direction: column; align-items: stretch; gap: 8px; }\n.ta-setting-row.ta-stacked .ta-setting-control { width: 100%; }\n.ta-setting-row.ta-stacked .ta-segmented { flex: 1; }\n.ta-setting-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-setting-icon { flex: none; width: 32px; height: 32px; margin-right: -4px; display: grid; place-items: center; border-radius: 8px; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-setting-label { font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; overflow-wrap: anywhere; }\n.ta-setting-description { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow-wrap: anywhere; }\n.ta-trusted-add { display: flex; gap: 8px; width: 100%; }\n.ta-trusted-add .ta-input { height: 32px; flex: 1; min-width: 0; }\n.ta-store-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; width: 100%; padding: 12px; border-radius: 10px; background: var(--ta-raised); border: 1px solid var(--ta-border-muted); }\n.ta-store-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-store-field .ta-input { height: 32px; width: 100%; }\n.ta-store-field-label { display: inline-flex; align-items: baseline; gap: 6px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }\n.ta-store-field-optional { font-weight: 400; color: var(--ta-muted); }\n.ta-store-form-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-store-form-note svg { flex: none; margin-top: 2px; color: var(--ta-green); }\n.ta-store-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }\n@media (max-width: 640px) { .ta-store-form { grid-template-columns: minmax(0, 1fr); } .ta-store-form-actions .ta-button { flex: 1; } }\n.ta-setting-control { display: flex; align-items: center; justify-content: flex-end; flex: none; }\n.ta-segmented { margin: 0; min-width: 0; border: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ta-raised); }\n.ta-segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; transition: background 120ms, color 120ms; }\n.ta-segmented button:hover { color: var(--ta-text); }\n.ta-segmented .ta-on { background: var(--ta-segment); color: var(--ta-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--ta-border); }\n.ta-switch { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; flex: none; border-radius: 10px; background: var(--ta-hover-strong); position: relative; transition: background 160ms; margin: 0; cursor: pointer; }\n.ta-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 180ms var(--ta-ease); }\n.ta-switch:checked { background: var(--ta-green); }\n.ta-switch:checked::after { transform: translateX(16px); }\n\n/* Sign in */\n.ta-signin { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--ta-main); }\n/*\n * The installed app with its title bar hidden (window controls overlay): the page draws up to the top of\n * the window, and the bar is the colour of the side columns, as theme-color is (useTitlebarColor). Each\n * column starts lower by the height of the bar, which is left empty for the window's buttons, and is\n * where the window is dragged.\n */\n.ta-titlebar { display: none; position: fixed; z-index: 25; left: env(titlebar-area-x, 0); top: env(titlebar-area-y, 0); width: env(titlebar-area-width, 100%); height: var(--ta-titlebar); app-region: drag; -webkit-app-region: drag; }\n@media (display-mode: window-controls-overlay) {\n :root { --ta-titlebar: env(titlebar-area-height, 0px); }\n .ta-titlebar { display: block; }\n /* Above the conversation the bar keeps the colour of the side columns, under the browser's buttons too. */\n .ta-main { background: linear-gradient(var(--ta-side) var(--ta-titlebar), var(--ta-main) 0); }\n}\n/* Under a title bar (an installed web app, the desktop app) the conversation starts with rounded corners, the bar's colour in them. */\n.ta-main::before, .ta-main::after { content: ''; position: absolute; z-index: 21; top: var(--ta-titlebar); width: min(10px, var(--ta-titlebar)); height: min(10px, var(--ta-titlebar)); pointer-events: none; }\n/*\n * Each reaches over the border beside it too (the sidebar's, the workbench's), which so starts below the corner, where\n * the line of its sash does: above the columns beside (.ta-nav is at 20), under the title bar (25).\n */\n.ta-main::before { left: -1px; width: calc(min(10px, var(--ta-titlebar)) + 1px); background: radial-gradient(circle at 100% 100%, transparent 9.5px, var(--ta-side) 10px); }\n.ta-main::after { right: -1px; width: calc(min(10px, var(--ta-titlebar)) + 1px); background: radial-gradient(circle at 0 100%, transparent 9.5px, var(--ta-side) 10px); }\n.ta-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }\n.ta-card h1 { margin: 4px 0 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 650; }\n.ta-card p { margin: 0 0 8px; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-connect-pic { max-width: 300px; margin: -2px 0 6px; border-radius: 0; }\n.ta-strip-pic { border-radius: 0; }\n.ta-empty-picture:has(> .ta-strip-pic) { width: min(260px, 90%); }\n\n";
@@ -112,9 +112,9 @@ export const SHELL_STYLE = `
112
112
  /* Where to tap, as a ring that spreads from it */
113
113
  @keyframes ta-pic-pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
114
114
  .ta-pic-pulse { animation: ta-pic-pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
115
- .ta-msg-user { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; animation: ta-in 220ms var(--ta-ease); }
115
+ .ta-msg-user { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
116
116
  .ta-msg-bubble { max-width: 78%; padding: 9px 14px; border-radius: 16px 16px 5px 16px; background: var(--ta-user); color: var(--ta-text); white-space: pre-wrap; word-break: break-word; }
117
- .ta-msg-ta { color: var(--ta-body); line-height: 1.75; display: flex; flex-direction: column; gap: 6px; animation: ta-in 220ms var(--ta-ease); }
117
+ .ta-msg-ta { color: var(--ta-body); line-height: 1.75; display: flex; flex-direction: column; gap: 6px; }
118
118
  .ta-row { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 8px; margin: 0 -8px; border-radius: 8px; border: 0; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }
119
119
  .ta-row-title { color: var(--ta-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
120
120
  .ta-row-meta, .ta-row-label { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); flex: none; }
@@ -411,8 +411,11 @@ textarea.ta-ask-text { height: auto; min-height: 180px; max-height: 50vh; paddin
411
411
  .ta-main { background: linear-gradient(var(--ta-side) var(--ta-titlebar), var(--ta-main) 0); }
412
412
  }
413
413
  /* Under a title bar (an installed web app, the desktop app) the conversation starts with rounded corners, the bar's colour in them. */
414
- .ta-main::before, .ta-main::after { content: ''; position: absolute; z-index: 1; top: var(--ta-titlebar); width: min(10px, var(--ta-titlebar)); height: min(10px, var(--ta-titlebar)); pointer-events: none; }
415
- /* Each reaches over the border beside it too (the sidebar's, the workbench's), which so starts below the corner, where the line of its sash does. */
414
+ .ta-main::before, .ta-main::after { content: ''; position: absolute; z-index: 21; top: var(--ta-titlebar); width: min(10px, var(--ta-titlebar)); height: min(10px, var(--ta-titlebar)); pointer-events: none; }
415
+ /*
416
+ * Each reaches over the border beside it too (the sidebar's, the workbench's), which so starts below the corner, where
417
+ * the line of its sash does: above the columns beside (.ta-nav is at 20), under the title bar (25).
418
+ */
416
419
  .ta-main::before { left: -1px; width: calc(min(10px, var(--ta-titlebar)) + 1px); background: radial-gradient(circle at 100% 100%, transparent 9.5px, var(--ta-side) 10px); }
417
420
  .ta-main::after { right: -1px; width: calc(min(10px, var(--ta-titlebar)) + 1px); background: radial-gradient(circle at 0 100%, transparent 9.5px, var(--ta-side) 10px); }
418
421
  .ta-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
@@ -3,4 +3,4 @@
3
3
  * chip of the head, the card of a start to let go. Alike wherever they show; what waits for the user is
4
4
  * the one thing that stands out, a failure only by its dot.
5
5
  */
6
- export declare const TASKS_STYLE = "\n/* Its face (TaskIcon): the corners are set by its side. The tile of what no one does: grey once ended, in the green of the faces while it goes on (--ta-tint-3, style/tints.ts). */\n.ta-task-icon { flex: none; display: inline-grid; place-items: center; overflow: hidden; }\n.ta-task-tile { background: var(--ta-chip); color: var(--ta-secondary); transition: background-color 0.3s ease, color 0.3s ease; }\n.ta-task-tile.ta-on { background: var(--ta-tint-3); color: var(--ta-tint-ink-3); }\n.ta-task-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-task-more { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); opacity: 0; transition: opacity 120ms; }\n.ta-task-card:hover .ta-task-more, .ta-task-row:hover .ta-task-more, .ta-task-more:focus-visible { opacity: 1; }\n\n/* A card in the turn that started it */\n.ta-task-cards { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; margin: 4px 0 10px; }\n.ta-task-card { position: relative; display: flex; align-items: center; min-width: 0; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); transition: border-color 140ms, background 140ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-card:hover { border-color: var(--ta-border-field); }\n.ta-task-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-card-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }\n.ta-task-card-title { flex: 1; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-card-bottom { display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: -3px; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-card-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-chevron { flex: none; margin-right: -4px; color: var(--ta-muted); transition: opacity 120ms; }\n.ta-task-card:has(.ta-task-more) .ta-task-card-main { padding-right: 40px; }\n.ta-task-card:has(.ta-task-more) .ta-task-chevron { position: absolute; right: 13px; }\n.ta-task-card:hover:has(.ta-task-more) .ta-task-chevron { opacity: 0; }\n.ta-task-card.ta-task-waiting { border-color: color-mix(in srgb, var(--ta-yellow) 40%, var(--ta-border)); background: color-mix(in srgb, var(--ta-yellow) 5%, var(--ta-card)); }\n.ta-task-waiting .ta-task-card-detail, .ta-task-waiting .ta-task-row-detail { color: color-mix(in srgb, var(--ta-yellow) 80%, var(--ta-text)); }\n\n/* Where a task said how it ended: a quiet line, the double tells the rest */\n.ta-task-update { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin: 2px 0 2px -4px; padding: 3px 8px 3px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, color 120ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-update:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-task-update-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-update-chevron { flex: none; opacity: 0.6; }\n.ta-notice { max-width: 100%; margin: 2px 0; animation: ta-in 220ms var(--ta-ease); }\n.ta-notice-head { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-left: -4px; padding: 3px 8px 3px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); text-align: left; cursor: pointer; transition: background 120ms, color 120ms; }\n.ta-notice-head:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-notice-icon { flex: none; opacity: 0.75; }\n.ta-notice-from { flex: none; color: var(--ta-secondary); }\n.ta-notice-from::after { content: '\u00B7'; margin-left: 5px; color: var(--ta-muted); }\n.ta-notice-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-notice-chevron { flex: none; opacity: 0.6; transition: transform 160ms var(--ta-ease); }\n.ta-notice-head[aria-expanded=\"true\"] .ta-notice-chevron { transform: rotate(90deg); }\n.ta-notice-head[aria-expanded=\"true\"] .ta-notice-text { display: none; }\n.ta-notice-head[aria-expanded=\"true\"] .ta-notice-from::after { content: none; }\n.ta-notice-body { margin: 2px 0 6px 4px; padding-left: 12px; border-left: 2px solid var(--ta-border); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n\n/* A row of the lists */\n.ta-task-group { display: flex; flex-direction: column; gap: 2px; }\n.ta-task-group-title { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-task-group-count { min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 8px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); text-align: center; font-variant-numeric: tabular-nums; }\n.ta-task-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-row { position: relative; border-radius: 9px; transition: background 120ms; }\n.ta-task-row:hover { background: var(--ta-hover); }\n.ta-task-row.ta-selecting:has(.ta-task-row-main[aria-pressed=\"true\"]) { background: var(--ta-selected); }\n.ta-task-row-main:disabled { cursor: default; }\n.ta-task-row-main { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.ta-task-row-title { font-size: calc(13px * var(--ta-font-scale)); line-height: calc(19px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row-detail { display: flex; align-items: center; gap: 3px; min-width: 0; margin-left: -3px; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-row-detail > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row:hover:has(.ta-task-more) .ta-task-time { visibility: hidden; }\n.ta-task-more-rows { align-self: flex-start; height: 26px; margin: 2px 4px 0; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }\n.ta-task-more-rows:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n\n/* In the head of the double: how many run, how many need the user */\n.ta-tasks-chip { display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-card); color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background 120ms, border-color 120ms; animation: ta-fade 180ms var(--ta-ease); }\n.ta-tasks-chip:hover { background: var(--ta-hover); }\n.ta-tasks-chip-part { display: inline-flex; align-items: center; gap: 2px; }\n.ta-tasks-chip-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }\n\n/* A start waiting for the user's go */\n.ta-ask-card { gap: 0; padding: 12px 14px; }\n.ta-ask-card-label { display: flex; align-items: center; gap: 5px; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; line-height: 1.4; }\n.ta-ask-card-title { margin-top: 4px; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }\n.ta-ask-card-plan { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; text-align: left; cursor: pointer; }\n.ta-ask-card-plan-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }\n.ta-ask-card-plan.ta-open { max-height: 40vh; overflow-y: auto; cursor: auto; color: var(--ta-secondary); }\n.ta-ask-card-plan.ta-open .ta-ask-card-plan-text { display: block; white-space: pre-wrap; }\n.ta-ask-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }\n.ta-ask-card-where { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ask-card-where > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-ask-card-where > svg { flex: none; }\n.ta-ask-card-foot .ta-button { flex: none; min-width: 64px; border-radius: 16px; }\n.ta-ask-card-foot .ta-button.ta-primary { gap: 4px; }\n\n/* A conversation the double follows, in the list of chats */\n.ta-double-tag { display: inline-flex; align-items: center; flex: none; height: 17px; padding: 0 5px; margin-right: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ta-accent) 13%, transparent); color: var(--ta-accent); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(17px * var(--ta-font-scale)); vertical-align: 1px; }\n\n/* A finger has no hover: the \u2026 is a long press, the chevron stays. */\n@media (pointer: coarse) {\n .ta-task-more { display: none; }\n .ta-task-card:has(.ta-task-more) .ta-task-card-main { padding-right: 14px; }\n .ta-task-card:has(.ta-task-more) .ta-task-chevron { position: static; opacity: 1; }\n .ta-task-row:hover:has(.ta-task-more) .ta-task-time { visibility: visible; }\n}\n";
6
+ export declare const TASKS_STYLE = "\n/* Its face (TaskIcon): the corners are set by its side. The tile of what no one does: grey once ended, in the green of the faces while it goes on (--ta-tint-3, style/tints.ts). */\n.ta-task-icon { flex: none; display: inline-grid; place-items: center; overflow: hidden; }\n.ta-task-tile { background: var(--ta-chip); color: var(--ta-secondary); transition: background-color 0.3s ease, color 0.3s ease; }\n.ta-task-tile.ta-on { background: var(--ta-tint-3); color: var(--ta-tint-ink-3); }\n.ta-task-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-task-more { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); opacity: 0; transition: opacity 120ms; }\n.ta-task-card:hover .ta-task-more, .ta-task-row:hover .ta-task-more, .ta-task-more:focus-visible { opacity: 1; }\n\n/* A card in the turn that started it */\n.ta-task-cards { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; margin: 4px 0 10px; }\n.ta-task-card { position: relative; display: flex; align-items: center; min-width: 0; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); transition: border-color 140ms, background 140ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-card:hover { border-color: var(--ta-border-field); }\n.ta-task-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-card-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }\n.ta-task-card-title { flex: 1; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-card-bottom { display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: -3px; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-card-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-chevron { flex: none; margin-right: -4px; color: var(--ta-muted); transition: opacity 120ms; }\n.ta-task-card:has(.ta-task-more) .ta-task-card-main { padding-right: 40px; }\n.ta-task-card:has(.ta-task-more) .ta-task-chevron { position: absolute; right: 13px; }\n.ta-task-card:hover:has(.ta-task-more) .ta-task-chevron { opacity: 0; }\n.ta-task-card.ta-task-waiting { border-color: color-mix(in srgb, var(--ta-yellow) 40%, var(--ta-border)); background: color-mix(in srgb, var(--ta-yellow) 5%, var(--ta-card)); }\n.ta-task-waiting .ta-task-card-detail, .ta-task-waiting .ta-task-row-detail { color: color-mix(in srgb, var(--ta-yellow) 80%, var(--ta-text)); }\n\n/* Where a task said how it ended: a quiet line, the double tells the rest */\n.ta-task-update { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; max-width: 100%; margin: 2px 0 2px -4px; padding: 3px 8px 3px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, color 120ms; animation: ta-in 220ms var(--ta-ease); }\n.ta-task-update:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-task-update-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-update-chevron { flex: none; opacity: 0.6; }\n.ta-notice { max-width: 100%; margin: 2px 0; animation: ta-in 220ms var(--ta-ease); }\n.ta-notice-head { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-left: -4px; padding: 3px 8px 3px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); text-align: left; cursor: pointer; transition: background 120ms, color 120ms; }\n.ta-notice-head:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-notice-icon { flex: none; opacity: 0.75; }\n.ta-notice-from { flex: none; color: var(--ta-secondary); }\n.ta-notice-from::after { content: '\u00B7'; margin-left: 5px; color: var(--ta-muted); }\n.ta-notice-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-notice-chevron { flex: none; opacity: 0.6; transition: transform 160ms var(--ta-ease); }\n.ta-notice-head[aria-expanded=\"true\"] .ta-notice-chevron { transform: rotate(90deg); }\n.ta-notice-head[aria-expanded=\"true\"] .ta-notice-text { display: none; }\n.ta-notice-head[aria-expanded=\"true\"] .ta-notice-from::after { content: none; }\n.ta-notice-body { margin: 2px 0 6px 4px; padding-left: 12px; border-left: 2px solid var(--ta-border); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n\n/* A row of the lists */\n.ta-task-group { display: flex; flex-direction: column; gap: 2px; }\n.ta-task-group-title { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-task-group-count { min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 8px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); text-align: center; font-variant-numeric: tabular-nums; }\n.ta-task-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-task-row { position: relative; border-radius: 9px; transition: background 120ms; }\n.ta-task-row:hover { background: var(--ta-hover); }\n.ta-task-row.ta-selecting:has(.ta-task-row-main[aria-pressed=\"true\"]) { background: var(--ta-selected); }\n.ta-task-row-main:disabled { cursor: default; }\n.ta-task-row-main { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-task-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.ta-task-row-title { font-size: calc(13px * var(--ta-font-scale)); line-height: calc(19px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row-detail { display: flex; align-items: center; gap: 3px; min-width: 0; margin-left: -3px; font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-task-row-detail > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-task-row:hover:has(.ta-task-more) .ta-task-time { visibility: hidden; }\n.ta-task-more-rows { align-self: flex-start; height: 26px; margin: 2px 4px 0; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }\n.ta-task-more-rows:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n\n/* In the head of the double: how many run, how many need the user */\n.ta-tasks-chip { display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-card); color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: background 120ms, border-color 120ms; animation: ta-fade 180ms var(--ta-ease); }\n.ta-tasks-chip:hover { background: var(--ta-hover); }\n.ta-tasks-chip-part { display: inline-flex; align-items: center; gap: 2px; }\n.ta-tasks-chip-waiting { color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-text)); }\n\n/* A start waiting for the user's go */\n.ta-ask-card { gap: 0; padding: 12px 14px; }\n.ta-ask-card-label { display: flex; align-items: center; gap: 5px; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; line-height: 1.4; }\n.ta-ask-card-title { margin-top: 4px; font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }\n.ta-ask-card-plan { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; text-align: left; cursor: pointer; }\n.ta-ask-card-plan-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }\n.ta-ask-card-plan.ta-open { max-height: 40vh; overflow-y: auto; cursor: auto; color: var(--ta-secondary); }\n.ta-ask-card-plan.ta-open .ta-ask-card-plan-text { display: block; white-space: pre-wrap; }\n.ta-ask-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }\n.ta-ask-card-where { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ask-card-where > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-ask-card-where > svg { flex: none; }\n.ta-ask-card-foot .ta-button { flex: none; min-width: 64px; border-radius: 16px; }\n.ta-ask-card-foot .ta-button.ta-primary { gap: 4px; }\n\n/* A conversation the double follows, in the list of chats */\n.ta-double-tag { display: inline-flex; align-items: center; flex: none; height: 17px; padding: 0 5px; margin-right: 5px; border-radius: 5px; background: color-mix(in srgb, var(--ta-accent) 13%, transparent); color: var(--ta-accent); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(17px * var(--ta-font-scale)); vertical-align: 1px; }\n\n/* A finger has no hover: the \u2026 is a long press, the chevron stays. */\n@media (pointer: coarse) {\n .ta-task-more { display: none; }\n .ta-task-card:has(.ta-task-more) .ta-task-card-main { padding-right: 14px; }\n .ta-task-card:has(.ta-task-more) .ta-task-chevron { position: static; opacity: 1; }\n .ta-task-row:hover:has(.ta-task-more) .ta-task-time { visibility: visible; }\n}\n";
@@ -31,7 +31,7 @@ export const TASKS_STYLE = `
31
31
  .ta-task-waiting .ta-task-card-detail, .ta-task-waiting .ta-task-row-detail { color: color-mix(in srgb, var(--ta-yellow) 80%, var(--ta-text)); }
32
32
 
33
33
  /* Where a task said how it ended: a quiet line, the double tells the rest */
34
- .ta-task-update { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin: 2px 0 2px -4px; padding: 3px 8px 3px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, color 120ms; animation: ta-in 220ms var(--ta-ease); }
34
+ .ta-task-update { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; max-width: 100%; margin: 2px 0 2px -4px; padding: 3px 8px 3px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms, color 120ms; animation: ta-in 220ms var(--ta-ease); }
35
35
  .ta-task-update:hover { background: var(--ta-hover); color: var(--ta-secondary); }
36
36
  .ta-task-update-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
37
37
  .ta-task-update-chevron { flex: none; opacity: 0.6; }
@@ -175,6 +175,11 @@ export interface TaWorkbench {
175
175
  * page is connected again, when it loads again if it was of the build before.
176
176
  */
177
177
  restartServer(): Promise<void>;
178
+ /**
179
+ * Installs the newer version published (TaServerInfo.release), then restarts Ta to it (restartServer) where Ta can
180
+ * restart itself; else the server read again tells of it installed (TaServerInfo.update). Fails as the install did.
181
+ */
182
+ installRelease(): Promise<void>;
178
183
  /**
179
184
  * A store of a session on this connection; the caller attaches and detaches it. It can be made before
180
185
  * there is a connection, to show a conversation kept on the device (SessionStoreOptions.initial): it is
@@ -41,6 +41,7 @@ export declare class TaWorkbenchImpl extends WorkbenchHosts implements TaWorkben
41
41
  protected readonly listeners: Set<(state: WorkbenchState) => void>;
42
42
  get state(): WorkbenchState;
43
43
  restartServer(): Promise<void>;
44
+ installRelease(): Promise<void>;
44
45
  /** A restart that failed, or did not come back: no longer waited for. */
45
46
  protected restarted(): void;
46
47
  /**
@@ -94,6 +94,26 @@ let TaWorkbenchImpl = class TaWorkbenchImpl extends WorkbenchHosts {
94
94
  throw error;
95
95
  }
96
96
  }
97
+ async installRelease() {
98
+ var _a;
99
+ const read = async () => {
100
+ const server = await this.server.getServerInfo();
101
+ this.update({ server: WorkbenchUtil.same(this.current.server, server) });
102
+ return server;
103
+ };
104
+ const installing = this.server.installRelease();
105
+ // Each page of the owner sees it installing, this one too.
106
+ await read().catch(() => undefined);
107
+ try {
108
+ await installing;
109
+ }
110
+ finally {
111
+ await read().catch(() => undefined);
112
+ }
113
+ if (((_a = this.current.server) === null || _a === void 0 ? void 0 : _a.update) && this.current.server.restartable && !this.current.server.member) {
114
+ await this.restartServer();
115
+ }
116
+ }
97
117
  /** A restart that failed, or did not come back: no longer waited for. */
98
118
  restarted() {
99
119
  if (this.restart) {
@@ -93,7 +93,9 @@ function useAccountInfo(side, every = 3000) {
93
93
  return;
94
94
  }
95
95
  let live = true;
96
- const read = () => side.read().then(next => live && setInfo(next), (error) => live && setFailed(error));
96
+ const read = () => side.read().then(
97
+ // Mostly the same as before: what shows it is not drawn again every few seconds for nothing.
98
+ next => live && setInfo(previous => workbench_util_1.WorkbenchUtil.same(previous, next)), (error) => live && setFailed(error));
97
99
  void read();
98
100
  const timer = setInterval(() => document.visibilityState !== 'hidden' && void read(), every);
99
101
  return () => {
@@ -107,8 +107,10 @@ class AssistantTaskSource {
107
107
  const index = at + waiting.length;
108
108
  const state = (_a = this.stores.get(task.id)) === null || _a === void 0 ? void 0 : _a.store.state;
109
109
  const status = this.status(task, state);
110
- const detail = this.detail(task, status, state);
111
110
  const before = this.shown.get(task.id);
111
+ // What a task that ended said stays what it said: not read out of its result again each time the lists change.
112
+ const ended = !!before && before.task === task && before.status === status && status !== 'waiting' && task.status !== 'running';
113
+ const detail = ended ? before.detail : this.detail(task, status, state);
112
114
  const shown = before && before.task === task && before.status === status && before.detail === detail
113
115
  ? before
114
116
  : { task, status, detail, entry: this.entry(task, status, detail) };
@@ -1,5 +1,6 @@
1
1
  import type { SessionState } from '@celljs/ta-client';
2
2
  import * as React from 'react';
3
+ import type { RowWindow } from '../components/earlier-messages';
3
4
  import type { WebCodeRendererProps } from '../extension/web-api-contributions';
4
5
  import type { WebTaskEntry } from '../extension/web-extension-api';
5
6
  import type { Translate } from '../i18n/use-t';
@@ -14,10 +15,12 @@ interface AssistantThreadProps {
14
15
  tasks: readonly WebTaskEntry[];
15
16
  /** The file of this conversation. */
16
17
  origin?: string;
18
+ /** Only its latest rows are drawn, more as the view nears them (useEarlierMessages). */
19
+ rows?: RowWindow;
17
20
  onTask(id: string): void;
18
21
  t: Translate;
19
22
  }
20
- /** The double's conversation, as the home of the double shows it. */
21
- export declare function AssistantThread({ state, reply, tasks, origin, onTask, t }: AssistantThreadProps): React.JSX.Element;
23
+ /** The double's conversation, as the home of the double shows it: drawn as any conversation is (MessageList), a row at a time. */
24
+ export declare const AssistantThread: React.MemoExoticComponent<({ state, reply, tasks, origin, rows, onTask, t }: AssistantThreadProps) => React.JSX.Element>;
22
25
  export {};
23
26
  //# sourceMappingURL=assistant-thread.d.ts.map
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AssistantThread = AssistantThread;
36
+ exports.AssistantThread = void 0;
37
37
  const ta_protocol_1 = require("@celljs/ta-protocol");
38
38
  const lucide_react_1 = require("lucide-react");
39
39
  const React = __importStar(require("react"));
@@ -81,8 +81,61 @@ function DoubleUserMessage({ message, blocks }) {
81
81
  React.createElement(message_footer_1.UserFooter, { message: message, text: copied }),
82
82
  menu));
83
83
  }
84
- /** The double's conversation, as the home of the double shows it. */
85
- function AssistantThread({ state, reply, tasks, origin, onTask, t }) {
84
+ /** A row of the double's conversation: a turn of it, or what the user (or a task reporting back) said. */
85
+ function DoubleRowView({ item, tools, mood, status, latest, started, onTask, t }) {
86
+ var _a, _b;
87
+ if (item.kind === 'turn') {
88
+ const results = message_1.MessageUtil.results(item.messages);
89
+ const { errorMessage } = ((_a = item.last) !== null && _a !== void 0 ? _a : {});
90
+ const stopReason = message_1.MessageUtil.stopReason(item.last);
91
+ return (React.createElement(DoubleTurn, { item: item, latest: latest },
92
+ React.createElement(message_steps_1.Process, { steps: item.steps, active: item.active, results: results, tools: tools, leading: React.createElement(message_list_1.TurnAvatar, { mood: mood }), status: status }),
93
+ React.createElement(task_views_1.TaskCards, { tasks: started }),
94
+ item.reply.map((text, index) => (React.createElement(markdown_1.Markdown, { key: index, text: text, streaming: item.active && index === item.reply.length - 1 }))),
95
+ !item.active && stopReason === 'error' && errorMessage && React.createElement(callout_1.Callout, { level: "error" }, errorMessage)));
96
+ }
97
+ const { role } = item.message;
98
+ if (role === 'custom') {
99
+ return React.createElement(extension_view_1.CustomMessage, { message: item.message });
100
+ }
101
+ if (role !== 'user') {
102
+ return null;
103
+ }
104
+ const blocks = message_1.MessageUtil.blocks(item.message);
105
+ const text = message_1.MessageUtil.text(blocks).trim();
106
+ const note = assistant_task_util_1.AssistantTaskUtil.noteOf(text);
107
+ if (note) {
108
+ // A note of a new id is for the double only: the user sees the task under its id in the lists.
109
+ const line = assistant_task_util_1.AssistantTaskUtil.noteLine(note, t);
110
+ const status = note.status;
111
+ return line ? (React.createElement("button", { type: "button", className: "ta-task-update", onClick: () => onTask(note.id) },
112
+ React.createElement("span", { className: `ta-status ta-status-${(_b = TASK_DOTS[status]) !== null && _b !== void 0 ? _b : 'done'}` }),
113
+ React.createElement("span", { className: "ta-task-update-text" }, line),
114
+ React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 13, className: "ta-task-update-chevron" }))) : null;
115
+ }
116
+ if (ta_protocol_1.TaMessageSource.isNotice(text)) {
117
+ return React.createElement(message_user_1.NoticeMessage, { message: item.message });
118
+ }
119
+ return React.createElement(DoubleUserMessage, { message: item.message, blocks: blocks });
120
+ }
121
+ function sameTasks(a, b) {
122
+ return a.length === b.length && a.every((task, index) => task === b[index]);
123
+ }
124
+ /**
125
+ * A row draws again only when one of its messages changed (the store replaces only those), the tasks it handed out
126
+ * did, or, while the double is at it, a tool run did; not as the page around it draws, nor as the user types.
127
+ */
128
+ const DoubleRow = React.memo(DoubleRowView, (previous, next) => previous.mood === next.mood &&
129
+ previous.status === next.status &&
130
+ previous.latest === next.latest &&
131
+ previous.t === next.t &&
132
+ previous.onTask === next.onTask &&
133
+ sameTasks(previous.started, next.started) &&
134
+ process_1.ProcessUtil.same(previous.item, next.item) &&
135
+ (next.item.kind === 'message' || !next.item.active || previous.tools === next.tools));
136
+ const NO_TASKS = [];
137
+ /** The double's conversation, as the home of the double shows it: drawn as any conversation is (MessageList), a row at a time. */
138
+ exports.AssistantThread = React.memo(function AssistantThread({ state, reply, tasks, origin, rows, onTask, t }) {
86
139
  const renderers = React.useContext(extension_view_1.MessageRenderers);
87
140
  const items = React.useMemo(() => process_1.ProcessUtil.items(state.messages, state.working, state.start, renderers, state.head), [state.messages, state.working, state.start, renderers, state.head]);
88
141
  const starts = React.useMemo(() => process_1.ProcessUtil.starts(items), [items]);
@@ -90,6 +143,7 @@ function AssistantThread({ state, reply, tasks, origin, onTask, t }) {
90
143
  // A turn's cards know what the user said after it: a choice they asked for is made (message-list.tsx).
91
144
  const answers = React.useMemo(() => process_1.ProcessUtil.answers(items, message => (0, message_user_1.userWords)(message_1.MessageUtil.blocks(message)).copied), [items]);
92
145
  const own = React.useMemo(() => tasks.filter(task => task.origin && task.origin === origin), [tasks, origin]);
146
+ const shown = (0, message_list_1.useThreadRows)(items, rows);
93
147
  let lastTurn = items.length - 1;
94
148
  while (lastTurn >= 0 && items[lastTurn].kind !== 'turn') {
95
149
  lastTurn--;
@@ -100,49 +154,19 @@ function AssistantThread({ state, reply, tasks, origin, onTask, t }) {
100
154
  const onHead = status && (0, message_list_1.quiet)(last);
101
155
  // The cards of the tasks the last turn handed out come after its steps.
102
156
  const inSteps = (0, message_list_1.endsInSteps)(last) && !web_tasks_1.WebTaskUtil.startedIn(own, origin, starts[items.length - 1], Number.POSITIVE_INFINITY).length;
103
- const row = (item, index) => {
104
- var _a, _b, _c;
105
- if (item.kind === 'turn') {
106
- const results = message_1.MessageUtil.results(item.messages);
107
- const { errorMessage } = ((_a = item.last) !== null && _a !== void 0 ? _a : {});
108
- const stopReason = message_1.MessageUtil.stopReason(item.last);
109
- const mood = process_1.ProcessUtil.mood(item, index === lastTurn, waiting);
110
- const started = web_tasks_1.WebTaskUtil.startedIn(own, origin, starts[index], (_b = starts[index + 1]) !== null && _b !== void 0 ? _b : Number.POSITIVE_INFINITY);
111
- return (React.createElement(code_renderers_1.CodeAnswer.Provider, { key: item.key, value: answers[index] },
112
- React.createElement(DoubleTurn, { item: item, latest: index === lastTurn },
113
- React.createElement(message_steps_1.Process, { steps: item.steps, active: item.active, results: results, tools: state.tools, leading: React.createElement(message_list_1.TurnAvatar, { mood: mood }), status: onHead && item === last ? status : undefined }),
114
- React.createElement(task_views_1.TaskCards, { tasks: started }),
115
- item.reply.map((text, index) => (React.createElement(markdown_1.Markdown, { key: index, text: text, streaming: item.active && index === item.reply.length - 1 }))),
116
- !item.active && stopReason === 'error' && errorMessage && React.createElement(callout_1.Callout, { level: "error" }, errorMessage))));
117
- }
118
- const { role } = item.message;
119
- if (role === 'custom') {
120
- return React.createElement(extension_view_1.CustomMessage, { key: item.key, message: item.message });
121
- }
122
- if (role !== 'user') {
123
- return null;
124
- }
125
- const blocks = message_1.MessageUtil.blocks(item.message);
126
- const text = message_1.MessageUtil.text(blocks).trim();
127
- const note = assistant_task_util_1.AssistantTaskUtil.noteOf(text);
128
- if (note) {
129
- // A note of a new id is for the double only: the user sees the task under its id in the lists.
130
- const line = assistant_task_util_1.AssistantTaskUtil.noteLine(note, t);
131
- const status = note.status;
132
- return line ? (React.createElement("button", { key: item.key, type: "button", className: "ta-task-update", onClick: () => onTask(note.id) },
133
- React.createElement("span", { className: `ta-status ta-status-${(_c = TASK_DOTS[status]) !== null && _c !== void 0 ? _c : 'done'}` }),
134
- React.createElement("span", { className: "ta-task-update-text" }, line),
135
- React.createElement(icon_1.Icon, { icon: lucide_react_1.ChevronRight, size: 13, className: "ta-task-update-chevron" }))) : null;
136
- }
137
- if (ta_protocol_1.TaMessageSource.isNotice(text)) {
138
- return React.createElement(message_user_1.NoticeMessage, { key: item.key, message: item.message });
139
- }
140
- return React.createElement(DoubleUserMessage, { key: item.key, message: item.message, blocks: blocks });
141
- };
142
157
  return (React.createElement(code_renderers_1.CodeReply.Provider, { value: reply },
143
- items.map((item, index) => (React.createElement(React.Fragment, { key: item.key },
144
- breaks[index] !== undefined && React.createElement(message_footer_1.TimeBreak, { timestamp: breaks[index] }),
145
- row(item, index)))),
158
+ items.map((item, index) => {
159
+ var _a;
160
+ if (index < shown.from) {
161
+ return null;
162
+ }
163
+ const turn = item.kind === 'turn';
164
+ const started = turn ? web_tasks_1.WebTaskUtil.startedIn(own, origin, starts[index], (_a = starts[index + 1]) !== null && _a !== void 0 ? _a : Number.POSITIVE_INFINITY) : NO_TASKS;
165
+ return (React.createElement("div", { key: item.key, "data-row": item.key, className: shown.className(index) },
166
+ breaks[index] !== undefined && React.createElement(message_footer_1.TimeBreak, { timestamp: breaks[index] }),
167
+ React.createElement(code_renderers_1.CodeAnswer.Provider, { value: answers[index] },
168
+ React.createElement(DoubleRow, { item: item, tools: state.tools, mood: turn ? process_1.ProcessUtil.mood(item, index === lastTurn, waiting) : 'idle', status: onHead && item === last ? status : undefined, latest: index === lastTurn, started: started, onTask: onTask, t: t }))));
169
+ }),
146
170
  status && !onHead && React.createElement("div", { className: `ta-run-line ${inSteps ? 'ta-run-steps' : ''}` }, status)));
147
- }
171
+ });
148
172
  //# sourceMappingURL=assistant-thread.js.map
@@ -212,7 +212,13 @@ function Chat({ store, tasks, taskStates, onTask, onMood, onTasks }) {
212
212
  // What the user said; a task that reports back stays where it comes in.
213
213
  const asked = (0, earlier_messages_1.useAsked)(state, saidByUser);
214
214
  const scroller = (0, conversation_scroll_hooks_1.useConversationScroll)(asked);
215
- (0, earlier_messages_1.useEarlierMessages)(store, state, scroller);
215
+ // A long conversation draws its latest rows, more as the view nears them, as any conversation does (session-view.tsx).
216
+ const rows = (0, earlier_messages_1.useRowWindow)();
217
+ (0, earlier_messages_1.useEarlierMessages)(store, state, scroller, rows);
218
+ // The same function as the page draws again each second (its mood): the rows of the thread do not draw for it.
219
+ const taskOpened = React.useRef(onTask);
220
+ taskOpened.current = onTask;
221
+ const openTask = React.useCallback((id) => taskOpened.current(id), []);
216
222
  const say = (message) => {
217
223
  hush();
218
224
  return assistant.say(message);
@@ -337,7 +343,7 @@ function Chat({ store, tasks, taskStates, onTask, onMood, onTasks }) {
337
343
  React.createElement(hero_cards_1.HeroSteps, { steps: STEPS }),
338
344
  React.createElement(hero_cards_1.HeroCards, { suggestions: SUGGESTIONS, onPick: send }))) : (React.createElement(message_footer_1.MessageActions.Provider, { value: messageActions },
339
345
  React.createElement(message_images_1.MessageImages.Provider, { value: images },
340
- React.createElement(assistant_thread_1.AssistantThread, { state: state, reply: answerCard, tasks: allTasks, origin: assistant.sessionFile, onTask: onTask, t: t })))))),
346
+ React.createElement(assistant_thread_1.AssistantThread, { state: state, reply: answerCard, tasks: allTasks, origin: assistant.sessionFile, rows: rows, onTask: openTask, t: t })))))),
341
347
  React.createElement("div", { className: "ta-composer-area" },
342
348
  React.createElement("div", { className: "ta-chat-col" },
343
349
  asks.map(ask => (React.createElement("div", { key: ask.id, className: "ta-attention" },
@@ -25,7 +25,8 @@ export interface AccountEntry {
25
25
  }
26
26
  /**
27
27
  * The entries of the account and of the settings, in groups: the settings, the packages and the keys; the model
28
- * accounts, the default directory and the phone; the theme and the language; about, and signing out.
28
+ * accounts, the default directory and the phone; the theme and the language; the pages of extensions that are the
29
+ * user's own (WebView.group `me`: their feedback), about, and signing out.
29
30
  */
30
31
  export declare function useAccountEntries(onSettings: (section?: SettingsSection) => void, onDialog: (dialog: AccountDialog) => void): AccountEntry[][];
31
32
  /** What the entries of the account open over the page. */