@celljs/ta-web 4.15.2 → 4.16.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 (47) hide show
  1. package/esm/browser/components/app-view.js +7 -1
  2. package/esm/browser/components/chat-list.d.ts +3 -1
  3. package/esm/browser/components/chat-list.js +9 -4
  4. package/esm/browser/components/chat-seen.d.ts +7 -0
  5. package/esm/browser/components/chat-seen.js +57 -10
  6. package/esm/browser/components/environment-view.js +50 -1
  7. package/esm/browser/components/folder-picker.js +3 -3
  8. package/esm/browser/components/host-tag.js +2 -2
  9. package/esm/browser/components/host-view.d.ts +1 -1
  10. package/esm/browser/components/remote-hosts.js +66 -5
  11. package/esm/browser/extension/icons.js +23 -4
  12. package/esm/browser/gateway/console-parts.d.ts +3 -1
  13. package/esm/browser/gateway/console-parts.js +11 -4
  14. package/esm/browser/gateway/console-tenant.js +1 -1
  15. package/esm/browser/gateway/console-util.js +2 -2
  16. package/esm/browser/gateway/console-view.js +10 -2
  17. package/esm/browser/i18n/locales.d.ts +30 -3
  18. package/esm/browser/i18n/messages-ja.js +27 -0
  19. package/esm/browser/i18n/messages-zh-tw.js +27 -0
  20. package/esm/browser/i18n/messages.d.ts +27 -0
  21. package/esm/browser/i18n/messages.js +54 -0
  22. package/esm/browser/style/pages.d.ts +1 -1
  23. package/esm/browser/style/pages.js +1 -0
  24. package/lib/browser/components/app-view.js +7 -1
  25. package/lib/browser/components/chat-list.d.ts +3 -1
  26. package/lib/browser/components/chat-list.js +9 -4
  27. package/lib/browser/components/chat-seen.d.ts +7 -0
  28. package/lib/browser/components/chat-seen.js +57 -10
  29. package/lib/browser/components/environment-view.js +49 -0
  30. package/lib/browser/components/folder-picker.js +2 -2
  31. package/lib/browser/components/host-tag.js +1 -1
  32. package/lib/browser/components/host-view.d.ts +1 -1
  33. package/lib/browser/components/remote-hosts.js +65 -4
  34. package/lib/browser/extension/icons.js +22 -3
  35. package/lib/browser/gateway/console-parts.d.ts +3 -1
  36. package/lib/browser/gateway/console-parts.js +11 -4
  37. package/lib/browser/gateway/console-tenant.js +1 -1
  38. package/lib/browser/gateway/console-util.js +2 -2
  39. package/lib/browser/gateway/console-view.js +9 -1
  40. package/lib/browser/i18n/locales.d.ts +30 -3
  41. package/lib/browser/i18n/messages-ja.js +27 -0
  42. package/lib/browser/i18n/messages-zh-tw.js +27 -0
  43. package/lib/browser/i18n/messages.d.ts +27 -0
  44. package/lib/browser/i18n/messages.js +54 -0
  45. package/lib/browser/style/pages.d.ts +1 -1
  46. package/lib/browser/style/pages.js +1 -0
  47. package/package.json +7 -7
@@ -190,6 +190,31 @@ exports.JA_MESSAGES = {
190
190
  'ta.console.failed': 'コンソールを読み込めませんでした',
191
191
  'ta.console.never': 'なし',
192
192
  'ta.console.since': 'ゲートウェイ起動 {time}',
193
+ 'ta.console.monthlyTokens': '月間トークン',
194
+ 'ta.console.monthlyTokensHint': 'ゲートウェイがモデル呼び出しを中継するときに数え、超えたら拒否します',
195
+ 'ta.console.monthlyTokensOff': 'ゲートウェイがモデルを提供して(models.json)初めて有効です',
196
+ 'ta.console.tokensMetered': 'ゲートウェイ計測',
197
+ 'ta.console.tokensReported': 'セッションの記録による',
198
+ 'ta.console.models': 'ゲートウェイのモデル',
199
+ 'ta.console.modelsNone': '未設定:メンバーは自分のキーを使い、トークンは表示のみです。ゲートウェイの models.json に設定すると、モデルを提供し上限を設けられます。',
200
+ 'ta.console.modelsOf': '{api} · {count} モデル',
201
+ 'ta.console.modelsHint': 'サンドボックスは専用キーでゲートウェイ経由で呼び出します。プロバイダーのキーはゲートウェイだけが持ちます。',
202
+ 'ta.remote.addCloud': 'クラウドワークスペースを追加',
203
+ 'ta.remote.cloudTitle': 'クラウドワークスペース',
204
+ 'ta.remote.cloudDescription': 'Ta ゲートウェイ上のあなたのサンドボックスに ssh ではなくアドレスで接続します。会話はそのディレクトリで作業し、エージェントはこのコンピュータに残ります。',
205
+ 'ta.remote.cloudUrl': 'ゲートウェイのアドレス',
206
+ 'ta.remote.cloudToken': 'アクセストークン',
207
+ 'ta.remote.cloudName': '名前(ta://名前/… に使います)',
208
+ 'ta.remote.cloudHint': 'トークンはゲートウェイの 設定 → 実行環境 → 他の Ta から使う で作成します。',
209
+ 'ta.remote.cloudConnect': '接続して追加',
210
+ 'ta.remote.cloudAdded': '{name} を追加しました。フォルダ選択で選べます',
211
+ 'ta.remote.openCloud': 'クラウドの Ta を開く',
212
+ 'ta.remote.openCloudHint': 'エージェントも含めて Ta 全体がクラウドで動きます',
213
+ 'ta.environment.elsewhere': '他の Ta から使う',
214
+ 'ta.environment.elsewhereHint': 'お使いのコンピュータの Ta がこのサンドボックスをクラウドワークスペースとして使います。エージェントはコンピュータ側です。',
215
+ 'ta.environment.makeToken': 'トークンを作成',
216
+ 'ta.environment.tokenLabel': '他の Ta',
217
+ 'ta.environment.tokenHint': '一度だけ表示されます。コンピュータの Ta で 設定 → リモートホスト → クラウドワークスペースを追加。使わなくなったら「アクセス」でサインアウトしてください。',
193
218
  'ta.console.activityNone': 'まだツール呼び出しはありません',
194
219
  'ta.console.activityRunning': '実行中',
195
220
  'ta.console.activitySummary': '直近 {count} 回の呼び出し、失敗 {failed} 回',
@@ -377,6 +402,8 @@ exports.JA_MESSAGES = {
377
402
  'ta.chat.restoreShort': '戻す',
378
403
  'ta.chat.pin': 'トップに固定',
379
404
  'ta.chat.unpin': '固定を解除',
405
+ 'ta.chat.markUnseen': '未読にする',
406
+ 'ta.chat.markSeen': '既読にする',
380
407
  'ta.chat.pinned': '固定',
381
408
  'ta.chat.unseen': '新しい返信があります',
382
409
  'ta.chat.asking': 'あなたの判断待ち',
@@ -191,6 +191,31 @@ exports.ZH_TW_MESSAGES = {
191
191
  'ta.console.failed': '控制台沒有載入',
192
192
  'ta.console.never': '從未',
193
193
  'ta.console.since': '閘道啟動於 {time}',
194
+ 'ta.console.monthlyTokens': '每月 tokens',
195
+ 'ta.console.monthlyTokensHint': '閘道轉發模型呼叫時計數,超出後拒絕呼叫',
196
+ 'ta.console.monthlyTokensOff': '閘道提供模型(閘道目錄下的 models.json)後才生效',
197
+ 'ta.console.tokensMetered': '閘道計量',
198
+ 'ta.console.tokensReported': '依對話紀錄',
199
+ 'ta.console.models': '閘道提供的模型',
200
+ 'ta.console.modelsNone': '未設定:成員用自己的金鑰,tokens 只顯示不限額。在閘道目錄的 models.json 裡設定提供方後,才能統一提供模型並限額。',
201
+ 'ta.console.modelsOf': '{api} · {count} 個模型',
202
+ 'ta.console.modelsHint': '沙箱用各自的專用金鑰經閘道呼叫,提供方的真實金鑰只在閘道上。',
203
+ 'ta.remote.addCloud': '新增雲端工作區',
204
+ 'ta.remote.cloudTitle': '雲端工作區',
205
+ 'ta.remote.cloudDescription': '你在 Ta 閘道上的沙箱,依位址直連而非 ssh:本機的對話在它的目錄裡工作,智慧體仍在本機。',
206
+ 'ta.remote.cloudUrl': '閘道位址',
207
+ 'ta.remote.cloudToken': '存取權杖',
208
+ 'ta.remote.cloudName': '名稱,用於 ta://名稱/…',
209
+ 'ta.remote.cloudHint': '在閘道的 設定 → 執行環境 → 在其他 Ta 裡使用 產生權杖。',
210
+ 'ta.remote.cloudConnect': '連線並新增',
211
+ 'ta.remote.cloudAdded': '已新增 {name},可在選擇目錄時選它',
212
+ 'ta.remote.openCloud': '開啟雲端 Ta',
213
+ 'ta.remote.openCloudHint': '整個 Ta 都在雲端執行,包括智慧體',
214
+ 'ta.environment.elsewhere': '在其他 Ta 裡使用',
215
+ 'ta.environment.elsewhereHint': '讓你電腦上的 Ta 把這個沙箱當作雲端工作區,智慧體仍在電腦上。',
216
+ 'ta.environment.makeToken': '產生權杖',
217
+ 'ta.environment.tokenLabel': '其他 Ta',
218
+ 'ta.environment.tokenHint': '只顯示一次。在電腦上的 Ta:設定 → 遠端主機 → 新增雲端工作區。不用時在「存取」裡登出它。',
194
219
  'ta.console.activityNone': '還沒有工具呼叫',
195
220
  'ta.console.activityRunning': '進行中',
196
221
  'ta.console.activitySummary': '最近 {count} 次呼叫,{failed} 次失敗',
@@ -378,6 +403,8 @@ exports.ZH_TW_MESSAGES = {
378
403
  'ta.chat.restoreShort': '放回',
379
404
  'ta.chat.pin': '置頂',
380
405
  'ta.chat.unpin': '取消置頂',
406
+ 'ta.chat.markUnseen': '標為未讀',
407
+ 'ta.chat.markSeen': '標為已讀',
381
408
  'ta.chat.pinned': '置頂',
382
409
  'ta.chat.unseen': '有新回覆未檢視',
383
410
  'ta.chat.asking': '等你決定',
@@ -191,6 +191,31 @@ export declare const EN_MESSAGES: {
191
191
  'ta.console.failed': string;
192
192
  'ta.console.never': string;
193
193
  'ta.console.since': string;
194
+ 'ta.console.monthlyTokens': string;
195
+ 'ta.console.monthlyTokensHint': string;
196
+ 'ta.console.monthlyTokensOff': string;
197
+ 'ta.console.tokensMetered': string;
198
+ 'ta.console.tokensReported': string;
199
+ 'ta.console.models': string;
200
+ 'ta.console.modelsNone': string;
201
+ 'ta.console.modelsOf': string;
202
+ 'ta.console.modelsHint': string;
203
+ 'ta.remote.addCloud': string;
204
+ 'ta.remote.cloudTitle': string;
205
+ 'ta.remote.cloudDescription': string;
206
+ 'ta.remote.cloudUrl': string;
207
+ 'ta.remote.cloudToken': string;
208
+ 'ta.remote.cloudName': string;
209
+ 'ta.remote.cloudHint': string;
210
+ 'ta.remote.cloudConnect': string;
211
+ 'ta.remote.cloudAdded': string;
212
+ 'ta.remote.openCloud': string;
213
+ 'ta.remote.openCloudHint': string;
214
+ 'ta.environment.elsewhere': string;
215
+ 'ta.environment.elsewhereHint': string;
216
+ 'ta.environment.makeToken': string;
217
+ 'ta.environment.tokenLabel': string;
218
+ 'ta.environment.tokenHint': string;
194
219
  'ta.console.activityNone': string;
195
220
  'ta.console.activityRunning': string;
196
221
  'ta.console.activitySummary': string;
@@ -378,6 +403,8 @@ export declare const EN_MESSAGES: {
378
403
  'ta.chat.restoreShort': string;
379
404
  'ta.chat.pin': string;
380
405
  'ta.chat.unpin': string;
406
+ 'ta.chat.markUnseen': string;
407
+ 'ta.chat.markSeen': string;
381
408
  'ta.chat.pinned': string;
382
409
  'ta.chat.unseen': string;
383
410
  'ta.chat.asking': string;
@@ -202,6 +202,31 @@ exports.EN_MESSAGES = {
202
202
  'ta.console.failed': 'The console did not load',
203
203
  'ta.console.never': 'Never',
204
204
  'ta.console.since': 'Gateway up since {time}',
205
+ 'ta.console.monthlyTokens': 'Tokens a month',
206
+ 'ta.console.monthlyTokensHint': 'Counted by the gateway as it passes calls of its models; past them calls are refused',
207
+ 'ta.console.monthlyTokensOff': 'Holds only once the gateway gives models (models.json of the gateway)',
208
+ 'ta.console.tokensMetered': 'Counted by the gateway',
209
+ 'ta.console.tokensReported': 'As the sessions say',
210
+ 'ta.console.models': 'Models of the gateway',
211
+ 'ta.console.modelsNone': 'None: members bring their own keys, and tokens are shown, not limited. Add providers in models.json of the gateway to give models and limit tokens.',
212
+ 'ta.console.modelsOf': '{api} · {count, plural, one {# model} other {# models}}',
213
+ 'ta.console.modelsHint': 'Sandboxes call them through the gateway with a key of their own; the keys of providers stay here.',
214
+ 'ta.remote.addCloud': 'Add a cloud workspace',
215
+ 'ta.remote.cloudTitle': 'Cloud workspaces',
216
+ 'ta.remote.cloudDescription': 'Your sandbox on a Ta gateway, reached over its address, not ssh: conversations here work in its directories, the agent stays on this computer.',
217
+ 'ta.remote.cloudUrl': 'Gateway address',
218
+ 'ta.remote.cloudToken': 'Access token',
219
+ 'ta.remote.cloudName': 'Name, as ta://name/…',
220
+ 'ta.remote.cloudHint': 'Make the token on the gateway: Settings, Environment, Use it from another Ta.',
221
+ 'ta.remote.cloudConnect': 'Connect and add',
222
+ 'ta.remote.cloudAdded': '{name} added: pick it in the folder picker',
223
+ 'ta.remote.openCloud': 'Open its Ta',
224
+ 'ta.remote.openCloudHint': 'The whole Ta there, its agent in the cloud too',
225
+ 'ta.environment.elsewhere': 'Use it from another Ta',
226
+ 'ta.environment.elsewhereHint': 'Ta on your computer works in this sandbox as a cloud workspace, its agent on your computer.',
227
+ 'ta.environment.makeToken': 'Make a token',
228
+ 'ta.environment.tokenLabel': 'Another Ta',
229
+ 'ta.environment.tokenHint': 'Shown once. In Ta on your computer: Settings, Remote hosts, Add a cloud workspace. Sign it out in Access when no longer used.',
205
230
  'ta.console.activityNone': 'Nothing done yet',
206
231
  'ta.console.activityRunning': 'Running',
207
232
  'ta.console.activitySummary': 'Last {count, plural, one {# call} other {# calls}}, {failed} failed',
@@ -389,6 +414,8 @@ exports.EN_MESSAGES = {
389
414
  'ta.chat.restoreShort': 'Put back',
390
415
  'ta.chat.pin': 'Pin to top',
391
416
  'ta.chat.unpin': 'Unpin',
417
+ 'ta.chat.markUnseen': 'Mark as unread',
418
+ 'ta.chat.markSeen': 'Mark as read',
392
419
  'ta.chat.pinned': 'Pinned',
393
420
  'ta.chat.unseen': 'New, not seen yet',
394
421
  'ta.chat.asking': 'Your call',
@@ -1360,6 +1387,31 @@ exports.ZH_MESSAGES = {
1360
1387
  'ta.console.failed': '控制台没有加载出来',
1361
1388
  'ta.console.never': '从未',
1362
1389
  'ta.console.since': '网关启动于 {time}',
1390
+ 'ta.console.monthlyTokens': '每月 tokens',
1391
+ 'ta.console.monthlyTokensHint': '网关转发模型调用时计数,超出后拒绝调用',
1392
+ 'ta.console.monthlyTokensOff': '网关提供模型(网关目录下的 models.json)后才生效',
1393
+ 'ta.console.tokensMetered': '网关计量',
1394
+ 'ta.console.tokensReported': '按会话记录',
1395
+ 'ta.console.models': '网关提供的模型',
1396
+ 'ta.console.modelsNone': '未配置:成员用自己的密钥,tokens 只展示不限额。在网关目录的 models.json 里配置提供方后,才能统一提供模型并限额。',
1397
+ 'ta.console.modelsOf': '{api} · {count} 个模型',
1398
+ 'ta.console.modelsHint': '沙箱用各自的专用密钥经网关调用,提供方的真实密钥只在网关上。',
1399
+ 'ta.remote.addCloud': '添加云端工作区',
1400
+ 'ta.remote.cloudTitle': '云端工作区',
1401
+ 'ta.remote.cloudDescription': '你在 Ta 网关上的沙箱,按地址直连而不是 ssh:本机的对话在它的目录里工作,智能体仍在本机。',
1402
+ 'ta.remote.cloudUrl': '网关地址',
1403
+ 'ta.remote.cloudToken': '访问令牌',
1404
+ 'ta.remote.cloudName': '名字,用于 ta://名字/…',
1405
+ 'ta.remote.cloudHint': '在网关的 设置 → 运行环境 → 在其他 Ta 里使用 生成令牌。',
1406
+ 'ta.remote.cloudConnect': '连接并添加',
1407
+ 'ta.remote.cloudAdded': '已添加 {name},可在选择目录时选它',
1408
+ 'ta.remote.openCloud': '打开云端 Ta',
1409
+ 'ta.remote.openCloudHint': '整个 Ta 都在云端运行,包括智能体',
1410
+ 'ta.environment.elsewhere': '在其他 Ta 里使用',
1411
+ 'ta.environment.elsewhereHint': '让你电脑上的 Ta 把这个沙箱当作云端工作区,智能体仍在电脑上。',
1412
+ 'ta.environment.makeToken': '生成令牌',
1413
+ 'ta.environment.tokenLabel': '其他 Ta',
1414
+ 'ta.environment.tokenHint': '只显示一次。在电脑上的 Ta:设置 → 远程主机 → 添加云端工作区。不用时在「访问」里登出它。',
1363
1415
  'ta.console.activityNone': '还没有工具调用',
1364
1416
  'ta.console.activityRunning': '进行中',
1365
1417
  'ta.console.activitySummary': '最近 {count} 次调用,{failed} 次失败',
@@ -1547,6 +1599,8 @@ exports.ZH_MESSAGES = {
1547
1599
  'ta.chat.restoreShort': '放回',
1548
1600
  'ta.chat.pin': '置顶',
1549
1601
  'ta.chat.unpin': '取消置顶',
1602
+ 'ta.chat.markUnseen': '标为未读',
1603
+ 'ta.chat.markSeen': '标为已读',
1550
1604
  'ta.chat.pinned': '置顶',
1551
1605
  'ta.chat.unseen': '有新回复未查看',
1552
1606
  'ta.chat.asking': '等你决定',
@@ -1,3 +1,3 @@
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: 720px; 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-part-hint { font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; color: var(--ta-muted); }\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-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-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: 640px; 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-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-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/* 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-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-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-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-view.tsx). */\n.ta-console-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }\n.ta-console-stats.ta-console-stats-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n.ta-console-stats-small .ta-console-stat-value { font-size: calc(18px * var(--ta-font-scale)); }\n.ta-console-agent { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; }\n.ta-console-agent + .ta-console-agent::before { content: ''; position: absolute; top: 0; right: 0; left: 33px; height: 1px; background: var(--ta-border-muted); }\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.ta-console-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; color: inherit; text-align: left; }\nbutton.ta-console-stat:not(:disabled):hover { background: var(--ta-hover); }\nbutton.ta-console-stat:disabled { cursor: default; }\n.ta-console-stat-value { font-size: calc(22px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }\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-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-section { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin: 4px 4px -8px; }\n.ta-console-section-title { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-console-tenant, .ta-console-provider { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px; border: 0; background: none; font: inherit; color: var(--ta-text); text-align: left; }\n.ta-console-tenant { transition: background 120ms; }\n.ta-console-tenant:hover { background: var(--ta-hover); }\n.ta-console-tenant:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-console-tenant + .ta-console-tenant::before, .ta-console-provider + .ta-console-provider::before { content: ''; position: absolute; top: 0; right: 0; left: 58px; height: 1px; background: var(--ta-border-muted); }\n.ta-console-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; }\n.ta-console-avatar.ta-chat-avatar { font-size: 14px; }\n.ta-console-avatar-large { width: 56px; height: 56px; }\n.ta-console-avatar-large.ta-chat-avatar { font-size: 22px; }\n.ta-console-tenant-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }\n.ta-console-tenant-name { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-console-account { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 400; color: var(--ta-muted); }\n.ta-console-tenant-state { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); min-width: 0; }\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@keyframes ta-console-pulse { 50% { opacity: 0.35; } }\n.ta-console-tenant-usage { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\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-small { width: 56px; height: 4px; }\n.ta-console-chip { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); vertical-align: 1px; }\n.ta-console-invite { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }\n.ta-console-invite .ta-list-hint { margin: 0; }\n.ta-console-mono { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); word-break: break-all; }\n.ta-console-actions { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-console-person { display: flex; align-items: center; gap: 14px; padding: 4px 2px; }\n.ta-console-person-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }\n.ta-console-person-name { font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }\n.ta-console-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }\n.ta-console-meter { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }\n.ta-console-meter-text { display: flex; justify-content: space-between; gap: 8px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-meter-value { font-variant-numeric: tabular-nums; color: var(--ta-text); }\n.ta-console-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-console-facts dt { color: var(--ta-muted); }\n.ta-console-facts dd { margin: 0; min-width: 0; text-align: right; }\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; color: var(--ta-secondary); }\n.ta-console-loading { align-self: center; margin: 40px 0; }\n.ta-console .ta-phone-stack-top { background: var(--ta-list-bg); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-console-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .ta-console-stats.ta-console-stats-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n.ta-console-content { gap: 14px; }\n.ta-console-content > .ta-segmented { align-self: stretch; }\n.ta-console-stat-value.ta-bad { color: var(--ta-red); }\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.ta-console-meter-hint { font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }\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(22px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }\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-loading { height: 160px; border-radius: 8px; background: var(--ta-chip); opacity: 0.5; }\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-hit { fill: transparent; }\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-bar > span.ta-part { background: var(--ta-blue); }\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; }\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-limits { gap: 0; padding: 4px 14px; }\n.ta-console-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }\n.ta-console-limit + .ta-console-limit, .ta-console-chips + .ta-console-limit { border-top: 1px solid var(--ta-border-muted); }\n.ta-console-limit-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-console-limit-hint { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-limit-control { flex: none; display: flex; align-items: center; gap: 6px; }\n.ta-console-select { width: auto; min-width: 104px; height: 32px; padding: 0 8px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-console-number { width: 84px; height: 32px; font-variant-numeric: tabular-nums; }\n.ta-console-number.ta-invalid { border-color: var(--ta-red); }\n.ta-console-chips { display: flex; flex-wrap: wrap; gap: 6px; }\n.ta-console-limits .ta-console-chips { padding: 0 0 10px; }\n.ta-console-chip-toggle { 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); transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-console-chip-toggle:hover:not(:disabled) { color: var(--ta-text); }\n.ta-console-chip-toggle.ta-on { border-color: transparent; background: var(--ta-segment); color: var(--ta-text); font-weight: 500; }\n.ta-console-chip-count { font-variant-numeric: tabular-nums; color: var(--ta-muted); }\n.ta-console-form-actions { justify-content: flex-end; padding: 10px 0; border-top: 1px solid var(--ta-border-muted); }\n.ta-console-role-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-console-role-row > span { flex: 1; }\n.ta-console-toolbar { display: flex; gap: 8px; }\n.ta-console-search { flex: 1; }\n.ta-console-agent-block { position: relative; }\n.ta-console-agent-block + .ta-console-agent-block::before { content: ''; position: absolute; top: 0; right: 0; left: 33px; height: 1px; background: var(--ta-border-muted); }\nbutton.ta-console-agent { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; transition: background 120ms; }\nbutton.ta-console-agent:hover { background: var(--ta-hover); }\n.ta-console-activity { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 12px 33px; }\n.ta-console-activity-summary { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); padding-bottom: 4px; }\n.ta-console-activity-empty { margin: 0; padding: 0 14px 12px 33px; }\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-name { flex: none; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-console-activity-error { flex: 1; min-width: 0; color: var(--ta-red); }\n.ta-console-activity-time { flex: none; margin-left: auto; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-console-audit { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-console-audit + .ta-console-audit { border-top: 1px solid var(--ta-border-muted); }\n.ta-console-audit-text { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px; }\n.ta-console-audit-text strong { font-weight: 500; }\n.ta-console-audit-detail { color: var(--ta-muted); }\n.ta-console-foot { text-align: center; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-console-share { grid-template-columns: minmax(0, 1fr) 64px 56px; }\n .ta-console-limit { flex-direction: column; align-items: stretch; }\n .ta-console-limit-control { justify-content: flex-end; }\n .ta-console-select, .ta-console-number { font-size: max(16px, calc(13px * var(--ta-font-scale))); }\n .ta-console-card-controls { width: 100%; }\n .ta-console-card-controls .ta-segmented { flex: 1; }\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: 720px; 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-part-hint { font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; color: var(--ta-muted); }\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-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-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: 640px; 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-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-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/* 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-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-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-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-view.tsx). */\n.ta-console-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }\n.ta-console-stats.ta-console-stats-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n.ta-console-stats-small .ta-console-stat-value { font-size: calc(18px * var(--ta-font-scale)); }\n.ta-console-agent { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; }\n.ta-console-agent + .ta-console-agent::before { content: ''; position: absolute; top: 0; right: 0; left: 33px; height: 1px; background: var(--ta-border-muted); }\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.ta-console-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font: inherit; color: inherit; text-align: left; }\nbutton.ta-console-stat:not(:disabled):hover { background: var(--ta-hover); }\nbutton.ta-console-stat:disabled { cursor: default; }\n.ta-console-stat-value { font-size: calc(22px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }\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-label { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-section { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin: 4px 4px -8px; }\n.ta-console-section-title { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-secondary); }\n.ta-console-tenant, .ta-console-provider { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px; border: 0; background: none; font: inherit; color: var(--ta-text); text-align: left; }\n.ta-console-tenant { transition: background 120ms; }\n.ta-console-tenant:hover { background: var(--ta-hover); }\n.ta-console-tenant:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.ta-console-tenant + .ta-console-tenant::before, .ta-console-provider + .ta-console-provider::before { content: ''; position: absolute; top: 0; right: 0; left: 58px; height: 1px; background: var(--ta-border-muted); }\n.ta-console-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; }\n.ta-console-avatar.ta-chat-avatar { font-size: 14px; }\n.ta-console-avatar-large { width: 56px; height: 56px; }\n.ta-console-avatar-large.ta-chat-avatar { font-size: 22px; }\n.ta-console-tenant-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }\n.ta-console-tenant-name { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-console-account { font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 400; color: var(--ta-muted); }\n.ta-console-tenant-state { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); min-width: 0; }\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@keyframes ta-console-pulse { 50% { opacity: 0.35; } }\n.ta-console-tenant-usage { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\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-small { width: 56px; height: 4px; }\n.ta-console-chip { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--ta-chip); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-secondary); vertical-align: 1px; }\n.ta-console-invite { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }\n.ta-console-invite .ta-list-hint { margin: 0; }\n.ta-console-mono { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); word-break: break-all; }\n.ta-console-actions { display: flex; flex-wrap: wrap; gap: 8px; }\n.ta-console-person { display: flex; align-items: center; gap: 14px; padding: 4px 2px; }\n.ta-console-person-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }\n.ta-console-person-name { font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }\n.ta-console-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }\n.ta-console-meter { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }\n.ta-console-meter-text { display: flex; justify-content: space-between; gap: 8px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-meter-value { font-variant-numeric: tabular-nums; color: var(--ta-text); }\n.ta-console-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-console-facts dt { color: var(--ta-muted); }\n.ta-console-facts dd { margin: 0; min-width: 0; text-align: right; }\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; color: var(--ta-secondary); }\n.ta-console-loading { align-self: center; margin: 40px 0; }\n.ta-console .ta-phone-stack-top { background: var(--ta-list-bg); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-console-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n .ta-console-stats.ta-console-stats-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n}\n.ta-console-content { gap: 14px; }\n.ta-console-content > .ta-segmented { align-self: stretch; }\n.ta-console-stat-value.ta-bad { color: var(--ta-red); }\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.ta-console-meter-hint { font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); }\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(22px * var(--ta-font-scale)); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }\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-loading { height: 160px; border-radius: 8px; background: var(--ta-chip); opacity: 0.5; }\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-hit { fill: transparent; }\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-bar > span.ta-part { background: var(--ta-blue); }\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; }\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-limits { gap: 0; padding: 4px 14px; }\n.ta-console-limit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }\n.ta-console-limit + .ta-console-limit, .ta-console-chips + .ta-console-limit { border-top: 1px solid var(--ta-border-muted); }\n.ta-console-limit-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-console-limit-hint { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-console-limit-control { flex: none; display: flex; align-items: center; gap: 6px; }\n.ta-console-select { width: auto; min-width: 104px; height: 32px; padding: 0 8px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-console-number { width: 84px; height: 32px; font-variant-numeric: tabular-nums; }\n.ta-console-number.ta-invalid { border-color: var(--ta-red); }\n.ta-console-chips { display: flex; flex-wrap: wrap; gap: 6px; }\n.ta-console-limits .ta-console-chips { padding: 0 0 10px; }\n.ta-console-chip-toggle { 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); transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-console-chip-toggle:hover:not(:disabled) { color: var(--ta-text); }\n.ta-console-chip-toggle.ta-on { border-color: transparent; background: var(--ta-segment); color: var(--ta-text); font-weight: 500; }\n.ta-console-chip-count { font-variant-numeric: tabular-nums; color: var(--ta-muted); }\n.ta-console-form-actions { justify-content: flex-end; padding: 10px 0; border-top: 1px solid var(--ta-border-muted); }\n.ta-console-role-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--ta-border-muted); background: var(--ta-list-cell); font-size: calc(13.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-console-role-row > span { flex: 1; }\n.ta-console-toolbar { display: flex; gap: 8px; }\n.ta-console-search { flex: 1; }\n.ta-console-agent-block { position: relative; }\n.ta-console-agent-block + .ta-console-agent-block::before { content: ''; position: absolute; top: 0; right: 0; left: 33px; height: 1px; background: var(--ta-border-muted); }\nbutton.ta-console-agent { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; transition: background 120ms; }\nbutton.ta-console-agent:hover { background: var(--ta-hover); }\n.ta-console-activity { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 12px 33px; }\n.ta-console-activity-summary { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); padding-bottom: 4px; }\n.ta-console-activity-empty { margin: 0; padding: 0 14px 12px 33px; }\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-name { flex: none; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-console-activity-error { flex: 1; min-width: 0; color: var(--ta-red); }\n.ta-console-activity-time { flex: none; margin-left: auto; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-console-audit { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-console-audit + .ta-console-audit { border-top: 1px solid var(--ta-border-muted); }\n.ta-console-audit-text { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px; }\n.ta-console-audit-text strong { font-weight: 500; }\n.ta-console-audit-detail { color: var(--ta-muted); }\n.ta-console-foot { text-align: center; }\n.ta-setting-row .ta-console-usage, .ta-setting-row .ta-console-invite { width: 100%; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse) {\n .ta-console-share { grid-template-columns: minmax(0, 1fr) 64px 56px; }\n .ta-console-limit { flex-direction: column; align-items: stretch; }\n .ta-console-limit-control { justify-content: flex-end; }\n .ta-console-select, .ta-console-number { font-size: max(16px, calc(13px * var(--ta-font-scale))); }\n .ta-console-card-controls { width: 100%; }\n .ta-console-card-controls .ta-segmented { flex: 1; }\n}\n";
3
3
  //# sourceMappingURL=pages.d.ts.map
@@ -408,6 +408,7 @@ button.ta-console-agent:hover { background: var(--ta-hover); }
408
408
  .ta-console-audit-text strong { font-weight: 500; }
409
409
  .ta-console-audit-detail { color: var(--ta-muted); }
410
410
  .ta-console-foot { text-align: center; }
411
+ .ta-setting-row .ta-console-usage, .ta-setting-row .ta-console-invite { width: 100%; }
411
412
  @media ${device_protocol_1.DeviceMedia.COMPACT} {
412
413
  .ta-console-share { grid-template-columns: minmax(0, 1fr) 64px 56px; }
413
414
  .ta-console-limit { flex-direction: column; align-items: stretch; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-web",
3
- "version": "4.15.2",
3
+ "version": "4.16.0",
4
4
  "description": "The web client of ta serve: sessions, streaming messages, tool runs with diffs, and dialogs",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -33,12 +33,12 @@
33
33
  "watch": "tsc -b -w --preserveWatchOutput"
34
34
  },
35
35
  "dependencies": {
36
- "@celljs/core": "4.15.2",
37
- "@celljs/react": "4.15.2",
38
- "@celljs/ta-client": "4.15.2",
39
- "@celljs/ta-protocol": "4.15.2",
40
- "@celljs/ta-relay": "4.15.2",
41
- "@celljs/widget": "4.15.2",
36
+ "@celljs/core": "4.16.0",
37
+ "@celljs/react": "4.16.0",
38
+ "@celljs/ta-client": "4.16.0",
39
+ "@celljs/ta-protocol": "4.16.0",
40
+ "@celljs/ta-relay": "4.16.0",
41
+ "@celljs/widget": "4.16.0",
42
42
  "@types/three": "^0.187.0",
43
43
  "@xterm/addon-fit": "^0.11.0",
44
44
  "@xterm/addon-unicode11": "^0.9.0",