@celljs/ta-web 4.20.0 → 4.22.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 (153) hide show
  1. package/esm/browser/account/device-account.d.ts +65 -1
  2. package/esm/browser/account/device-account.js +206 -6
  3. package/esm/browser/assistant/assistant-chat-list.js +5 -1
  4. package/esm/browser/assistant/call-turn-end.d.ts +55 -0
  5. package/esm/browser/assistant/call-turn-end.js +68 -0
  6. package/esm/browser/assistant/realtime-voice.js +3 -3
  7. package/esm/browser/assistant/voice-call.d.ts +19 -28
  8. package/esm/browser/assistant/voice-call.js +64 -51
  9. package/esm/browser/components/account-menu.d.ts +9 -4
  10. package/esm/browser/components/account-menu.js +59 -22
  11. package/esm/browser/components/account-view.d.ts +33 -7
  12. package/esm/browser/components/account-view.js +140 -79
  13. package/esm/browser/components/chat-home-util.d.ts +13 -2
  14. package/esm/browser/components/chat-home-util.js +29 -0
  15. package/esm/browser/components/chat-home.d.ts +16 -4
  16. package/esm/browser/components/chat-home.js +9 -2
  17. package/esm/browser/components/chat-list.js +4 -2
  18. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  19. package/esm/browser/components/cloud-sign-in-view.js +4 -1
  20. package/esm/browser/components/host-view.d.ts +15 -8
  21. package/esm/browser/components/host-view.js +23 -70
  22. package/esm/browser/components/me-view.d.ts +2 -2
  23. package/esm/browser/components/me-view.js +7 -6
  24. package/esm/browser/components/partner-row.d.ts +17 -0
  25. package/esm/browser/components/partner-row.js +48 -0
  26. package/esm/browser/components/profile-view.d.ts +11 -0
  27. package/esm/browser/components/profile-view.js +85 -0
  28. package/esm/browser/components/workbench-view.js +42 -7
  29. package/esm/browser/extension/web-api-components.d.ts +2 -2
  30. package/esm/browser/extension/web-api-home.d.ts +1 -0
  31. package/esm/browser/extension/web-api-partners.d.ts +95 -0
  32. package/esm/browser/extension/web-api-partners.js +2 -0
  33. package/esm/browser/extension/web-extension-api.d.ts +3 -3
  34. package/esm/browser/extension/web-extension-context.js +2 -2
  35. package/esm/browser/extension/web-extension-protocol.d.ts +8 -2
  36. package/esm/browser/extension/web-extension-run.d.ts +2 -1
  37. package/esm/browser/extension/web-extension-run.js +1 -0
  38. package/esm/browser/extension/web-extensions-running.d.ts +2 -0
  39. package/esm/browser/extension/web-extensions-running.js +3 -0
  40. package/esm/browser/extension/web-extensions.d.ts +1 -1
  41. package/esm/browser/extension/web-home.d.ts +11 -19
  42. package/esm/browser/extension/web-home.js +15 -68
  43. package/esm/browser/extension/web-partners.d.ts +8 -0
  44. package/esm/browser/extension/web-partners.js +13 -0
  45. package/esm/browser/extension/web-row-board.d.ts +38 -0
  46. package/esm/browser/extension/web-row-board.js +79 -0
  47. package/esm/browser/i18n/locales.d.ts +31 -1
  48. package/esm/browser/i18n/messages-ja.js +34 -4
  49. package/esm/browser/i18n/messages-zh-tw.js +34 -4
  50. package/esm/browser/i18n/messages.d.ts +30 -0
  51. package/esm/browser/i18n/messages.js +68 -8
  52. package/esm/browser/index.d.ts +4 -0
  53. package/esm/browser/index.js +4 -0
  54. package/esm/browser/partners/group-picker.d.ts +18 -0
  55. package/esm/browser/partners/group-picker.js +81 -0
  56. package/esm/browser/partners/partners-extension.d.ts +14 -0
  57. package/esm/browser/partners/partners-extension.js +61 -0
  58. package/esm/browser/partners/partners-util.d.ts +32 -0
  59. package/esm/browser/partners/partners-util.js +68 -0
  60. package/esm/browser/partners/partners-view.d.ts +32 -0
  61. package/esm/browser/partners/partners-view.js +103 -0
  62. package/esm/browser/style/chat-list.d.ts +1 -1
  63. package/esm/browser/style/chat-list.js +18 -0
  64. package/esm/browser/style/conversation-column.d.ts +1 -1
  65. package/esm/browser/style/conversation-column.js +2 -1
  66. package/esm/browser/style/dialogs.d.ts +1 -1
  67. package/esm/browser/style/dialogs.js +6 -0
  68. package/esm/browser/style/layout.d.ts +1 -1
  69. package/esm/browser/style/layout.js +1 -1
  70. package/esm/browser/style/pages.d.ts +1 -1
  71. package/esm/browser/style/pages.js +6 -0
  72. package/esm/browser/util/turn-end.d.ts +8 -0
  73. package/esm/browser/util/turn-end.js +78 -35
  74. package/esm/browser/workbench-hosts.d.ts +4 -1
  75. package/esm/browser/workbench-hosts.js +17 -0
  76. package/esm/browser/workbench-protocol.d.ts +8 -0
  77. package/lib/browser/account/device-account.d.ts +65 -1
  78. package/lib/browser/account/device-account.js +206 -6
  79. package/lib/browser/assistant/assistant-chat-list.js +5 -1
  80. package/lib/browser/assistant/call-turn-end.d.ts +56 -0
  81. package/lib/browser/assistant/call-turn-end.js +72 -0
  82. package/lib/browser/assistant/realtime-voice.js +3 -3
  83. package/lib/browser/assistant/voice-call.d.ts +19 -28
  84. package/lib/browser/assistant/voice-call.js +67 -54
  85. package/lib/browser/components/account-menu.d.ts +9 -4
  86. package/lib/browser/components/account-menu.js +57 -20
  87. package/lib/browser/components/account-view.d.ts +33 -7
  88. package/lib/browser/components/account-view.js +142 -77
  89. package/lib/browser/components/chat-home-util.d.ts +13 -2
  90. package/lib/browser/components/chat-home-util.js +29 -0
  91. package/lib/browser/components/chat-home.d.ts +16 -4
  92. package/lib/browser/components/chat-home.js +9 -1
  93. package/lib/browser/components/chat-list.js +4 -2
  94. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  95. package/lib/browser/components/cloud-sign-in-view.js +4 -1
  96. package/lib/browser/components/host-view.d.ts +15 -8
  97. package/lib/browser/components/host-view.js +22 -68
  98. package/lib/browser/components/me-view.d.ts +2 -2
  99. package/lib/browser/components/me-view.js +7 -6
  100. package/lib/browser/components/partner-row.d.ts +18 -0
  101. package/lib/browser/components/partner-row.js +84 -0
  102. package/lib/browser/components/profile-view.d.ts +12 -0
  103. package/lib/browser/components/profile-view.js +123 -0
  104. package/lib/browser/components/workbench-view.js +39 -4
  105. package/lib/browser/extension/web-api-components.d.ts +2 -2
  106. package/lib/browser/extension/web-api-home.d.ts +1 -0
  107. package/lib/browser/extension/web-api-partners.d.ts +96 -0
  108. package/lib/browser/extension/web-api-partners.js +3 -0
  109. package/lib/browser/extension/web-extension-api.d.ts +3 -3
  110. package/lib/browser/extension/web-extension-context.js +2 -2
  111. package/lib/browser/extension/web-extension-protocol.d.ts +8 -2
  112. package/lib/browser/extension/web-extension-run.d.ts +2 -1
  113. package/lib/browser/extension/web-extension-run.js +1 -0
  114. package/lib/browser/extension/web-extensions-running.d.ts +2 -0
  115. package/lib/browser/extension/web-extensions-running.js +3 -0
  116. package/lib/browser/extension/web-extensions.d.ts +1 -1
  117. package/lib/browser/extension/web-home.d.ts +11 -19
  118. package/lib/browser/extension/web-home.js +15 -68
  119. package/lib/browser/extension/web-partners.d.ts +9 -0
  120. package/lib/browser/extension/web-partners.js +17 -0
  121. package/lib/browser/extension/web-row-board.d.ts +39 -0
  122. package/lib/browser/extension/web-row-board.js +83 -0
  123. package/lib/browser/i18n/locales.d.ts +31 -1
  124. package/lib/browser/i18n/messages-ja.js +34 -4
  125. package/lib/browser/i18n/messages-zh-tw.js +34 -4
  126. package/lib/browser/i18n/messages.d.ts +30 -0
  127. package/lib/browser/i18n/messages.js +68 -8
  128. package/lib/browser/index.d.ts +4 -0
  129. package/lib/browser/index.js +4 -0
  130. package/lib/browser/partners/group-picker.d.ts +19 -0
  131. package/lib/browser/partners/group-picker.js +119 -0
  132. package/lib/browser/partners/partners-extension.d.ts +15 -0
  133. package/lib/browser/partners/partners-extension.js +97 -0
  134. package/lib/browser/partners/partners-util.d.ts +33 -0
  135. package/lib/browser/partners/partners-util.js +71 -0
  136. package/lib/browser/partners/partners-view.d.ts +33 -0
  137. package/lib/browser/partners/partners-view.js +144 -0
  138. package/lib/browser/style/chat-list.d.ts +1 -1
  139. package/lib/browser/style/chat-list.js +18 -0
  140. package/lib/browser/style/conversation-column.d.ts +1 -1
  141. package/lib/browser/style/conversation-column.js +2 -1
  142. package/lib/browser/style/dialogs.d.ts +1 -1
  143. package/lib/browser/style/dialogs.js +6 -0
  144. package/lib/browser/style/layout.d.ts +1 -1
  145. package/lib/browser/style/layout.js +1 -1
  146. package/lib/browser/style/pages.d.ts +1 -1
  147. package/lib/browser/style/pages.js +6 -0
  148. package/lib/browser/util/turn-end.d.ts +8 -0
  149. package/lib/browser/util/turn-end.js +78 -35
  150. package/lib/browser/workbench-hosts.d.ts +4 -1
  151. package/lib/browser/workbench-hosts.js +17 -0
  152. package/lib/browser/workbench-protocol.d.ts +8 -0
  153. package/package.json +7 -7
@@ -1,2 +1,2 @@
1
1
  /** The settings page, the menus of the account, the lists of Discover and Me, and the fade of what streams in. */
2
- export declare const PAGES_STYLE = "\n/* The settings: a page of the main area, a table of contents in two levels beside the sections */\n.ta-settings-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-settings-head { justify-content: flex-start; gap: 10px; border-bottom: 1px solid var(--ta-border-muted); }\n.ta-settings-title { flex: none; font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; padding-left: 8px; }\n.ta-settings-search { flex: 1; max-width: 420px; height: 32px; margin: 0 auto; display: flex; align-items: center; gap: 6px; color: var(--ta-muted); }\n.ta-settings-search input { color: var(--ta-text); }\n.ta-settings-search .ta-icon-button { width: 22px; height: 22px; }\n.ta-settings-body { flex: 1; min-height: 0; display: flex; }\n.ta-settings-toc { flex: none; width: 200px; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--ta-border-muted); }\n.ta-settings-toc-part { display: flex; flex-direction: column; gap: 1px; }\n.ta-settings-toc-group { border: 0; background: none; text-align: left; padding: 2px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-muted); }\n.ta-settings-toc-group:hover { color: var(--ta-text); }\n.ta-settings-toc-item { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-settings-toc-item .ta-icon { flex: none; color: var(--ta-muted); }\n.ta-settings-toc-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-settings-toc-item.ta-active { background: var(--ta-selected); color: var(--ta-text); font-weight: 500; }\n.ta-settings-scroll { flex: 1; min-width: 0; overflow-y: auto; scroll-padding-top: 16px; }\n.ta-settings-content { max-width: var(--ta-page-width); margin: 0 auto; padding: 18px 24px calc(48px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; }\n.ta-settings-content:has(> .ta-empty) { min-height: 100%; box-sizing: border-box; }\n.ta-settings-part { display: flex; flex-direction: column; gap: 18px; }\n.ta-settings-part-title { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: calc(18px * var(--ta-font-scale)); font-weight: 650; letter-spacing: -0.01em; }\n.ta-settings-scope { display: flex; flex-direction: column; gap: 6px; }\n.ta-settings-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ta-raised); align-self: flex-start; max-width: 100%; }\n.ta-settings-tab { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }\n.ta-settings-tab:hover { color: var(--ta-text); }\n.ta-settings-tab.ta-active { 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-settings-file { padding: 0 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow-wrap: anywhere; }\n.ta-settings-note { padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--ta-border); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-setting-row { position: relative; }\n.ta-setting-row.ta-modified::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 0 2px 2px 0; background: var(--ta-blue); }\n.ta-setting-control { gap: 6px; }\n.ta-setting-reset { width: 26px; height: 26px; }\n.ta-setting-row:not(:hover):not(:focus-within) .ta-setting-reset { opacity: 0; }\n.ta-setting-row:not(.ta-stacked) > .ta-setting-text { flex: 1 1 240px; }\n.ta-setting-row:not(.ta-stacked):has(> .ta-setting-icon) > .ta-setting-text { flex-basis: 160px; }\n.ta-setting-row:not(.ta-stacked) { flex-wrap: wrap; row-gap: 8px; }\n.ta-select, .ta-setting-input, .ta-setting-control .ta-model-field { width: 200px; height: 30px; font-size: calc(12.5px * var(--ta-font-scale)); padding: 0 8px; }\n.ta-select { appearance: auto; cursor: pointer; }\n.ta-setting-input::placeholder { color: var(--ta-muted); }\n/* The settings of a phone (PhoneSettings): the sections listed as Me's rows, each a page of grouped rows. */\n.ta-head-balance { flex: none; width: 32px; }\n.ta-settings-phone > .ta-list-head { padding-left: calc(6px + env(safe-area-inset-left)); padding-right: calc(6px + env(safe-area-inset-right)); }\n.ta-settings-phone .ta-list-content { gap: 20px; padding-left: calc(12px + env(safe-area-inset-left)); padding-right: calc(12px + env(safe-area-inset-right)); }\n.ta-settings-phone .ta-settings-search { flex: none; max-width: none; height: 38px; margin: 0; padding: 0 10px; border-radius: 10px; border-color: var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-settings-phone-group { display: flex; flex-direction: column; gap: 6px; }\n.ta-settings-phone-caption { margin: 0 4px; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-settings-phone .ta-setting-card { border-radius: 12px; border-color: var(--ta-border-muted); background: var(--ta-list-cell); }\n.ta-settings-phone .ta-setting-row { min-height: 52px; padding: 12px 16px; gap: 12px; }\n.ta-settings-phone .ta-setting-row:not(.ta-stacked) > .ta-setting-text { flex: 1 1 0; }\n.ta-settings-phone .ta-setting-label { font-size: calc(15px * var(--ta-font-scale)); font-weight: 400; }\n.ta-settings-phone .ta-setting-description { margin-top: 2px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-settings-phone .ta-setting-row.ta-stacked { gap: 10px; }\n.ta-settings-phone .ta-segmented button { height: 32px; }\n.ta-setting-choice { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-setting-choice:active { background: var(--ta-hover); }\n.ta-setting-check { flex: none; color: var(--ta-text); }\n.ta-setting-range { width: 140px; margin: 0; accent-color: var(--ta-accent); cursor: pointer; }\n.ta-setting-range-value { min-width: 3em; text-align: right; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); font-variant-numeric: tabular-nums; }\n.ta-settings-phone .ta-setting-range { flex: 1; width: auto; min-width: 0; }\n.ta-settings-phone .ta-settings-note { border-radius: 12px; }\n.ta-keys { display: inline-flex; gap: 3px; flex: none; }\n.ta-kbd { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 5px; border: 1px solid var(--ta-border); border-bottom-width: 2px; background: var(--ta-raised); font: 500 calc(11px * var(--ta-font-scale)) var(--ta-sans); color: var(--ta-secondary); }\n\n/* The menus of the account at the foot of the rail */\n.ta-account-menu .ta-account-item { width: 100%; }\n.ta-account-menu .ta-account-item.ta-on { background: var(--ta-hover); }\n.ta-account-menu .ta-account-item:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-menu-chevron { color: var(--ta-muted) !important; }\n.ta-menu-check { width: 15px; flex: none; display: grid; place-items: center; color: var(--ta-text); }\n.ta-account-menu .ta-kbd { height: 18px; min-width: 18px; font-size: calc(10.5px * var(--ta-font-scale)); }\n.ta-submenu-anchor { position: relative; }\n/* The account menu sits at the foot of the window: a second menu grows up from its entry, or the last choices would fall below it. */\n.ta-submenu { left: calc(100% + 8px); top: auto; bottom: -6px; width: 180px; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-settings-toc { display: none; }\n .ta-settings-content { padding: 14px 14px calc(32px + env(safe-area-inset-bottom)); }\n /* No table of contents: the last section, jumped to from the menu of the account, still scrolls to the top. */\n .ta-settings-scroll { container-type: size; }\n .ta-settings-part:last-child > .ta-setting-section:last-child { min-height: calc(100cqh - 48px - env(safe-area-inset-bottom)); }\n .ta-settings-title { padding-left: 0; }\n .ta-settings-search { margin: 0; }\n .ta-setting-row:has(.ta-select, .ta-setting-input, .ta-model-field, .ta-setting-range) .ta-setting-control { width: 100%; }\n .ta-setting-row .ta-select, .ta-setting-row .ta-setting-input, .ta-setting-row .ta-model-field { flex: 1; width: auto; min-width: 0; }\n .ta-setting-reset { opacity: 1 !important; }\n .ta-submenu { left: 12px; right: auto; top: auto; bottom: calc(100% + 4px); width: 200px; }\n}\n/* Discover and Me: rows in rounded groups, as the settings of a phone (list-rows.tsx) */\n.ta-list-page { flex: 1; min-height: 0; display: flex; flex-direction: column; --ta-list-bg: var(--ta-main); --ta-list-cell: var(--ta-side); background: var(--ta-list-bg); }\n:root[data-theme='light'] .ta-list-page { --ta-list-bg: var(--ta-side); --ta-list-cell: var(--ta-card); }\n.ta-list-head { border-bottom: 1px solid var(--ta-border-muted); }\n.ta-list-scroll { flex: 1; min-height: 0; overflow-y: auto; }\n.ta-list-content { max-width: var(--ta-page-width); margin: 0 auto; padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }\n.ta-list-group { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); overflow: hidden; }\n.ta-list-row { position: relative; display: flex; align-items: center; min-height: 48px; }\n.ta-list-row + .ta-list-row::before { content: ''; position: absolute; top: 0; right: 0; left: 46px; height: 1px; background: var(--ta-border-muted); }\n.ta-list-main { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; background: none; text-align: left; font-size: calc(14.5px * var(--ta-font-scale)); color: var(--ta-text); transition: background 120ms; }\n.ta-list-main:hover { background: var(--ta-hover); }\n.ta-list-main:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-list-icon { flex: none; color: var(--ta-secondary); }\n.ta-list-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-list-detail { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-list-chevron { flex: none; color: var(--ta-muted); }\n/* In place of the chevron while the page opens: as wide. */\n.ta-list-busy { margin: 0 1.5px; }\n.ta-list-trailing { flex: none; margin-right: 8px; color: var(--ta-muted); }\n/* WebView.mark of a page under Discover: before its pin, as WeChat shows who posted last by Moments. */\n.ta-list-mark { flex: none; display: inline-flex; align-items: center; margin-right: 2px; pointer-events: none; }\n.ta-list-row.ta-action .ta-list-main { justify-content: center; }\n.ta-list-row.ta-action .ta-list-label { flex: none; }\n.ta-list-row.ta-danger .ta-list-main { color: var(--ta-red); }\n.ta-list-row.ta-danger + .ta-list-row::before, .ta-list-row + .ta-list-row.ta-danger::before { left: 0; }\n.ta-list-hint { margin: -6px 4px 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-me-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 16px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; text-align: left; color: inherit; transition: background 120ms; }\n.ta-me-card:hover, .ta-me-card:active { background: var(--ta-hover); }\n.ta-me-card:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-account-figure.ta-me-figure { border-radius: 16px; }\n.ta-me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }\n.ta-me-name { font-size: calc(18px * var(--ta-font-scale)); font-weight: 650; color: var(--ta-text); }\n.ta-me-host { font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-me-state { display: flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* The computers of this device (host-view.tsx): rows as the conversations, a sheet from the bottom on a phone */\n.ta-hosts-dialog { width: min(420px, 100%); gap: 12px; }\n.ta-hosts-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-host-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-host-row { border-radius: 12px; --ta-swipe-bg: var(--ta-card); }\n.ta-host-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 12px; background: var(--ta-card); font: inherit; text-align: left; color: var(--ta-text); transition: background 120ms; }\n.ta-host-item:hover, .ta-host-item:active { background: var(--ta-hover); }\n.ta-host-row.ta-selected .ta-host-item { background: var(--ta-selected); }\n.ta-host-item:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-host-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }\n.ta-host-name { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; }\n.ta-host-detail { font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-host-check { flex: none; color: var(--ta-green); }\n.ta-host-actions { display: flex; gap: 8px; }\n.ta-host-actions .ta-button { flex: 1; height: 40px; justify-content: center; gap: 6px; }\n.ta-host-form { display: flex; gap: 8px; width: 100%; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-host-form .ta-field { flex: 1; height: 40px; }\n.ta-host-form .ta-button { height: 40px; min-width: 72px; justify-content: center; }\n.ta-scan-button { height: 46px; gap: 8px; font-size: calc(15px * var(--ta-font-scale)); justify-content: center; }\n.ta-link-button { padding: 4px 8px; border: 0; background: none; font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-link-button:hover { color: var(--ta-text); }\n.ta-sign-in-or { width: 100%; }\n.ta-cloud-other { align-self: center; margin-top: 2px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-cloud-entry { height: 42px; gap: 8px; font-size: calc(14.5px * var(--ta-font-scale)); }\n.ta-cloud-flow { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-cloud-flow h1 { margin: 4px 0 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 650; }\n.ta-cloud-flow p { margin: 0 0 4px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-cloud-back { position: absolute; top: -6px; left: -8px; }\n.ta-cloud-top { position: fixed; z-index: 5; top: calc(8px + env(safe-area-inset-top)); left: calc(8px + env(safe-area-inset-left)); }\n.ta-cloud-top .ta-cloud-back { position: static; width: 40px; height: 40px; }\n.ta-cloud-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }\n.ta-cloud-form .ta-field { height: 42px; }\n.ta-cloud-form .ta-button { height: 42px; font-size: calc(14.5px * var(--ta-font-scale)); }\n.ta-cloud-code { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0; border-radius: 14px; background: var(--ta-hover); font-family: var(--ta-mono); font-size: calc(28px * var(--ta-font-scale)); font-weight: 600; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; color: var(--ta-text); user-select: all; }\n.ta-cloud-code > span:not(.ta-cloud-code-dash) { margin-right: -0.16em; }\n.ta-cloud-code-dash { width: 12px; height: 2px; border-radius: 1px; background: var(--ta-muted); }\n.ta-cloud-status { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 24px; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-cloud-status-wait { color: var(--ta-text); }\n.ta-hosts-dialog .ta-cloud-flow { padding-top: 30px; }\n.ta-cloud-flow > .ta-callout, .ta-cloud-reach { width: 100%; }\n.ta-device-card { gap: 14px; }\n.ta-device-card .ta-sign-in-accounts { margin-top: 2px; }\n.ta-device-card .ta-sign-in-account { height: 44px; }\n.ta-device-ask { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--ta-hover); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-device-ask svg { flex: none; color: var(--ta-secondary); }\n.ta-device-mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; }\n.ta-device-ok { color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 14%, transparent); }\n.ta-device-wait { color: var(--ta-yellow); background: color-mix(in srgb, var(--ta-yellow) 14%, transparent); }\n.ta-device-bad { color: var(--ta-red); background: color-mix(in srgb, var(--ta-red) 12%, transparent); }\n.ta-device-quiet { color: var(--ta-muted); background: var(--ta-hover); }\n.ta-host-saved { width: 100%; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; animation: ta-in 260ms var(--ta-ease) both; }\n.ta-host-saved h2 { margin: 0 4px; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-signin .ta-host-item { background: var(--ta-main); }\n.ta-signin .ta-host-item:hover, .ta-signin .ta-host-item:active { background: var(--ta-hover); }\n.ta-sign-in-accounts { display: flex; flex-direction: column; gap: 8px; width: 100%; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-sign-in-account { height: 42px; gap: 8px; text-decoration: none; font-size: calc(14.5px * var(--ta-font-scale)); }\n.ta-sign-in-account:hover { background: var(--ta-hover); }\n.ta-sign-in-account[aria-busy='true'] { pointer-events: none; opacity: 0.7; }\n.ta-sign-in-mark { flex: none; }\n.ta-sign-in-or { display: flex; align-items: center; gap: 10px; margin: 4px 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-sign-in-or::before, .ta-sign-in-or::after { content: ''; flex: 1; height: 1px; background: var(--ta-border); }\n.ta-access-account { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }\n.ta-access-avatar { width: 22px; height: 22px; flex: none; border-radius: 50%; object-fit: cover; }\n.ta-access-avatar.ta-chat-avatar { font-size: calc(11px * var(--ta-font-scale)); }\n.ta-access-bind { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-sign-in-name { display: inline-flex; align-items: center; gap: 6px; }\n.ta-sign-in-callbacks { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }\n.ta-sign-in-callback { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--ta-hover); }\n.ta-sign-in-callback code { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-sign-in-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }\n.ta-sign-in-field { display: flex; flex-direction: column; gap: 4px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-sign-in-field .ta-input { height: 32px; }\n.ta-sign-in-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-environment-chooser { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }\n.ta-environment-own { display: flex; flex-direction: column; gap: 8px; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-environment-own .ta-button { align-self: flex-end; }\n.ta-deploy-cloud { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; align-items: flex-start; }\n.ta-deploy-cloud > .ta-environment-own { flex-basis: 100%; }\n.ta-environment-hint { margin: 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.ta-environment-card { gap: 14px; }\n/* While the page loads again for another computer: which one, at once, over all. */\n.ta-switching { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ta-main); color: var(--ta-secondary); font-size: calc(14px * var(--ta-font-scale)); animation: ta-fade 140ms ease-out both; }\n.ta-switching.ta-veil-leaving { opacity: 0; pointer-events: none; transition: opacity 220ms ease-out; }\n/* Me has no head: the card under the status bar. */\n.ta-me .ta-list-content { padding-top: calc(20px + env(safe-area-inset-top)); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-list-content { padding: 14px 12px calc(24px + env(safe-area-inset-bottom)); }\n .ta-me .ta-list-content { padding-top: calc(14px + env(safe-area-inset-top)); }\n}\n\n/* Streaming: what comes in fades in where it will stay; nothing already shown moves or draws again. */\n.ta-thread-new { animation: ta-in 220ms var(--ta-ease); }\n/* Words ta said on the way move from the reply into the steps when a tool follows them: they were on the screen, so they do not fade in again. */\n.ta-turn-live > .ta-markdown > *, .ta-process-active .ta-process-steps > :not(.ta-step-more, .ta-step-text), .ta-turn-live .ta-turn-head > .ta-process-head, .ta-turn-live .ta-turn-head > .ta-run-status { animation: ta-fade 240ms ease-out; }\n.ta-run-line { animation: ta-fade 200ms ease-out; }\n.ta-scroll { overflow-anchor: none; }\n/* The scroll bar held while a reply comes in: the thread keeps its height (ConversationScroller), what grows past it waits. */\n.ta-scroll-held { overflow-y: clip; }\n.ta-scroll-held > * { flex-shrink: 0; }\n/* The look of the double: it walks above, the kinds of dinosaur below, then the ways it walks */\n.ta-picture { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }\n.ta-picture-hint { margin: 0; max-width: 300px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; }\n.ta-picture-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }\n.ta-picture-actions > .ta-button { height: 40px; }\n.ta-picture-actions > .ta-input { height: 40px; }\n.ta-look { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }\n.ta-look-stage { height: 120px; flex: none; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }\n.ta-look-figure, .ta-look-walk { border-radius: 12px; background: var(--ta-raised); display: grid; place-items: center; }\n/* Wide enough for the walk to and fro (half the width of the dinosaur to either side of the middle, and itself). */\n.ta-look-walk { min-width: 220px; overflow: hidden; }\n.ta-look-label { font-size: calc(12px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-look-kinds { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }\n.ta-look-kind { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 7px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: transparent; color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); transition: background 120ms, border-color 120ms; }\n.ta-look-kind:hover { background: var(--ta-hover); }\n.ta-look-kind.ta-on { border-color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 8%, transparent); }\n.ta-look-name { max-width: 100%; }\n/* The voice replies are read with: its list, and a button to listen to it. */\n.ta-voice-picker { display: flex; align-items: center; gap: 8px; width: 100%; }\n.ta-voice-picker .ta-select { flex: 1; min-width: 0; }\n.ta-voice-picker .ta-button { flex: none; }\n.ta-look-premium { position: absolute; top: 4px; left: 4px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 8px; background: linear-gradient(135deg, #FCD866, #D98E14); color: #4a2c00; font-size: calc(10px * var(--ta-font-scale)); font-weight: 600; line-height: calc(14px * var(--ta-font-scale)); }\n/* Scan, as WeChat's: the camera over everything, a green glow sweeping down, round buttons on it; a photo for Ta asks on a sheet. */\n.ta-scan { position: fixed; inset: 0; z-index: 55; overflow: hidden; background: #000; color: #fff; animation: ta-fade 160ms ease-out; -webkit-user-select: none; user-select: none; }\n.ta-scan-video, .ta-scan-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }\n.ta-scan-mirrored { transform: scaleX(-1); }\n.ta-scan-line { position: absolute; left: 0; right: 0; top: 16%; height: 22%; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ta-green) 40%, transparent) 88%, color-mix(in srgb, var(--ta-green) 90%, transparent) 100%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 30%, transparent 100%); animation: ta-scan-sweep 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }\n@keyframes ta-scan-sweep { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(220%); opacity: 0; } }\n.ta-scan-dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #fff; background: var(--ta-green); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); animation: ta-scan-pop 260ms var(--ta-ease) both; }\n@keyframes ta-scan-pop { from { transform: scale(0.3); opacity: 0; } }\n.ta-scan-problem { position: absolute; top: 42%; left: 32px; right: 32px; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: calc(15px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); }\n.ta-scan-top { position: absolute; top: calc(env(safe-area-inset-top) + 14px); left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }\n.ta-scan-round { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.32); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }\n.ta-scan-bottom { position: absolute; left: 18px; right: 18px; bottom: calc(env(safe-area-inset-bottom) + 28px); display: flex; align-items: center; gap: 12px; }\n.ta-scan-side, .ta-scan-ask { border: 0; color: #fff; background: rgba(48, 48, 48, 0.58); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transition: transform 120ms, background 120ms; }\n.ta-scan-side { flex: none; width: 62px; height: 62px; display: grid; place-items: center; padding: 0; border-radius: 50%; }\n.ta-scan-ask { flex: 1; min-width: 0; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 14px; border-radius: 31px; }\n.ta-scan-side:active, .ta-scan-ask:active { transform: scale(0.96); background: rgba(70, 70, 70, 0.66); }\n.ta-scan-side:disabled, .ta-scan-ask:disabled { opacity: 0.45; }\n.ta-scan-side.ta-scan-blank { visibility: hidden; }\n.ta-scan-toast { left: 50%; right: auto; width: max-content; max-width: calc(100% - 64px); padding: 8px 16px; border-radius: 18px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.6); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: ta-fade 160ms ease-out; }\n.ta-scan-instructions { flex: 1; min-width: 0; margin: 0; text-align: center; text-wrap: balance; color: rgba(255, 255, 255, 0.85); font-size: calc(15px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }\n.ta-scan-ask-title { display: flex; align-items: center; gap: 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; line-height: calc(24px * var(--ta-font-scale)); }\n.ta-scan-ask-hint { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, 0.62); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.ta-scan-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--ta-card); color: var(--ta-text); box-shadow: var(--ta-shadow-pop); animation: ta-in 220ms var(--ta-ease); }\n:root[data-keyboard] .ta-scan-sheet { bottom: var(--ta-keyboard, 0px); padding-bottom: 12px; }\n.ta-scan-sheet-title { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-scan-chips { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-scan-chip { padding: 8px 14px; border: 1px solid var(--ta-border); border-radius: 999px; background: var(--ta-main); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); }\n.ta-scan-chip:active { background: var(--ta-hover); }\n.ta-scan-field { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border: 1px solid var(--ta-border); border-radius: 22px; background: var(--ta-main); }\n.ta-scan-field input { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: transparent; color: var(--ta-text); font-size: max(16px, calc(15px * var(--ta-font-scale))); }\n.ta-scan-send { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--ta-text); color: var(--ta-main); }\n.ta-scan-send:disabled { opacity: 0.5; }\n/* A model service added by its address and key (custom-provider-view) */\n.ta-custom-flow { flex: 1 1 auto; min-height: 0; }\n.ta-custom-form { display: flex; flex-direction: column; gap: 12px; min-height: 0; margin: 0 -4px; padding: 0 4px; overflow-y: auto; }\n.ta-custom-form .ta-select { width: 100%; height: 32px; }\n.ta-custom-models { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; box-sizing: border-box; padding: 4px 6px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-input); transition: border-color 120ms; }\n.ta-custom-models:focus-within { border-color: var(--ta-border-focus); }\n.ta-custom-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 24px; padding: 0 2px 0 8px; border-radius: 6px; background: var(--ta-raised); color: var(--ta-text); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); animation: ta-in 160ms var(--ta-ease) both; }\n.ta-custom-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-custom-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ta-muted); cursor: pointer; }\n.ta-custom-chip button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-custom-model-input { flex: 1; min-width: 140px; height: 26px; border: 0; outline: none; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-custom-fetch { align-self: flex-start; margin-top: 2px; }\n.ta-custom-fetched { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }\n.ta-custom-fetched .ta-auth-note { white-space: normal; }\n.ta-custom-fetched .ta-input { height: 32px; }\n.ta-custom-fetched-list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; padding: 2px; border: 1px solid var(--ta-border-muted); border-radius: 8px; }\n.ta-custom-fetched-list .ta-auth-item { height: 32px; flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-custom-fetched-list .ta-auth-item > .ta-custom-picked { margin-left: auto; color: var(--ta-accent); }\n.ta-custom-actions { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; background: var(--ta-card); }\n.ta-custom-actions .ta-danger { margin-right: auto; }\n.ta-custom-add > .ta-icon:first-child { color: var(--ta-accent); }\n.ta-custom-add { width: 100%; }\n.ta-custom-advanced { border: 1px solid var(--ta-border-muted); border-radius: 10px; }\n.ta-custom-advanced-toggle { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; cursor: pointer; }\n.ta-custom-advanced-toggle:hover { background: var(--ta-hover); }\n.ta-custom-advanced-toggle .ta-auth-note { font-weight: 400; }\n.ta-custom-advanced-toggle > .ta-icon { margin-left: auto; color: var(--ta-muted); transition: transform 160ms var(--ta-ease); }\n.ta-custom-advanced.ta-open .ta-custom-advanced-toggle > .ta-icon { transform: rotate(180deg); }\n.ta-custom-advanced-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 10px 12px; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-custom-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }\n.ta-custom-check { display: flex; align-items: center; gap: 8px; min-height: 28px; color: var(--ta-body); font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; }\n.ta-custom-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ta-accent); }\n.ta-custom-header { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 28px; gap: 6px; align-items: center; }\n.ta-custom-header .ta-input { height: 32px; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-custom-header-remove { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); cursor: pointer; }\n.ta-custom-header-remove:hover { background: var(--ta-hover); color: var(--ta-text); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-custom-form .ta-input, .ta-custom-model-input { font-size: max(16px, calc(14px * var(--ta-font-scale))); }\n .ta-custom-actions .ta-button { flex: 1; }\n}\n/* The console of a gateway (gateway/console-*.tsx): sections of a title over a card, rows parted by lines. */\n.ta-console-content { gap: 20px; }\n.ta-console-content > .ta-segmented { align-self: stretch; }\n.ta-console-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }\n.ta-console-section { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; padding: 0 4px; }\n.ta-console-section-title { margin: 0; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-console-section .ta-icon-button { width: 26px; height: 26px; }\n.ta-console-hint { margin: 0 4px; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); }\n.ta-console-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); overflow: hidden; }\n.ta-console-card > * + *::before { content: ''; position: absolute; top: 0; right: 0; left: 14px; height: 1px; background: var(--ta-border-muted); }\n.ta-console-card > * { position: relative; }\n.ta-console-panel { gap: 12px; padding: 14px; }\n.ta-console-panel > * + *::before { display: none; }\n.ta-console-empty { margin: 0; padding: 14px; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-entry { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 9px 14px; border: 0; background: none; font: inherit; color: var(--ta-text); text-align: left; }\n.ta-console-press { cursor: pointer; transition: background 120ms; }\n.ta-console-press:hover { background: var(--ta-hover); }\n.ta-console-press:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-console-entry-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-console-entry-label { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; }\n.ta-console-entry-hint { font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.45; color: var(--ta-muted); }\n.ta-console-tile { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-console-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n.ta-console-chevron { flex: none; color: var(--ta-muted); transition: transform 160ms var(--ta-ease); }\n.ta-console-chevron.ta-open { transform: rotate(90deg); }\n.ta-console-line { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-console-line-detail { flex: 1; min-width: 0; color: var(--ta-muted); }\n.ta-console-time { flex: none; margin-left: auto; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-console-muted { color: var(--ta-muted); }\n.ta-console-mono { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-console-audit-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-console-audit-text strong { font-weight: 500; }\n.ta-console-fact { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 14px; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-console-fact > :first-child { flex: none; color: var(--ta-muted); }\n.ta-console-fact > :last-child { min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }\n/* Numbers side by side: one card, parted by lines, as many columns as numbers (two rows of two on a phone). */\n.ta-console-stats { display: grid; grid-template-columns: repeat(var(--ta-console-stats, 4), minmax(0, 1fr)); border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); overflow: hidden; }\n.ta-console-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 14px 16px; border: 0; background: none; font: inherit; color: inherit; text-align: left; }\n.ta-console-stat + .ta-console-stat { box-shadow: inset 1px 0 var(--ta-border-muted); }\nbutton.ta-console-stat { cursor: pointer; transition: background 120ms; }\nbutton.ta-console-stat:hover { background: var(--ta-hover); }\n.ta-console-stat-value { font-size: calc(24px * var(--ta-font-scale)); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }\n.ta-console-stat-value.ta-good { color: var(--ta-green); }\n.ta-console-stat-value.ta-warn { color: var(--ta-yellow); }\n.ta-console-stat-value.ta-bad { color: var(--ta-red); }\n.ta-console-stat-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }\n/* Faces: the account's avatar, a dot on it while its Ta runs, starts or failed. */\n.ta-console-face { position: relative; flex: none; display: inline-flex; }\n.ta-console-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }\n.ta-console-avatar.ta-chat-avatar { font-size: 15px; }\n.ta-console-avatar-large { width: 56px; height: 56px; }\n.ta-console-avatar-large.ta-chat-avatar { font-size: 22px; }\n.ta-console-face > .ta-console-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; box-sizing: border-box; border: 2px solid var(--ta-list-cell); }\n.ta-console-face.ta-large > .ta-console-dot { right: 1px; bottom: 1px; width: 15px; height: 15px; border-width: 3px; border-color: var(--ta-list-bg); }\n.ta-console-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-border-field); }\n.ta-console-dot.ta-console-running { background: var(--ta-green); }\n.ta-console-dot.ta-console-starting { background: var(--ta-blue); animation: ta-console-pulse 1.2s ease-in-out infinite; }\n.ta-console-dot.ta-console-failed { background: var(--ta-red); }\n.ta-console-dot.ta-console-agent-working { background: var(--ta-green); animation: ta-console-pulse 1.2s ease-in-out infinite; }\n.ta-console-dot.ta-console-agent-waiting, .ta-console-dot.ta-console-agent-asking { background: var(--ta-blue); }\n@keyframes ta-console-pulse { 50% { opacity: 0.35; } }\n.ta-console-chip { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }\n.ta-console-chip-warn { background: color-mix(in srgb, var(--ta-yellow) 18%, transparent); color: var(--ta-yellow); }\n.ta-console-role-owner { background: color-mix(in srgb, var(--ta-blue) 16%, transparent); color: var(--ta-blue); }\n.ta-console-role-admin { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n/* Bars and meters */\n.ta-console-bar { display: block; height: 6px; border-radius: 3px; background: var(--ta-chip); overflow: hidden; }\n.ta-console-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ta-green); transition: width 300ms var(--ta-ease); }\n.ta-console-bar > span.ta-warm { background: var(--ta-yellow); }\n.ta-console-bar > span.ta-high { background: var(--ta-red); }\n.ta-console-bar > span.ta-part { background: var(--ta-blue); }\n.ta-console-bar-small { width: 56px; height: 4px; }\n.ta-console-meter { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; }\n.ta-console-meter-text { display: flex; justify-content: space-between; gap: 12px; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-console-meter-value { font-variant-numeric: tabular-nums; color: var(--ta-secondary); text-align: right; }\n.ta-console-meter-hint { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n/* A value on the right of a row that opens a menu of what it may be. */\n.ta-console-value { flex: none; max-width: 55%; display: inline-flex; align-items: center; gap: 4px; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; color: var(--ta-text); }\n.ta-console-value.ta-muted { color: var(--ta-muted); }\n.ta-console-pick { position: relative; height: 30px; margin-right: -8px; padding: 0 8px 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; cursor: pointer; }\n.ta-console-pick:hover { background: var(--ta-hover); }\n.ta-console-pick > svg { flex: none; color: var(--ta-muted); }\n/* The person at the head of an account, and what can be done to it: tiles side by side, as the actions of a contact. */\n.ta-console-person { display: flex; align-items: center; gap: 14px; padding: 2px 4px; }\n.ta-console-person-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-console-person-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: calc(18px * var(--ta-font-scale)); font-weight: 600; }\n.ta-console-actions { display: grid; grid-template-columns: repeat(var(--ta-console-actions, 4), minmax(0, 1fr)); gap: 8px; }\n.ta-console-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 64px; padding: 0 6px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); cursor: pointer; transition: background 120ms; }\n.ta-console-action:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-console-action:disabled { opacity: 0.45; cursor: default; }\n.ta-console-action.ta-danger { color: var(--ta-red); }\n.ta-console-action-icon { position: relative; display: grid; place-items: center; color: var(--ta-secondary); }\n.ta-console-action.ta-danger .ta-console-action-icon { color: inherit; }\n.ta-console-action.ta-busy .ta-console-action-icon > svg { visibility: hidden; }\n/* Accounts: search and invite in a row, filters and sort under them. */\n.ta-console-toolbar { display: flex; gap: 8px; }\n.ta-console-search { flex: 1; }\n.ta-console-toolbar .ta-button { height: 36px; flex: none; }\n.ta-console-filters { display: flex; align-items: center; gap: 8px; margin-top: -8px; }\n.ta-console-chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }\n.ta-console-chips::-webkit-scrollbar { display: none; }\n.ta-console-chip-toggle { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); cursor: pointer; }\n.ta-console-chip-toggle:hover { color: var(--ta-text); }\n.ta-console-chip-toggle.ta-on { border-color: transparent; background: var(--ta-text); color: var(--ta-list-bg); font-weight: 500; }\n.ta-console-chip-count { font-variant-numeric: tabular-nums; opacity: 0.6; }\n.ta-console-sort { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); cursor: pointer; }\n.ta-console-sort:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-console-sort-mark { transform: rotate(90deg); color: var(--ta-muted); }\n.ta-console-invite { gap: 8px; padding: 14px; }\n.ta-console-invite > * + *::before { display: none; }\n.ta-console-link { padding: 8px 10px; border-radius: 8px; background: var(--ta-code); word-break: break-all; user-select: all; }\n.ta-console-buttons { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-console-command { min-height: 48px; gap: 10px; color: var(--ta-text); }\n.ta-console-command > svg { flex: none; color: var(--ta-secondary); }\n.ta-console-command.ta-danger, .ta-console-command.ta-danger > svg { color: var(--ta-red); }\n.ta-console-command:disabled { opacity: 0.45; cursor: default; }\n.ta-console-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-console-copy > code { flex: 1; min-width: 0; }\n/* Agents and what they did */\n.ta-console-item { position: relative; }\n.ta-console-activity { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 12px 33px; }\n.ta-console-activity-summary { padding-bottom: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-activity-empty { margin: 0; padding: 0 14px 12px 33px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-activity-row { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-console-activity-error { flex: 1; min-width: 0; color: var(--ta-red); }\n.ta-console-logs { margin: 0; max-height: 420px; overflow: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: pre-wrap; word-break: break-all; }\n.ta-console-hosts { width: 100%; min-height: 84px; padding: 8px 10px; resize: vertical; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n/* Usage over time */\n.ta-console-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }\n.ta-console-card-controls { display: flex; gap: 8px; flex-wrap: wrap; }\n.ta-console-card-controls .ta-segmented button { padding: 0 10px; white-space: nowrap; }\n.ta-console-total { display: flex; flex-direction: column; gap: 2px; }\n.ta-console-total strong { font-size: calc(24px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }\n.ta-console-total span, .ta-console-card-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-card-label { margin-top: 4px; }\n.ta-console-chart { display: flex; flex-direction: column; gap: 4px; }\n.ta-console-chart svg { width: 100%; height: 120px; display: block; overflow: visible; }\n.ta-console-chart-wait { display: flex; flex-direction: column; height: 160px; }\n.ta-console-chart-hover { display: flex; align-items: baseline; gap: 8px; min-height: 20px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-console-chart-hover strong { color: var(--ta-text); font-weight: 600; }\n.ta-console-chart-bar { fill: color-mix(in srgb, var(--ta-green) 55%, transparent); transition: fill 120ms; }\n.ta-console-chart-bar.ta-on { fill: var(--ta-green); }\n.ta-console-chart-axis { stroke: var(--ta-border-muted); stroke-width: 1; }\n.ta-console-chart-ticks { display: flex; justify-content: space-between; font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-shares { display: flex; flex-direction: column; gap: 6px; }\n.ta-console-share { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px; align-items: center; gap: 10px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-console-share .ta-console-bar-small { width: 100%; }\n.ta-console-share-label { min-width: 0; }\n.ta-console-share-button { padding: 2px 4px; margin: 0 -4px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }\n.ta-console-share-button:hover { background: var(--ta-hover); }\n.ta-console-share-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n.ta-console-foot { margin: 4px 0 0; text-align: center; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console .ta-phone-stack-top { background: var(--ta-list-bg); }\n.ta-setting-row .ta-console-card { width: 100%; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-console-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .ta-console-stat:nth-child(odd) { box-shadow: none; }\n .ta-console-stat:nth-child(n + 3) { border-top: 1px solid var(--ta-border-muted); }\n .ta-console-stat:nth-child(even) { box-shadow: inset 1px 0 var(--ta-border-muted); }\n .ta-console-actions { grid-template-columns: repeat(min(var(--ta-console-actions, 4), 4), minmax(0, 1fr)); }\n .ta-console-share { grid-template-columns: minmax(0, 1fr) 64px 56px; }\n .ta-console-card-controls { width: 100%; display: grid; grid-template-columns: 2fr 3fr; }\n .ta-console-card-controls .ta-segmented button { padding: 0 4px; }\n .ta-console-entry { min-height: 56px; }\n .ta-console-entry-label { font-size: calc(15px * var(--ta-font-scale)); }\n}\n";
2
+ export declare const PAGES_STYLE = "\n/* The settings: a page of the main area, a table of contents in two levels beside the sections */\n.ta-settings-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-settings-head { justify-content: flex-start; gap: 10px; border-bottom: 1px solid var(--ta-border-muted); }\n.ta-settings-title { flex: none; font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; padding-left: 8px; }\n.ta-settings-search { flex: 1; max-width: 420px; height: 32px; margin: 0 auto; display: flex; align-items: center; gap: 6px; color: var(--ta-muted); }\n.ta-settings-search input { color: var(--ta-text); }\n.ta-settings-search .ta-icon-button { width: 22px; height: 22px; }\n.ta-settings-body { flex: 1; min-height: 0; display: flex; }\n.ta-settings-toc { flex: none; width: 200px; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--ta-border-muted); }\n.ta-settings-toc-part { display: flex; flex-direction: column; gap: 1px; }\n.ta-settings-toc-group { border: 0; background: none; text-align: left; padding: 2px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-muted); }\n.ta-settings-toc-group:hover { color: var(--ta-text); }\n.ta-settings-toc-item { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-settings-toc-item .ta-icon { flex: none; color: var(--ta-muted); }\n.ta-settings-toc-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-settings-toc-item.ta-active { background: var(--ta-selected); color: var(--ta-text); font-weight: 500; }\n.ta-settings-scroll { flex: 1; min-width: 0; overflow-y: auto; scroll-padding-top: 16px; }\n.ta-settings-content { max-width: var(--ta-page-width); margin: 0 auto; padding: 18px 24px calc(48px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; }\n.ta-settings-content:has(> .ta-empty) { min-height: 100%; box-sizing: border-box; }\n.ta-settings-part { display: flex; flex-direction: column; gap: 18px; }\n.ta-settings-part-title { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: calc(18px * var(--ta-font-scale)); font-weight: 650; letter-spacing: -0.01em; }\n.ta-settings-scope { display: flex; flex-direction: column; gap: 6px; }\n.ta-settings-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--ta-raised); align-self: flex-start; max-width: 100%; }\n.ta-settings-tab { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }\n.ta-settings-tab:hover { color: var(--ta-text); }\n.ta-settings-tab.ta-active { 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-settings-file { padding: 0 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow-wrap: anywhere; }\n.ta-settings-note { padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--ta-border); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-setting-row { position: relative; }\n.ta-setting-row.ta-modified::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 0 2px 2px 0; background: var(--ta-blue); }\n.ta-setting-control { gap: 6px; }\n.ta-setting-reset { width: 26px; height: 26px; }\n.ta-setting-row:not(:hover):not(:focus-within) .ta-setting-reset { opacity: 0; }\n.ta-setting-row:not(.ta-stacked) > .ta-setting-text { flex: 1 1 240px; }\n.ta-setting-row:not(.ta-stacked):has(> .ta-setting-icon) > .ta-setting-text { flex-basis: 160px; }\n.ta-setting-row:not(.ta-stacked) { flex-wrap: wrap; row-gap: 8px; }\n.ta-select, .ta-setting-input, .ta-setting-control .ta-model-field { width: 200px; height: 30px; font-size: calc(12.5px * var(--ta-font-scale)); padding: 0 8px; }\n.ta-select { appearance: auto; cursor: pointer; }\n.ta-setting-input::placeholder { color: var(--ta-muted); }\n/* The settings of a phone (PhoneSettings): the sections listed as Me's rows, each a page of grouped rows. */\n.ta-head-balance { flex: none; width: 32px; }\n.ta-settings-phone > .ta-list-head { padding-left: calc(6px + env(safe-area-inset-left)); padding-right: calc(6px + env(safe-area-inset-right)); }\n.ta-settings-phone .ta-list-content { gap: 20px; padding-left: calc(12px + env(safe-area-inset-left)); padding-right: calc(12px + env(safe-area-inset-right)); }\n.ta-settings-phone .ta-settings-search { flex: none; max-width: none; height: 38px; margin: 0; padding: 0 10px; border-radius: 10px; border-color: var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-settings-phone-group { display: flex; flex-direction: column; gap: 6px; }\n.ta-settings-phone-caption { margin: 0 4px; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-settings-phone .ta-setting-card { border-radius: 12px; border-color: var(--ta-border-muted); background: var(--ta-list-cell); }\n.ta-settings-phone .ta-setting-row { min-height: 52px; padding: 12px 16px; gap: 12px; }\n.ta-settings-phone .ta-setting-row:not(.ta-stacked) > .ta-setting-text { flex: 1 1 0; }\n.ta-settings-phone .ta-setting-label { font-size: calc(15px * var(--ta-font-scale)); font-weight: 400; }\n.ta-settings-phone .ta-setting-description { margin-top: 2px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-settings-phone .ta-setting-row.ta-stacked { gap: 10px; }\n.ta-settings-phone .ta-segmented button { height: 32px; }\n.ta-setting-choice { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.ta-setting-choice:active { background: var(--ta-hover); }\n.ta-setting-check { flex: none; color: var(--ta-text); }\n.ta-setting-range { width: 140px; margin: 0; accent-color: var(--ta-accent); cursor: pointer; }\n.ta-setting-range-value { min-width: 3em; text-align: right; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); font-variant-numeric: tabular-nums; }\n.ta-settings-phone .ta-setting-range { flex: 1; width: auto; min-width: 0; }\n.ta-settings-phone .ta-settings-note { border-radius: 12px; }\n.ta-keys { display: inline-flex; gap: 3px; flex: none; }\n.ta-kbd { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 5px; border: 1px solid var(--ta-border); border-bottom-width: 2px; background: var(--ta-raised); font: 500 calc(11px * var(--ta-font-scale)) var(--ta-sans); color: var(--ta-secondary); }\n\n/* The menus of the account at the foot of the rail */\n.ta-account-menu .ta-account-item { width: 100%; }\n.ta-account-menu .ta-account-item.ta-on { background: var(--ta-hover); }\n.ta-account-menu .ta-account-item:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-menu-chevron { color: var(--ta-muted) !important; }\n.ta-menu-check { width: 15px; flex: none; display: grid; place-items: center; color: var(--ta-text); }\n.ta-account-menu .ta-kbd { height: 18px; min-width: 18px; font-size: calc(10.5px * var(--ta-font-scale)); }\n.ta-submenu-anchor { position: relative; }\n/* The account menu sits at the foot of the window: a second menu grows up from its entry, or the last choices would fall below it. */\n.ta-submenu { left: calc(100% + 8px); top: auto; bottom: -6px; width: 180px; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-settings-toc { display: none; }\n .ta-settings-content { padding: 14px 14px calc(32px + env(safe-area-inset-bottom)); }\n /* No table of contents: the last section, jumped to from the menu of the account, still scrolls to the top. */\n .ta-settings-scroll { container-type: size; }\n .ta-settings-part:last-child > .ta-setting-section:last-child { min-height: calc(100cqh - 48px - env(safe-area-inset-bottom)); }\n .ta-settings-title { padding-left: 0; }\n .ta-settings-search { margin: 0; }\n .ta-setting-row:has(.ta-select, .ta-setting-input, .ta-model-field, .ta-setting-range) .ta-setting-control { width: 100%; }\n .ta-setting-row .ta-select, .ta-setting-row .ta-setting-input, .ta-setting-row .ta-model-field { flex: 1; width: auto; min-width: 0; }\n .ta-setting-reset { opacity: 1 !important; }\n .ta-submenu { left: 12px; right: auto; top: auto; bottom: calc(100% + 4px); width: 200px; }\n}\n/* Discover and Me: rows in rounded groups, as the settings of a phone (list-rows.tsx) */\n.ta-list-page { flex: 1; min-height: 0; display: flex; flex-direction: column; --ta-list-bg: var(--ta-main); --ta-list-cell: var(--ta-side); background: var(--ta-list-bg); }\n:root[data-theme='light'] .ta-list-page { --ta-list-bg: var(--ta-side); --ta-list-cell: var(--ta-card); }\n.ta-list-head { border-bottom: 1px solid var(--ta-border-muted); }\n.ta-list-scroll { flex: 1; min-height: 0; overflow-y: auto; }\n.ta-list-content { max-width: var(--ta-page-width); margin: 0 auto; padding: 20px 20px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }\n.ta-list-group { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); overflow: hidden; }\n.ta-list-row { position: relative; display: flex; align-items: center; min-height: 48px; }\n.ta-list-row + .ta-list-row::before { content: ''; position: absolute; top: 0; right: 0; left: 46px; height: 1px; background: var(--ta-border-muted); }\n.ta-list-main { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 0; background: none; text-align: left; font-size: calc(14.5px * var(--ta-font-scale)); color: var(--ta-text); transition: background 120ms; }\n.ta-list-main:hover { background: var(--ta-hover); }\n.ta-list-main:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-list-icon { flex: none; color: var(--ta-secondary); }\n.ta-list-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-list-detail { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-list-chevron { flex: none; color: var(--ta-muted); }\n/* In place of the chevron while the page opens: as wide. */\n.ta-list-busy { margin: 0 1.5px; }\n.ta-list-trailing { flex: none; margin-right: 8px; color: var(--ta-muted); }\n/* WebView.mark of a page under Discover: before its pin, as WeChat shows who posted last by Moments. */\n.ta-list-mark { flex: none; display: inline-flex; align-items: center; margin-right: 2px; pointer-events: none; }\n.ta-list-row.ta-action .ta-list-main { justify-content: center; }\n.ta-list-row.ta-action .ta-list-label { flex: none; }\n.ta-list-row.ta-danger .ta-list-main { color: var(--ta-red); }\n.ta-list-row.ta-danger + .ta-list-row::before, .ta-list-row + .ta-list-row.ta-danger::before { left: 0; }\n.ta-list-hint { margin: -6px 4px 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-me-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 16px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; text-align: left; color: inherit; transition: background 120ms; }\n.ta-me-card:hover, .ta-me-card:active { background: var(--ta-hover); }\n.ta-me-card:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-account-figure.ta-me-figure { border-radius: 16px; }\n.ta-me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }\n.ta-me-name { font-size: calc(18px * var(--ta-font-scale)); font-weight: 650; color: var(--ta-text); }\n.ta-me-host { font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-me-state { display: flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* The computers of this device (host-view.tsx): rows as the conversations, a sheet from the bottom on a phone */\n.ta-hosts-dialog { width: min(420px, 100%); gap: 12px; }\n.ta-hosts-dialog .ta-modal-title { font-size: calc(16px * var(--ta-font-scale)); }\n.ta-host-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-host-row { border-radius: 12px; --ta-swipe-bg: var(--ta-card); }\n.ta-host-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 12px; background: var(--ta-card); font: inherit; text-align: left; color: var(--ta-text); transition: background 120ms; }\n.ta-host-item:hover, .ta-host-item:active { background: var(--ta-hover); }\n.ta-host-row.ta-selected .ta-host-item { background: var(--ta-selected); }\n.ta-host-item:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-host-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }\n.ta-host-name { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; }\n.ta-host-detail { font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-host-check { flex: none; color: var(--ta-green); }\n.ta-host-actions { display: flex; gap: 8px; }\n.ta-host-actions .ta-button { flex: 1; height: 40px; justify-content: center; gap: 6px; }\n.ta-host-form { display: flex; gap: 8px; width: 100%; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-host-form .ta-field { flex: 1; height: 40px; }\n.ta-host-form .ta-button { height: 40px; min-width: 72px; justify-content: center; }\n.ta-scan-button { height: 46px; gap: 8px; font-size: calc(15px * var(--ta-font-scale)); justify-content: center; }\n.ta-link-button { padding: 4px 8px; border: 0; background: none; font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-link-button:hover { color: var(--ta-text); }\n.ta-sign-in-or { width: 100%; }\n.ta-cloud-other { align-self: center; margin-top: 2px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-cloud-entry { height: 42px; gap: 8px; font-size: calc(14.5px * var(--ta-font-scale)); }\n.ta-cloud-flow { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-cloud-flow h1 { margin: 4px 0 0; font-size: calc(20px * var(--ta-font-scale)); font-weight: 650; }\n.ta-cloud-flow p { margin: 0 0 4px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-cloud-back { position: absolute; top: -6px; left: -8px; }\n.ta-cloud-top { position: fixed; z-index: 5; top: calc(8px + env(safe-area-inset-top)); left: calc(8px + env(safe-area-inset-left)); }\n.ta-cloud-top .ta-cloud-back { position: static; width: 40px; height: 40px; }\n.ta-cloud-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }\n.ta-cloud-form .ta-field { height: 42px; }\n.ta-cloud-form .ta-button { height: 42px; font-size: calc(14.5px * var(--ta-font-scale)); }\n.ta-cloud-code { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0; border-radius: 14px; background: var(--ta-hover); font-family: var(--ta-mono); font-size: calc(28px * var(--ta-font-scale)); font-weight: 600; letter-spacing: 0.16em; font-variant-numeric: tabular-nums; color: var(--ta-text); user-select: all; }\n.ta-cloud-code > span:not(.ta-cloud-code-dash) { margin-right: -0.16em; }\n.ta-cloud-code-dash { width: 12px; height: 2px; border-radius: 1px; background: var(--ta-muted); }\n.ta-cloud-status { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 24px; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-cloud-status-wait { color: var(--ta-text); }\n.ta-hosts-dialog .ta-cloud-flow { padding-top: 30px; }\n.ta-cloud-flow > .ta-callout, .ta-cloud-reach { width: 100%; }\n.ta-device-card { gap: 14px; }\n.ta-device-card .ta-sign-in-accounts { margin-top: 2px; }\n.ta-device-card .ta-sign-in-account { height: 44px; }\n.ta-device-ask { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--ta-hover); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-device-ask svg { flex: none; color: var(--ta-secondary); }\n.ta-device-mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; }\n.ta-device-ok { color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 14%, transparent); }\n.ta-device-wait { color: var(--ta-yellow); background: color-mix(in srgb, var(--ta-yellow) 14%, transparent); }\n.ta-device-bad { color: var(--ta-red); background: color-mix(in srgb, var(--ta-red) 12%, transparent); }\n.ta-device-quiet { color: var(--ta-muted); background: var(--ta-hover); }\n.ta-host-saved { width: 100%; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; animation: ta-in 260ms var(--ta-ease) both; }\n.ta-host-saved h2 { margin: 0 4px; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.ta-signin .ta-host-item { background: var(--ta-main); }\n.ta-signin .ta-host-item:hover, .ta-signin .ta-host-item:active { background: var(--ta-hover); }\n.ta-sign-in-accounts { display: flex; flex-direction: column; gap: 8px; width: 100%; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-sign-in-account { height: 42px; gap: 8px; text-decoration: none; font-size: calc(14.5px * var(--ta-font-scale)); }\n.ta-sign-in-account:hover { background: var(--ta-hover); }\n.ta-sign-in-account[aria-busy='true'] { pointer-events: none; opacity: 0.7; }\n.ta-sign-in-mark { flex: none; }\n.ta-sign-in-or { display: flex; align-items: center; gap: 10px; margin: 4px 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-sign-in-or::before, .ta-sign-in-or::after { content: ''; flex: 1; height: 1px; background: var(--ta-border); }\n.ta-access-account { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }\n.ta-access-avatar { width: 22px; height: 22px; flex: none; border-radius: 50%; object-fit: cover; }\n.ta-access-avatar.ta-chat-avatar { font-size: calc(11px * var(--ta-font-scale)); }\n.ta-access-bind { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-sign-in-name { display: inline-flex; align-items: center; gap: 6px; }\n.ta-sign-in-callbacks { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; }\n.ta-sign-in-callback { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--ta-hover); }\n.ta-sign-in-callback code { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-sign-in-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }\n.ta-sign-in-field { display: flex; flex-direction: column; gap: 4px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-sign-in-field .ta-input { height: 32px; }\n.ta-sign-in-actions { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-environment-chooser { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }\n.ta-environment-own { display: flex; flex-direction: column; gap: 8px; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-environment-own .ta-button { align-self: flex-end; }\n.ta-deploy-cloud { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; align-items: flex-start; }\n.ta-deploy-cloud > .ta-environment-own { flex-basis: 100%; }\n.ta-environment-hint { margin: 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.ta-environment-card { gap: 14px; }\n/* While the page loads again for another computer: which one, at once, over all. */\n.ta-switching { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ta-main); color: var(--ta-secondary); font-size: calc(14px * var(--ta-font-scale)); animation: ta-fade 140ms ease-out both; }\n.ta-switching.ta-veil-leaving { opacity: 0; pointer-events: none; transition: opacity 220ms ease-out; }\n/* Me has no head: the card under the status bar. */\n.ta-me .ta-list-content { padding-top: calc(20px + env(safe-area-inset-top)); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-list-content { padding: 14px 12px calc(24px + env(safe-area-inset-bottom)); }\n .ta-me .ta-list-content { padding-top: calc(14px + env(safe-area-inset-top)); }\n}\n\n/* Streaming: what comes in fades in where it will stay; nothing already shown moves or draws again. */\n.ta-thread-new { animation: ta-in 220ms var(--ta-ease); }\n/* Words ta said on the way move from the reply into the steps when a tool follows them: they were on the screen, so they do not fade in again. */\n.ta-turn-live > .ta-markdown > *, .ta-process-active .ta-process-steps > :not(.ta-step-more, .ta-step-text), .ta-turn-live .ta-turn-head > .ta-process-head, .ta-turn-live .ta-turn-head > .ta-run-status { animation: ta-fade 240ms ease-out; }\n.ta-run-line { animation: ta-fade 200ms ease-out; }\n.ta-scroll { overflow-anchor: none; }\n/* The scroll bar held while a reply comes in: the thread keeps its height (ConversationScroller), what grows past it waits. */\n.ta-scroll-held { overflow-y: clip; }\n.ta-scroll-held > * { flex-shrink: 0; }\n/* The look of the double: it walks above, the kinds of dinosaur below, then the ways it walks */\n.ta-picture { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }\n.ta-picture-hint { margin: 0; max-width: 300px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; }\n.ta-picture-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }\n.ta-picture-actions > .ta-button { height: 40px; }\n.ta-picture-actions > .ta-input { height: 40px; }\n/* The profile (profile-view.tsx): the picture, the name, then its rows */\n.ta-profile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 2px; }\n.ta-profile-picture { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; }\n.ta-profile-name { max-width: 100%; margin-bottom: 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-profile .ta-list-group { width: 100%; text-align: left; }\n.ta-profile-hint { margin: 0; max-width: 320px; text-align: center; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.ta-look { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }\n.ta-look-stage { height: 120px; flex: none; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }\n.ta-look-figure, .ta-look-walk { border-radius: 12px; background: var(--ta-raised); display: grid; place-items: center; }\n/* Wide enough for the walk to and fro (half the width of the dinosaur to either side of the middle, and itself). */\n.ta-look-walk { min-width: 220px; overflow: hidden; }\n.ta-look-label { font-size: calc(12px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-look-kinds { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }\n.ta-look-kind { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 7px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: transparent; color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); transition: background 120ms, border-color 120ms; }\n.ta-look-kind:hover { background: var(--ta-hover); }\n.ta-look-kind.ta-on { border-color: var(--ta-green); background: color-mix(in srgb, var(--ta-green) 8%, transparent); }\n.ta-look-name { max-width: 100%; }\n/* The voice replies are read with: its list, and a button to listen to it. */\n.ta-voice-picker { display: flex; align-items: center; gap: 8px; width: 100%; }\n.ta-voice-picker .ta-select { flex: 1; min-width: 0; }\n.ta-voice-picker .ta-button { flex: none; }\n.ta-look-premium { position: absolute; top: 4px; left: 4px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 5px; border-radius: 8px; background: linear-gradient(135deg, #FCD866, #D98E14); color: #4a2c00; font-size: calc(10px * var(--ta-font-scale)); font-weight: 600; line-height: calc(14px * var(--ta-font-scale)); }\n/* Scan, as WeChat's: the camera over everything, a green glow sweeping down, round buttons on it; a photo for Ta asks on a sheet. */\n.ta-scan { position: fixed; inset: 0; z-index: 55; overflow: hidden; background: #000; color: #fff; animation: ta-fade 160ms ease-out; -webkit-user-select: none; user-select: none; }\n.ta-scan-video, .ta-scan-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }\n.ta-scan-mirrored { transform: scaleX(-1); }\n.ta-scan-line { position: absolute; left: 0; right: 0; top: 16%; height: 22%; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ta-green) 40%, transparent) 88%, color-mix(in srgb, var(--ta-green) 90%, transparent) 100%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 60% 100% at 50% 100%, #000 30%, transparent 100%); animation: ta-scan-sweep 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; }\n@keyframes ta-scan-sweep { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(220%); opacity: 0; } }\n.ta-scan-dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #fff; background: var(--ta-green); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); animation: ta-scan-pop 260ms var(--ta-ease) both; }\n@keyframes ta-scan-pop { from { transform: scale(0.3); opacity: 0; } }\n.ta-scan-problem { position: absolute; top: 42%; left: 32px; right: 32px; margin: 0; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: calc(15px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); }\n.ta-scan-top { position: absolute; top: calc(env(safe-area-inset-top) + 14px); left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }\n.ta-scan-round { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.32); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }\n.ta-scan-bottom { position: absolute; left: 18px; right: 18px; bottom: calc(env(safe-area-inset-bottom) + 28px); display: flex; align-items: center; gap: 12px; }\n.ta-scan-side, .ta-scan-ask { border: 0; color: #fff; background: rgba(48, 48, 48, 0.58); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transition: transform 120ms, background 120ms; }\n.ta-scan-side { flex: none; width: 62px; height: 62px; display: grid; place-items: center; padding: 0; border-radius: 50%; }\n.ta-scan-ask { flex: 1; min-width: 0; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 14px; border-radius: 31px; }\n.ta-scan-side:active, .ta-scan-ask:active { transform: scale(0.96); background: rgba(70, 70, 70, 0.66); }\n.ta-scan-side:disabled, .ta-scan-ask:disabled { opacity: 0.45; }\n.ta-scan-side.ta-scan-blank { visibility: hidden; }\n.ta-scan-toast { left: 50%; right: auto; width: max-content; max-width: calc(100% - 64px); padding: 8px 16px; border-radius: 18px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.6); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: ta-fade 160ms ease-out; }\n.ta-scan-instructions { flex: 1; min-width: 0; margin: 0; text-align: center; text-wrap: balance; color: rgba(255, 255, 255, 0.85); font-size: calc(15px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }\n.ta-scan-ask-title { display: flex; align-items: center; gap: 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; line-height: calc(24px * var(--ta-font-scale)); }\n.ta-scan-ask-hint { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, 0.62); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.ta-scan-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--ta-card); color: var(--ta-text); box-shadow: var(--ta-shadow-pop); animation: ta-in 220ms var(--ta-ease); }\n:root[data-keyboard] .ta-scan-sheet { bottom: var(--ta-keyboard, 0px); padding-bottom: 12px; }\n.ta-scan-sheet-title { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.ta-scan-chips { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-scan-chip { padding: 8px 14px; border: 1px solid var(--ta-border); border-radius: 999px; background: var(--ta-main); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); }\n.ta-scan-chip:active { background: var(--ta-hover); }\n.ta-scan-field { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border: 1px solid var(--ta-border); border-radius: 22px; background: var(--ta-main); }\n.ta-scan-field input { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: transparent; color: var(--ta-text); font-size: max(16px, calc(15px * var(--ta-font-scale))); }\n.ta-scan-send { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--ta-text); color: var(--ta-main); }\n.ta-scan-send:disabled { opacity: 0.5; }\n/* A model service added by its address and key (custom-provider-view) */\n.ta-custom-flow { flex: 1 1 auto; min-height: 0; }\n.ta-custom-form { display: flex; flex-direction: column; gap: 12px; min-height: 0; margin: 0 -4px; padding: 0 4px; overflow-y: auto; }\n.ta-custom-form .ta-select { width: 100%; height: 32px; }\n.ta-custom-models { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; box-sizing: border-box; padding: 4px 6px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-input); transition: border-color 120ms; }\n.ta-custom-models:focus-within { border-color: var(--ta-border-focus); }\n.ta-custom-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; height: 24px; padding: 0 2px 0 8px; border-radius: 6px; background: var(--ta-raised); color: var(--ta-text); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); animation: ta-in 160ms var(--ta-ease) both; }\n.ta-custom-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-custom-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ta-muted); cursor: pointer; }\n.ta-custom-chip button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-custom-model-input { flex: 1; min-width: 140px; height: 26px; border: 0; outline: none; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-custom-fetch { align-self: flex-start; margin-top: 2px; }\n.ta-custom-fetched { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }\n.ta-custom-fetched .ta-auth-note { white-space: normal; }\n.ta-custom-fetched .ta-input { height: 32px; }\n.ta-custom-fetched-list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; padding: 2px; border: 1px solid var(--ta-border-muted); border-radius: 8px; }\n.ta-custom-fetched-list .ta-auth-item { height: 32px; flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-custom-fetched-list .ta-auth-item > .ta-custom-picked { margin-left: auto; color: var(--ta-accent); }\n.ta-custom-actions { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; background: var(--ta-card); }\n.ta-custom-actions .ta-danger { margin-right: auto; }\n.ta-custom-add > .ta-icon:first-child { color: var(--ta-accent); }\n.ta-custom-add { width: 100%; }\n.ta-custom-advanced { border: 1px solid var(--ta-border-muted); border-radius: 10px; }\n.ta-custom-advanced-toggle { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; cursor: pointer; }\n.ta-custom-advanced-toggle:hover { background: var(--ta-hover); }\n.ta-custom-advanced-toggle .ta-auth-note { font-weight: 400; }\n.ta-custom-advanced-toggle > .ta-icon { margin-left: auto; color: var(--ta-muted); transition: transform 160ms var(--ta-ease); }\n.ta-custom-advanced.ta-open .ta-custom-advanced-toggle > .ta-icon { transform: rotate(180deg); }\n.ta-custom-advanced-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 10px 12px; animation: ta-in 200ms var(--ta-ease) both; }\n.ta-custom-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }\n.ta-custom-check { display: flex; align-items: center; gap: 8px; min-height: 28px; color: var(--ta-body); font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; }\n.ta-custom-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ta-accent); }\n.ta-custom-header { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 28px; gap: 6px; align-items: center; }\n.ta-custom-header .ta-input { height: 32px; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-custom-header-remove { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); cursor: pointer; }\n.ta-custom-header-remove:hover { background: var(--ta-hover); color: var(--ta-text); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-custom-form .ta-input, .ta-custom-model-input { font-size: max(16px, calc(14px * var(--ta-font-scale))); }\n .ta-custom-actions .ta-button { flex: 1; }\n}\n/* The console of a gateway (gateway/console-*.tsx): sections of a title over a card, rows parted by lines. */\n.ta-console-content { gap: 20px; }\n.ta-console-content > .ta-segmented { align-self: stretch; }\n.ta-console-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }\n.ta-console-section { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; padding: 0 4px; }\n.ta-console-section-title { margin: 0; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-console-section .ta-icon-button { width: 26px; height: 26px; }\n.ta-console-hint { margin: 0 4px; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); }\n.ta-console-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); overflow: hidden; }\n.ta-console-card > * + *::before { content: ''; position: absolute; top: 0; right: 0; left: 14px; height: 1px; background: var(--ta-border-muted); }\n.ta-console-card > * { position: relative; }\n.ta-console-panel { gap: 12px; padding: 14px; }\n.ta-console-panel > * + *::before { display: none; }\n.ta-console-empty { margin: 0; padding: 14px; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-entry { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 9px 14px; border: 0; background: none; font: inherit; color: var(--ta-text); text-align: left; }\n.ta-console-press { cursor: pointer; transition: background 120ms; }\n.ta-console-press:hover { background: var(--ta-hover); }\n.ta-console-press:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-console-entry-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-console-entry-label { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; }\n.ta-console-entry-hint { font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.45; color: var(--ta-muted); }\n.ta-console-tile { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-console-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n.ta-console-chevron { flex: none; color: var(--ta-muted); transition: transform 160ms var(--ta-ease); }\n.ta-console-chevron.ta-open { transform: rotate(90deg); }\n.ta-console-line { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-console-line-detail { flex: 1; min-width: 0; color: var(--ta-muted); }\n.ta-console-time { flex: none; margin-left: auto; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-console-muted { color: var(--ta-muted); }\n.ta-console-mono { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-console-audit-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-console-audit-text strong { font-weight: 500; }\n.ta-console-fact { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 8px 14px; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-console-fact > :first-child { flex: none; color: var(--ta-muted); }\n.ta-console-fact > :last-child { min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }\n/* Numbers side by side: one card, parted by lines, as many columns as numbers (two rows of two on a phone). */\n.ta-console-stats { display: grid; grid-template-columns: repeat(var(--ta-console-stats, 4), minmax(0, 1fr)); border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); overflow: hidden; }\n.ta-console-stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 14px 16px; border: 0; background: none; font: inherit; color: inherit; text-align: left; }\n.ta-console-stat + .ta-console-stat { box-shadow: inset 1px 0 var(--ta-border-muted); }\nbutton.ta-console-stat { cursor: pointer; transition: background 120ms; }\nbutton.ta-console-stat:hover { background: var(--ta-hover); }\n.ta-console-stat-value { font-size: calc(24px * var(--ta-font-scale)); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }\n.ta-console-stat-value.ta-good { color: var(--ta-green); }\n.ta-console-stat-value.ta-warn { color: var(--ta-yellow); }\n.ta-console-stat-value.ta-bad { color: var(--ta-red); }\n.ta-console-stat-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }\n/* Faces: the account's avatar, a dot on it while its Ta runs, starts or failed. */\n.ta-console-face { position: relative; flex: none; display: inline-flex; }\n.ta-console-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }\n.ta-console-avatar.ta-chat-avatar { font-size: 15px; }\n.ta-console-avatar-large { width: 56px; height: 56px; }\n.ta-console-avatar-large.ta-chat-avatar { font-size: 22px; }\n.ta-console-face > .ta-console-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; box-sizing: border-box; border: 2px solid var(--ta-list-cell); }\n.ta-console-face.ta-large > .ta-console-dot { right: 1px; bottom: 1px; width: 15px; height: 15px; border-width: 3px; border-color: var(--ta-list-bg); }\n.ta-console-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-border-field); }\n.ta-console-dot.ta-console-running { background: var(--ta-green); }\n.ta-console-dot.ta-console-starting { background: var(--ta-blue); animation: ta-console-pulse 1.2s ease-in-out infinite; }\n.ta-console-dot.ta-console-failed { background: var(--ta-red); }\n.ta-console-dot.ta-console-agent-working { background: var(--ta-green); animation: ta-console-pulse 1.2s ease-in-out infinite; }\n.ta-console-dot.ta-console-agent-waiting, .ta-console-dot.ta-console-agent-asking { background: var(--ta-blue); }\n@keyframes ta-console-pulse { 50% { opacity: 0.35; } }\n.ta-console-chip { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); }\n.ta-console-chip-warn { background: color-mix(in srgb, var(--ta-yellow) 18%, transparent); color: var(--ta-yellow); }\n.ta-console-role-owner { background: color-mix(in srgb, var(--ta-blue) 16%, transparent); color: var(--ta-blue); }\n.ta-console-role-admin { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n/* Bars and meters */\n.ta-console-bar { display: block; height: 6px; border-radius: 3px; background: var(--ta-chip); overflow: hidden; }\n.ta-console-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ta-green); transition: width 300ms var(--ta-ease); }\n.ta-console-bar > span.ta-warm { background: var(--ta-yellow); }\n.ta-console-bar > span.ta-high { background: var(--ta-red); }\n.ta-console-bar > span.ta-part { background: var(--ta-blue); }\n.ta-console-bar-small { width: 56px; height: 4px; }\n.ta-console-meter { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; }\n.ta-console-meter-text { display: flex; justify-content: space-between; gap: 12px; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-console-meter-value { font-variant-numeric: tabular-nums; color: var(--ta-secondary); text-align: right; }\n.ta-console-meter-hint { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n/* A value on the right of a row that opens a menu of what it may be. */\n.ta-console-value { flex: none; max-width: 55%; display: inline-flex; align-items: center; gap: 4px; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; color: var(--ta-text); }\n.ta-console-value.ta-muted { color: var(--ta-muted); }\n.ta-console-pick { position: relative; height: 30px; margin-right: -8px; padding: 0 8px 0 10px; border: 0; border-radius: 8px; background: none; font: inherit; cursor: pointer; }\n.ta-console-pick:hover { background: var(--ta-hover); }\n.ta-console-pick > svg { flex: none; color: var(--ta-muted); }\n/* The person at the head of an account, and what can be done to it: tiles side by side, as the actions of a contact. */\n.ta-console-person { display: flex; align-items: center; gap: 14px; padding: 2px 4px; }\n.ta-console-person-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-console-person-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: calc(18px * var(--ta-font-scale)); font-weight: 600; }\n.ta-console-actions { display: grid; grid-template-columns: repeat(var(--ta-console-actions, 4), minmax(0, 1fr)); gap: 8px; }\n.ta-console-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 64px; padding: 0 6px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); cursor: pointer; transition: background 120ms; }\n.ta-console-action:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-console-action:disabled { opacity: 0.45; cursor: default; }\n.ta-console-action.ta-danger { color: var(--ta-red); }\n.ta-console-action-icon { position: relative; display: grid; place-items: center; color: var(--ta-secondary); }\n.ta-console-action.ta-danger .ta-console-action-icon { color: inherit; }\n.ta-console-action.ta-busy .ta-console-action-icon > svg { visibility: hidden; }\n/* Accounts: search and invite in a row, filters and sort under them. */\n.ta-console-toolbar { display: flex; gap: 8px; }\n.ta-console-search { flex: 1; }\n.ta-console-toolbar .ta-button { height: 36px; flex: none; }\n.ta-console-filters { display: flex; align-items: center; gap: 8px; margin-top: -8px; }\n.ta-console-chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }\n.ta-console-chips::-webkit-scrollbar { display: none; }\n.ta-console-chip-toggle { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); cursor: pointer; }\n.ta-console-chip-toggle:hover { color: var(--ta-text); }\n.ta-console-chip-toggle.ta-on { border-color: transparent; background: var(--ta-text); color: var(--ta-list-bg); font-weight: 500; }\n.ta-console-chip-count { font-variant-numeric: tabular-nums; opacity: 0.6; }\n.ta-console-sort { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); cursor: pointer; }\n.ta-console-sort:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-console-sort-mark { transform: rotate(90deg); color: var(--ta-muted); }\n.ta-console-invite { gap: 8px; padding: 14px; }\n.ta-console-invite > * + *::before { display: none; }\n.ta-console-link { padding: 8px 10px; border-radius: 8px; background: var(--ta-code); word-break: break-all; user-select: all; }\n.ta-console-buttons { display: flex; justify-content: flex-end; gap: 8px; }\n.ta-console-command { min-height: 48px; gap: 10px; color: var(--ta-text); }\n.ta-console-command > svg { flex: none; color: var(--ta-secondary); }\n.ta-console-command.ta-danger, .ta-console-command.ta-danger > svg { color: var(--ta-red); }\n.ta-console-command:disabled { opacity: 0.45; cursor: default; }\n.ta-console-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-console-copy > code { flex: 1; min-width: 0; }\n/* Agents and what they did */\n.ta-console-item { position: relative; }\n.ta-console-activity { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 12px 33px; }\n.ta-console-activity-summary { padding-bottom: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-activity-empty { margin: 0; padding: 0 14px 12px 33px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-activity-row { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-console-activity-error { flex: 1; min-width: 0; color: var(--ta-red); }\n.ta-console-logs { margin: 0; max-height: 420px; overflow: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: pre-wrap; word-break: break-all; }\n.ta-console-hosts { width: 100%; min-height: 84px; padding: 8px 10px; resize: vertical; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n/* Usage over time */\n.ta-console-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }\n.ta-console-card-controls { display: flex; gap: 8px; flex-wrap: wrap; }\n.ta-console-card-controls .ta-segmented button { padding: 0 10px; white-space: nowrap; }\n.ta-console-total { display: flex; flex-direction: column; gap: 2px; }\n.ta-console-total strong { font-size: calc(24px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }\n.ta-console-total span, .ta-console-card-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-card-label { margin-top: 4px; }\n.ta-console-chart { display: flex; flex-direction: column; gap: 4px; }\n.ta-console-chart svg { width: 100%; height: 120px; display: block; overflow: visible; }\n.ta-console-chart-wait { display: flex; flex-direction: column; height: 160px; }\n.ta-console-chart-hover { display: flex; align-items: baseline; gap: 8px; min-height: 20px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-console-chart-hover strong { color: var(--ta-text); font-weight: 600; }\n.ta-console-chart-bar { fill: color-mix(in srgb, var(--ta-green) 55%, transparent); transition: fill 120ms; }\n.ta-console-chart-bar.ta-on { fill: var(--ta-green); }\n.ta-console-chart-axis { stroke: var(--ta-border-muted); stroke-width: 1; }\n.ta-console-chart-ticks { display: flex; justify-content: space-between; font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-shares { display: flex; flex-direction: column; gap: 6px; }\n.ta-console-share { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px; align-items: center; gap: 10px; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-console-share .ta-console-bar-small { width: 100%; }\n.ta-console-share-label { min-width: 0; }\n.ta-console-share-button { padding: 2px 4px; margin: 0 -4px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }\n.ta-console-share-button:hover { background: var(--ta-hover); }\n.ta-console-share-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n.ta-console-foot { margin: 4px 0 0; text-align: center; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console .ta-phone-stack-top { background: var(--ta-list-bg); }\n.ta-setting-row .ta-console-card { width: 100%; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-console-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .ta-console-stat:nth-child(odd) { box-shadow: none; }\n .ta-console-stat:nth-child(n + 3) { border-top: 1px solid var(--ta-border-muted); }\n .ta-console-stat:nth-child(even) { box-shadow: inset 1px 0 var(--ta-border-muted); }\n .ta-console-actions { grid-template-columns: repeat(min(var(--ta-console-actions, 4), 4), minmax(0, 1fr)); }\n .ta-console-share { grid-template-columns: minmax(0, 1fr) 64px 56px; }\n .ta-console-card-controls { width: 100%; display: grid; grid-template-columns: 2fr 3fr; }\n .ta-console-card-controls .ta-segmented button { padding: 0 4px; }\n .ta-console-entry { min-height: 56px; }\n .ta-console-entry-label { font-size: calc(15px * var(--ta-font-scale)); }\n}\n";
@@ -227,6 +227,12 @@ export const PAGES_STYLE = `
227
227
  .ta-picture-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
228
228
  .ta-picture-actions > .ta-button { height: 40px; }
229
229
  .ta-picture-actions > .ta-input { height: 40px; }
230
+ /* The profile (profile-view.tsx): the picture, the name, then its rows */
231
+ .ta-profile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 2px; }
232
+ .ta-profile-picture { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; }
233
+ .ta-profile-name { max-width: 100%; margin-bottom: 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }
234
+ .ta-profile .ta-list-group { width: 100%; text-align: left; }
235
+ .ta-profile-hint { margin: 0; max-width: 320px; text-align: center; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }
230
236
  .ta-look { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
231
237
  .ta-look-stage { height: 120px; flex: none; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
232
238
  .ta-look-figure, .ta-look-walk { border-radius: 12px; background: var(--ta-raised); display: grid; place-items: center; }
@@ -6,6 +6,14 @@
6
6
  export declare namespace TurnEnd {
7
7
  /** How many letters and digits it holds, a filler alone (a breath, "嗯嗯", "uh-huh") counting none. */
8
8
  function words(text: string): number;
9
+ /** What sounds alone say: the user thinks (a hesitation, an opener) or agrees (a backchannel). */
10
+ type Sounds = 'hesitation' | 'backchannel';
11
+ /**
12
+ * Whether what was said holds sounds alone and no words yet ("哎", "嗯,那个", "uh-huh"): a hesitation when any of
13
+ * them is of someone who thinks, else a backchannel; undefined when it holds words, or nothing, or asks ("啊?",
14
+ * "and then?").
15
+ */
16
+ function sounds(text: string): Sounds | undefined;
9
17
  /** It ends as a sentence does: a full stop, a question or an exclamation mark. */
10
18
  function ended(text: string): boolean;
11
19
  /** It ends on a word that leads on, a comma or an ellipsis: the user is still to say more. */
@@ -5,42 +5,46 @@
5
5
  */
6
6
  export var TurnEnd;
7
7
  (function (TurnEnd) {
8
+ /** Sounds of someone who thinks, alone in a sentence: no words, and the user is to say more. */
9
+ const HESITATIONS = ['呃', '额', '啊', '哎', '诶', '欸', '唔', 'えっと', 'えーと', 'あの', 'あのー', 'um', 'umm', 'uh', 'uhh', 'er', 'erm', 'hmm', 'ah'];
10
+ /** Sounds of someone who listens or agrees, alone in a sentence: no words, though they may be an answer ("嗯"). */
11
+ const BACKCHANNELS = ['嗯', '嗯嗯', '哦', '噢', '哦哦', '对对', '对对对', '好好', 'うん', 'ええ', 'はい', 'mm', 'mhm', 'uh-huh', 'oh'];
8
12
  /** Sounds of someone who thinks or listens, alone in a sentence: no words. */
9
- const FILLERS = [
10
- '嗯',
11
- '呃',
12
- '额',
13
- '啊',
14
- '哦',
15
- '噢',
16
- '唔',
17
- '哎',
18
- '诶',
19
- '欸',
20
- '嗯嗯',
21
- '哦哦',
22
- '对对',
23
- '对对对',
24
- '好好',
25
- 'えっと',
26
- 'えーと',
27
- 'あの',
28
- 'あのー',
29
- 'うん',
30
- 'ええ',
31
- 'はい',
32
- 'um',
33
- 'umm',
34
- 'uh',
35
- 'uhh',
36
- 'er',
37
- 'erm',
38
- 'hmm',
39
- 'mm',
40
- 'mhm',
41
- 'uh-huh',
42
- 'ah',
43
- 'oh',
13
+ const FILLERS = [...HESITATIONS, ...BACKCHANNELS];
14
+ /** Words one begins with while thinking ("那个…", "就是…"): alone, nothing is said yet. */
15
+ const OPENERS = [
16
+ '那个',
17
+ '这个',
18
+ '就是',
19
+ '然后',
20
+ '还有',
21
+ '而且',
22
+ '但是',
23
+ '可是',
24
+ '不过',
25
+ '因为',
26
+ '所以',
27
+ '如果',
28
+ '或者',
29
+ '比如',
30
+ '那',
31
+ '就',
32
+ '那個',
33
+ '這個',
34
+ '還有',
35
+ '因為',
36
+ '比如說',
37
+ 'それから',
38
+ 'でも',
39
+ 'だから',
40
+ 'けど',
41
+ 'あと',
42
+ 'and',
43
+ 'but',
44
+ 'so',
45
+ 'because',
46
+ 'like',
47
+ 'then',
44
48
  ];
45
49
  /** Words at the end of what was said that lead on to more: the user is not done. */
46
50
  const LEADING = [
@@ -119,6 +123,45 @@ export var TurnEnd;
119
123
  return FILLERS.some(filler => bare(filler) === letters) ? 0 : letters.length;
120
124
  }
121
125
  TurnEnd.words = words;
126
+ /** The sounds of the list, by their letters, longest first: a sentence of them is taken apart greedily. */
127
+ const SOUNDS = [
128
+ ...HESITATIONS.map(word => [word, 'hesitation']),
129
+ ...OPENERS.map(word => [word, 'hesitation']),
130
+ ...BACKCHANNELS.map(word => [word, 'backchannel']),
131
+ ]
132
+ .map(([word, kind]) => [bare(word), kind])
133
+ .sort((a, b) => b[0].length - a[0].length);
134
+ /**
135
+ * Whether what was said holds sounds alone and no words yet ("哎", "嗯,那个", "uh-huh"): a hesitation when any of
136
+ * them is of someone who thinks, else a backchannel; undefined when it holds words, or nothing, or asks ("啊?",
137
+ * "and then?").
138
+ */
139
+ function sounds(text) {
140
+ if (/[??]\s*$/u.test(text)) {
141
+ return undefined;
142
+ }
143
+ // "uh-huh" is one sound; words of Latin letters are whole words, those of other scripts run together.
144
+ const chunks = text
145
+ .toLowerCase()
146
+ .replace(/(\p{L})-(\p{L})/gu, '$1$2')
147
+ .split(/[^\p{L}\p{N}]+/u)
148
+ .filter(Boolean);
149
+ let kind;
150
+ for (const chunk of chunks) {
151
+ let rest = chunk;
152
+ while (rest) {
153
+ const latin = /^[a-z]+$/.test(rest);
154
+ const found = SOUNDS.find(([word]) => (latin ? rest === word : rest.startsWith(word)));
155
+ if (!found) {
156
+ return undefined;
157
+ }
158
+ kind = kind === 'hesitation' ? kind : found[1];
159
+ rest = rest.slice(found[0].length);
160
+ }
161
+ }
162
+ return kind;
163
+ }
164
+ TurnEnd.sounds = sounds;
122
165
  /** It ends as a sentence does: a full stop, a question or an exclamation mark. */
123
166
  function ended(text) {
124
167
  const trimmed = text.trim().replace(/["'”’」』))]+$/u, '');
@@ -2,7 +2,7 @@ import type { TaConnection } from '@celljs/ta-client';
2
2
  import type { TaServerInfo } from '@celljs/ta-protocol';
3
3
  import { type HostList } from './hosts.js';
4
4
  import { WorkbenchLists } from './workbench-lists.js';
5
- import type { Credential } from './workbench-protocol.js';
5
+ import type { Credential, SavedHost } from './workbench-protocol.js';
6
6
  /** The computers this device signs in to: which is in use, and what is kept of each. */
7
7
  export declare abstract class WorkbenchHosts extends WorkbenchLists {
8
8
  protected list: HostList;
@@ -16,8 +16,11 @@ export declare abstract class WorkbenchHosts extends WorkbenchLists {
16
16
  * used at once when none is.
17
17
  */
18
18
  addAccountHost(link: string, account: string): Promise<void>;
19
+ markAccountHost(hostId: string, account: string): void;
19
20
  /** The computers the account brought: those of `account`, or all of them when the device left the account. */
20
21
  forgetAccountHosts(account?: string): void;
22
+ parkHosts(ids: string[]): SavedHost[];
23
+ restoreHosts(hosts: SavedHost[]): void;
21
24
  switchTo(hostId: string): void;
22
25
  forget(hostId: string): void;
23
26
  rename(hostId: string, name: string): void;
@@ -30,6 +30,10 @@ export class WorkbenchHosts extends WorkbenchLists {
30
30
  * used at once when none is.
31
31
  */
32
32
  async addAccountHost(link, account) {
33
+ // One reached directly already (a Ta in the cloud, by its gateway): not a second entry through the relay.
34
+ if (this.list.hosts.some(one => one.account === account && 'token' in one.credential)) {
35
+ return;
36
+ }
33
37
  const credential = WorkbenchUtil.credential(link);
34
38
  const id = WorkbenchUtil.serverOf(credential, pageHost());
35
39
  if (this.current.status === 'signed-out' && !this.list.current) {
@@ -39,12 +43,25 @@ export class WorkbenchHosts extends WorkbenchLists {
39
43
  }
40
44
  this.keepHosts(HostUtil.keep(this.list, id, credential, account, Date.now()));
41
45
  }
46
+ markAccountHost(hostId, account) {
47
+ this.keepHosts({ ...this.list, hosts: this.list.hosts.map(one => (one.id === hostId ? { ...one, account } : one)) });
48
+ }
42
49
  /** The computers the account brought: those of `account`, or all of them when the device left the account. */
43
50
  forgetAccountHosts(account) {
44
51
  for (const host of this.list.hosts.filter(one => one.account && (account === undefined || one.account === account))) {
45
52
  this.forget(host.id);
46
53
  }
47
54
  }
55
+ parkHosts(ids) {
56
+ const parked = this.list.hosts.filter(one => ids.includes(one.id));
57
+ const current = this.list.current && ids.includes(this.list.current) ? undefined : this.list.current;
58
+ this.keepHosts({ ...(current ? { current } : {}), hosts: this.list.hosts.filter(one => !ids.includes(one.id)) });
59
+ return parked;
60
+ }
61
+ restoreHosts(hosts) {
62
+ const ids = new Set(hosts.map(one => one.id));
63
+ this.keepHosts({ ...(this.list.current ? { current: this.list.current } : {}), hosts: [...this.list.hosts.filter(one => !ids.has(one.id)), ...hosts] });
64
+ }
48
65
  switchTo(hostId) {
49
66
  const host = this.list.hosts.find(one => one.id === hostId);
50
67
  if (!host || (hostId === this.current.host && this.current.status !== 'signed-out')) {
@@ -132,8 +132,16 @@ export interface TaWorkbench {
132
132
  rename(hostId: string, name: string): void;
133
133
  /** A way into a computer of the user's account (docs/design/ta-account.md): kept, used at once when none is. */
134
134
  addAccountHost(link: string, account: string): Promise<void>;
135
+ /** A computer this device brought into its account (docs/design/ta-me.md 4) is its device `account` there. */
136
+ markAccountHost(hostId: string, account: string): void;
135
137
  /** The computers the account brought: those of `account`, or all when the device left the account. */
136
138
  forgetAccountHosts(account?: string): void;
139
+ /**
140
+ * Takes the computers of an account the user switched away from off the list, what the page kept of them kept on the
141
+ * device (docs/design/ta-me.md 4): back as they were with restoreHosts.
142
+ */
143
+ parkHosts(ids: string[]): SavedHost[];
144
+ restoreHosts(hosts: SavedHost[]): void;
137
145
  /** Forgets the computer in use and loads the page again, at the sign-in, with the other computers kept. */
138
146
  signOut(): void;
139
147
  /**
@@ -1,4 +1,4 @@
1
- import type { TaAccountInfo } from '@celljs/ta-protocol';
1
+ import type { TaAccountInfo, TaAccountServer } from '@celljs/ta-protocol';
2
2
  import { AccountAgent, type AccountKept, type AccountView, type AccountWay } from '@celljs/ta-relay';
3
3
  import type { SavedHost } from '../workbench-protocol';
4
4
  /** What a page does about the account: of its ta serve (a computer), or of the device itself (the app). */
@@ -14,9 +14,27 @@ export interface AccountSide {
14
14
  export interface AccountHosts {
15
15
  readonly state: {
16
16
  hosts: SavedHost[];
17
+ host?: string;
18
+ status: string;
19
+ switching?: string;
17
20
  };
21
+ /** The account of the computer in use, through its ta serve. */
22
+ readonly account: TaAccountServer;
23
+ subscribe(listener: () => void): () => void;
18
24
  addAccountHost(link: string, account: string): Promise<void>;
19
25
  forgetAccountHosts(account?: string): void;
26
+ markAccountHost(hostId: string, account: string): void;
27
+ forget(hostId: string): void;
28
+ switchTo(hostId: string): void;
29
+ parkHosts(ids: string[]): SavedHost[];
30
+ restoreHosts(hosts: SavedHost[]): void;
31
+ switchSignIn(): void;
32
+ }
33
+ /** An account this device switched away from (docs/design/ta-me.md 4): back in one tap, with its computers. */
34
+ export interface RecentAccount {
35
+ kept: AccountKept;
36
+ hosts: SavedHost[];
37
+ at: number;
20
38
  }
21
39
  /**
22
40
  * The app as a device of the user's account (docs/design/ta-account.md): its own keys in localStorage; the computers
@@ -42,12 +60,58 @@ export declare class DeviceAccount implements AccountSide {
42
60
  protected timer?: ReturnType<typeof setTimeout>;
43
61
  protected running?: Promise<void>;
44
62
  protected constructor(hosts: AccountHosts, service: () => Promise<string>, gateways: () => Promise<string[]>);
63
+ /** The computers to bring into the account, and the devices of it this device lets in once they ask. */
64
+ protected static joining(): {
65
+ hosts: string[];
66
+ devices: string[];
67
+ };
68
+ protected static keepJoining(next: {
69
+ hosts: string[];
70
+ devices: string[];
71
+ }): void;
72
+ /**
73
+ * A computer connected by its code while this device is in an account (docs/design/ta-me.md 4): it joins the account
74
+ * once connected, with a token of the account this device gets for it, and this device lets it in. Being by the
75
+ * computer to scan its code is as good as tapping Allow.
76
+ */
77
+ bringIn(hostId: string): void;
78
+ protected bringing: boolean;
79
+ /** The computers tried once in this page: one that would not join is not asked again every round. */
80
+ protected readonly tried: Set<string>;
81
+ /** The Ta in the cloud of the account's gateway, in the account too (docs/design/ta-me.md 2): brought in as a scanned computer. */
82
+ protected bringCloud(): void;
83
+ /** The computer in use, if it waits to be brought into the account: asked to join it. */
84
+ protected bringPending(): Promise<void>;
85
+ /** The computers this device brought in, let in as soon as they ask. */
86
+ protected letInBrought(view: AccountView): Promise<AccountView>;
87
+ /** The one of the page, once made. */
88
+ static current(): DeviceAccount | undefined;
45
89
  /** The one of the page. */
46
90
  static of(hosts: AccountHosts, service: () => Promise<string>, gateways: () => Promise<string[]>): DeviceAccount;
47
91
  /** What the device calls itself in the account. */
48
92
  static deviceName(agent?: string): string;
49
93
  protected static read(): AccountKept | undefined;
50
94
  protected agentOf(kept: AccountKept): AccountAgent;
95
+ /** The address of the gateway of a Ta in the cloud kept, as the account service it is. */
96
+ protected static gatewayOf(host: SavedHost): string | undefined;
97
+ /** The computers the account brought: those it paired, and the Ta in the cloud of its gateway (a company's account). */
98
+ protected ownHosts(): SavedHost[];
99
+ /** The accounts switched away from, the latest first. */
100
+ static recent(): RecentAccount[];
101
+ protected static keepRecent(recent: RecentAccount[]): void;
102
+ /** The account in use put aside, its computers with it, for another (WeChat's switching of accounts). */
103
+ protected putAside(): void;
104
+ /** Back to the sign-in, the account in use kept among those signed in to lately. */
105
+ switchAccount(): void;
106
+ /** An account switched away from, in use again, with its computers: the one of them used last opens. */
107
+ resume(account: string): void;
108
+ /** An account switched away from, no longer offered. */
109
+ forgetRecent(account: string): void;
110
+ /**
111
+ * Signed in to a Ta in the cloud: its gateway's account is this device's from now on, one account at a time
112
+ * (docs/design/ta-me.md 2); another in use is put aside, to come back to.
113
+ */
114
+ cloudSignedIn(gateway: string): void;
51
115
  /** A Ta in the cloud signed in to: its token is the account of its gateway, which this device joins by itself. */
52
116
  protected cloudToken(): {
53
117
  service: string;