@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.
- package/esm/browser/components/app-view.js +7 -1
- package/esm/browser/components/chat-list.d.ts +3 -1
- package/esm/browser/components/chat-list.js +9 -4
- package/esm/browser/components/chat-seen.d.ts +7 -0
- package/esm/browser/components/chat-seen.js +57 -10
- package/esm/browser/components/environment-view.js +50 -1
- package/esm/browser/components/folder-picker.js +3 -3
- package/esm/browser/components/host-tag.js +2 -2
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/remote-hosts.js +66 -5
- package/esm/browser/extension/icons.js +23 -4
- package/esm/browser/gateway/console-parts.d.ts +3 -1
- package/esm/browser/gateway/console-parts.js +11 -4
- package/esm/browser/gateway/console-tenant.js +1 -1
- package/esm/browser/gateway/console-util.js +2 -2
- package/esm/browser/gateway/console-view.js +10 -2
- package/esm/browser/i18n/locales.d.ts +30 -3
- package/esm/browser/i18n/messages-ja.js +27 -0
- package/esm/browser/i18n/messages-zh-tw.js +27 -0
- package/esm/browser/i18n/messages.d.ts +27 -0
- package/esm/browser/i18n/messages.js +54 -0
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +1 -0
- package/lib/browser/components/app-view.js +7 -1
- package/lib/browser/components/chat-list.d.ts +3 -1
- package/lib/browser/components/chat-list.js +9 -4
- package/lib/browser/components/chat-seen.d.ts +7 -0
- package/lib/browser/components/chat-seen.js +57 -10
- package/lib/browser/components/environment-view.js +49 -0
- package/lib/browser/components/folder-picker.js +2 -2
- package/lib/browser/components/host-tag.js +1 -1
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/remote-hosts.js +65 -4
- package/lib/browser/extension/icons.js +22 -3
- package/lib/browser/gateway/console-parts.d.ts +3 -1
- package/lib/browser/gateway/console-parts.js +11 -4
- package/lib/browser/gateway/console-tenant.js +1 -1
- package/lib/browser/gateway/console-util.js +2 -2
- package/lib/browser/gateway/console-view.js +9 -1
- package/lib/browser/i18n/locales.d.ts +30 -3
- package/lib/browser/i18n/messages-ja.js +27 -0
- package/lib/browser/i18n/messages-zh-tw.js +27 -0
- package/lib/browser/i18n/messages.d.ts +27 -0
- package/lib/browser/i18n/messages.js +54 -0
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +1 -0
- package/package.json +7 -7
|
@@ -187,6 +187,31 @@ export const JA_MESSAGES = {
|
|
|
187
187
|
'ta.console.failed': 'コンソールを読み込めませんでした',
|
|
188
188
|
'ta.console.never': 'なし',
|
|
189
189
|
'ta.console.since': 'ゲートウェイ起動 {time}',
|
|
190
|
+
'ta.console.monthlyTokens': '月間トークン',
|
|
191
|
+
'ta.console.monthlyTokensHint': 'ゲートウェイがモデル呼び出しを中継するときに数え、超えたら拒否します',
|
|
192
|
+
'ta.console.monthlyTokensOff': 'ゲートウェイがモデルを提供して(models.json)初めて有効です',
|
|
193
|
+
'ta.console.tokensMetered': 'ゲートウェイ計測',
|
|
194
|
+
'ta.console.tokensReported': 'セッションの記録による',
|
|
195
|
+
'ta.console.models': 'ゲートウェイのモデル',
|
|
196
|
+
'ta.console.modelsNone': '未設定:メンバーは自分のキーを使い、トークンは表示のみです。ゲートウェイの models.json に設定すると、モデルを提供し上限を設けられます。',
|
|
197
|
+
'ta.console.modelsOf': '{api} · {count} モデル',
|
|
198
|
+
'ta.console.modelsHint': 'サンドボックスは専用キーでゲートウェイ経由で呼び出します。プロバイダーのキーはゲートウェイだけが持ちます。',
|
|
199
|
+
'ta.remote.addCloud': 'クラウドワークスペースを追加',
|
|
200
|
+
'ta.remote.cloudTitle': 'クラウドワークスペース',
|
|
201
|
+
'ta.remote.cloudDescription': 'Ta ゲートウェイ上のあなたのサンドボックスに ssh ではなくアドレスで接続します。会話はそのディレクトリで作業し、エージェントはこのコンピュータに残ります。',
|
|
202
|
+
'ta.remote.cloudUrl': 'ゲートウェイのアドレス',
|
|
203
|
+
'ta.remote.cloudToken': 'アクセストークン',
|
|
204
|
+
'ta.remote.cloudName': '名前(ta://名前/… に使います)',
|
|
205
|
+
'ta.remote.cloudHint': 'トークンはゲートウェイの 設定 → 実行環境 → 他の Ta から使う で作成します。',
|
|
206
|
+
'ta.remote.cloudConnect': '接続して追加',
|
|
207
|
+
'ta.remote.cloudAdded': '{name} を追加しました。フォルダ選択で選べます',
|
|
208
|
+
'ta.remote.openCloud': 'クラウドの Ta を開く',
|
|
209
|
+
'ta.remote.openCloudHint': 'エージェントも含めて Ta 全体がクラウドで動きます',
|
|
210
|
+
'ta.environment.elsewhere': '他の Ta から使う',
|
|
211
|
+
'ta.environment.elsewhereHint': 'お使いのコンピュータの Ta がこのサンドボックスをクラウドワークスペースとして使います。エージェントはコンピュータ側です。',
|
|
212
|
+
'ta.environment.makeToken': 'トークンを作成',
|
|
213
|
+
'ta.environment.tokenLabel': '他の Ta',
|
|
214
|
+
'ta.environment.tokenHint': '一度だけ表示されます。コンピュータの Ta で 設定 → リモートホスト → クラウドワークスペースを追加。使わなくなったら「アクセス」でサインアウトしてください。',
|
|
190
215
|
'ta.console.activityNone': 'まだツール呼び出しはありません',
|
|
191
216
|
'ta.console.activityRunning': '実行中',
|
|
192
217
|
'ta.console.activitySummary': '直近 {count} 回の呼び出し、失敗 {failed} 回',
|
|
@@ -374,6 +399,8 @@ export const JA_MESSAGES = {
|
|
|
374
399
|
'ta.chat.restoreShort': '戻す',
|
|
375
400
|
'ta.chat.pin': 'トップに固定',
|
|
376
401
|
'ta.chat.unpin': '固定を解除',
|
|
402
|
+
'ta.chat.markUnseen': '未読にする',
|
|
403
|
+
'ta.chat.markSeen': '既読にする',
|
|
377
404
|
'ta.chat.pinned': '固定',
|
|
378
405
|
'ta.chat.unseen': '新しい返信があります',
|
|
379
406
|
'ta.chat.asking': 'あなたの判断待ち',
|
|
@@ -188,6 +188,31 @@ export const ZH_TW_MESSAGES = {
|
|
|
188
188
|
'ta.console.failed': '控制台沒有載入',
|
|
189
189
|
'ta.console.never': '從未',
|
|
190
190
|
'ta.console.since': '閘道啟動於 {time}',
|
|
191
|
+
'ta.console.monthlyTokens': '每月 tokens',
|
|
192
|
+
'ta.console.monthlyTokensHint': '閘道轉發模型呼叫時計數,超出後拒絕呼叫',
|
|
193
|
+
'ta.console.monthlyTokensOff': '閘道提供模型(閘道目錄下的 models.json)後才生效',
|
|
194
|
+
'ta.console.tokensMetered': '閘道計量',
|
|
195
|
+
'ta.console.tokensReported': '依對話紀錄',
|
|
196
|
+
'ta.console.models': '閘道提供的模型',
|
|
197
|
+
'ta.console.modelsNone': '未設定:成員用自己的金鑰,tokens 只顯示不限額。在閘道目錄的 models.json 裡設定提供方後,才能統一提供模型並限額。',
|
|
198
|
+
'ta.console.modelsOf': '{api} · {count} 個模型',
|
|
199
|
+
'ta.console.modelsHint': '沙箱用各自的專用金鑰經閘道呼叫,提供方的真實金鑰只在閘道上。',
|
|
200
|
+
'ta.remote.addCloud': '新增雲端工作區',
|
|
201
|
+
'ta.remote.cloudTitle': '雲端工作區',
|
|
202
|
+
'ta.remote.cloudDescription': '你在 Ta 閘道上的沙箱,依位址直連而非 ssh:本機的對話在它的目錄裡工作,智慧體仍在本機。',
|
|
203
|
+
'ta.remote.cloudUrl': '閘道位址',
|
|
204
|
+
'ta.remote.cloudToken': '存取權杖',
|
|
205
|
+
'ta.remote.cloudName': '名稱,用於 ta://名稱/…',
|
|
206
|
+
'ta.remote.cloudHint': '在閘道的 設定 → 執行環境 → 在其他 Ta 裡使用 產生權杖。',
|
|
207
|
+
'ta.remote.cloudConnect': '連線並新增',
|
|
208
|
+
'ta.remote.cloudAdded': '已新增 {name},可在選擇目錄時選它',
|
|
209
|
+
'ta.remote.openCloud': '開啟雲端 Ta',
|
|
210
|
+
'ta.remote.openCloudHint': '整個 Ta 都在雲端執行,包括智慧體',
|
|
211
|
+
'ta.environment.elsewhere': '在其他 Ta 裡使用',
|
|
212
|
+
'ta.environment.elsewhereHint': '讓你電腦上的 Ta 把這個沙箱當作雲端工作區,智慧體仍在電腦上。',
|
|
213
|
+
'ta.environment.makeToken': '產生權杖',
|
|
214
|
+
'ta.environment.tokenLabel': '其他 Ta',
|
|
215
|
+
'ta.environment.tokenHint': '只顯示一次。在電腦上的 Ta:設定 → 遠端主機 → 新增雲端工作區。不用時在「存取」裡登出它。',
|
|
191
216
|
'ta.console.activityNone': '還沒有工具呼叫',
|
|
192
217
|
'ta.console.activityRunning': '進行中',
|
|
193
218
|
'ta.console.activitySummary': '最近 {count} 次呼叫,{failed} 次失敗',
|
|
@@ -375,6 +400,8 @@ export const ZH_TW_MESSAGES = {
|
|
|
375
400
|
'ta.chat.restoreShort': '放回',
|
|
376
401
|
'ta.chat.pin': '置頂',
|
|
377
402
|
'ta.chat.unpin': '取消置頂',
|
|
403
|
+
'ta.chat.markUnseen': '標為未讀',
|
|
404
|
+
'ta.chat.markSeen': '標為已讀',
|
|
378
405
|
'ta.chat.pinned': '置頂',
|
|
379
406
|
'ta.chat.unseen': '有新回覆未檢視',
|
|
380
407
|
'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;
|
|
@@ -195,6 +195,31 @@ export const EN_MESSAGES = {
|
|
|
195
195
|
'ta.console.failed': 'The console did not load',
|
|
196
196
|
'ta.console.never': 'Never',
|
|
197
197
|
'ta.console.since': 'Gateway up since {time}',
|
|
198
|
+
'ta.console.monthlyTokens': 'Tokens a month',
|
|
199
|
+
'ta.console.monthlyTokensHint': 'Counted by the gateway as it passes calls of its models; past them calls are refused',
|
|
200
|
+
'ta.console.monthlyTokensOff': 'Holds only once the gateway gives models (models.json of the gateway)',
|
|
201
|
+
'ta.console.tokensMetered': 'Counted by the gateway',
|
|
202
|
+
'ta.console.tokensReported': 'As the sessions say',
|
|
203
|
+
'ta.console.models': 'Models of the gateway',
|
|
204
|
+
'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.',
|
|
205
|
+
'ta.console.modelsOf': '{api} · {count, plural, one {# model} other {# models}}',
|
|
206
|
+
'ta.console.modelsHint': 'Sandboxes call them through the gateway with a key of their own; the keys of providers stay here.',
|
|
207
|
+
'ta.remote.addCloud': 'Add a cloud workspace',
|
|
208
|
+
'ta.remote.cloudTitle': 'Cloud workspaces',
|
|
209
|
+
'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.',
|
|
210
|
+
'ta.remote.cloudUrl': 'Gateway address',
|
|
211
|
+
'ta.remote.cloudToken': 'Access token',
|
|
212
|
+
'ta.remote.cloudName': 'Name, as ta://name/…',
|
|
213
|
+
'ta.remote.cloudHint': 'Make the token on the gateway: Settings, Environment, Use it from another Ta.',
|
|
214
|
+
'ta.remote.cloudConnect': 'Connect and add',
|
|
215
|
+
'ta.remote.cloudAdded': '{name} added: pick it in the folder picker',
|
|
216
|
+
'ta.remote.openCloud': 'Open its Ta',
|
|
217
|
+
'ta.remote.openCloudHint': 'The whole Ta there, its agent in the cloud too',
|
|
218
|
+
'ta.environment.elsewhere': 'Use it from another Ta',
|
|
219
|
+
'ta.environment.elsewhereHint': 'Ta on your computer works in this sandbox as a cloud workspace, its agent on your computer.',
|
|
220
|
+
'ta.environment.makeToken': 'Make a token',
|
|
221
|
+
'ta.environment.tokenLabel': 'Another Ta',
|
|
222
|
+
'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.',
|
|
198
223
|
'ta.console.activityNone': 'Nothing done yet',
|
|
199
224
|
'ta.console.activityRunning': 'Running',
|
|
200
225
|
'ta.console.activitySummary': 'Last {count, plural, one {# call} other {# calls}}, {failed} failed',
|
|
@@ -382,6 +407,8 @@ export const EN_MESSAGES = {
|
|
|
382
407
|
'ta.chat.restoreShort': 'Put back',
|
|
383
408
|
'ta.chat.pin': 'Pin to top',
|
|
384
409
|
'ta.chat.unpin': 'Unpin',
|
|
410
|
+
'ta.chat.markUnseen': 'Mark as unread',
|
|
411
|
+
'ta.chat.markSeen': 'Mark as read',
|
|
385
412
|
'ta.chat.pinned': 'Pinned',
|
|
386
413
|
'ta.chat.unseen': 'New, not seen yet',
|
|
387
414
|
'ta.chat.asking': 'Your call',
|
|
@@ -1353,6 +1380,31 @@ export const ZH_MESSAGES = {
|
|
|
1353
1380
|
'ta.console.failed': '控制台没有加载出来',
|
|
1354
1381
|
'ta.console.never': '从未',
|
|
1355
1382
|
'ta.console.since': '网关启动于 {time}',
|
|
1383
|
+
'ta.console.monthlyTokens': '每月 tokens',
|
|
1384
|
+
'ta.console.monthlyTokensHint': '网关转发模型调用时计数,超出后拒绝调用',
|
|
1385
|
+
'ta.console.monthlyTokensOff': '网关提供模型(网关目录下的 models.json)后才生效',
|
|
1386
|
+
'ta.console.tokensMetered': '网关计量',
|
|
1387
|
+
'ta.console.tokensReported': '按会话记录',
|
|
1388
|
+
'ta.console.models': '网关提供的模型',
|
|
1389
|
+
'ta.console.modelsNone': '未配置:成员用自己的密钥,tokens 只展示不限额。在网关目录的 models.json 里配置提供方后,才能统一提供模型并限额。',
|
|
1390
|
+
'ta.console.modelsOf': '{api} · {count} 个模型',
|
|
1391
|
+
'ta.console.modelsHint': '沙箱用各自的专用密钥经网关调用,提供方的真实密钥只在网关上。',
|
|
1392
|
+
'ta.remote.addCloud': '添加云端工作区',
|
|
1393
|
+
'ta.remote.cloudTitle': '云端工作区',
|
|
1394
|
+
'ta.remote.cloudDescription': '你在 Ta 网关上的沙箱,按地址直连而不是 ssh:本机的对话在它的目录里工作,智能体仍在本机。',
|
|
1395
|
+
'ta.remote.cloudUrl': '网关地址',
|
|
1396
|
+
'ta.remote.cloudToken': '访问令牌',
|
|
1397
|
+
'ta.remote.cloudName': '名字,用于 ta://名字/…',
|
|
1398
|
+
'ta.remote.cloudHint': '在网关的 设置 → 运行环境 → 在其他 Ta 里使用 生成令牌。',
|
|
1399
|
+
'ta.remote.cloudConnect': '连接并添加',
|
|
1400
|
+
'ta.remote.cloudAdded': '已添加 {name},可在选择目录时选它',
|
|
1401
|
+
'ta.remote.openCloud': '打开云端 Ta',
|
|
1402
|
+
'ta.remote.openCloudHint': '整个 Ta 都在云端运行,包括智能体',
|
|
1403
|
+
'ta.environment.elsewhere': '在其他 Ta 里使用',
|
|
1404
|
+
'ta.environment.elsewhereHint': '让你电脑上的 Ta 把这个沙箱当作云端工作区,智能体仍在电脑上。',
|
|
1405
|
+
'ta.environment.makeToken': '生成令牌',
|
|
1406
|
+
'ta.environment.tokenLabel': '其他 Ta',
|
|
1407
|
+
'ta.environment.tokenHint': '只显示一次。在电脑上的 Ta:设置 → 远程主机 → 添加云端工作区。不用时在「访问」里登出它。',
|
|
1356
1408
|
'ta.console.activityNone': '还没有工具调用',
|
|
1357
1409
|
'ta.console.activityRunning': '进行中',
|
|
1358
1410
|
'ta.console.activitySummary': '最近 {count} 次调用,{failed} 次失败',
|
|
@@ -1540,6 +1592,8 @@ export const ZH_MESSAGES = {
|
|
|
1540
1592
|
'ta.chat.restoreShort': '放回',
|
|
1541
1593
|
'ta.chat.pin': '置顶',
|
|
1542
1594
|
'ta.chat.unpin': '取消置顶',
|
|
1595
|
+
'ta.chat.markUnseen': '标为未读',
|
|
1596
|
+
'ta.chat.markSeen': '标为已读',
|
|
1543
1597
|
'ta.chat.pinned': '置顶',
|
|
1544
1598
|
'ta.chat.unseen': '有新回复未查看',
|
|
1545
1599
|
'ta.chat.asking': '等你决定',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The settings page, the menus of the account, the lists of Discover and Me, and the fade of what streams in. */
|
|
2
|
-
export declare const PAGES_STYLE = "\n/* The settings: a page of the main area, a table of contents in two levels beside the sections */\n.ta-settings-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-settings-head { justify-content: flex-start; gap: 10px; border-bottom: 1px solid var(--ta-border-muted); }\n.ta-settings-title { flex: none; font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; padding-left: 8px; }\n.ta-settings-search { flex: 1; max-width: 420px; height: 32px; margin: 0 auto; display: flex; align-items: center; gap: 6px; color: var(--ta-muted); }\n.ta-settings-search input { color: var(--ta-text); }\n.ta-settings-search .ta-icon-button { width: 22px; height: 22px; }\n.ta-settings-body { flex: 1; min-height: 0; display: flex; }\n.ta-settings-toc { flex: none; width: 200px; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--ta-border-muted); }\n.ta-settings-toc-part { display: flex; flex-direction: column; gap: 1px; }\n.ta-settings-toc-group { border: 0; background: none; text-align: left; padding: 2px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-muted); }\n.ta-settings-toc-group:hover { color: var(--ta-text); }\n.ta-settings-toc-item { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-settings-toc-item .ta-icon { flex: none; color: var(--ta-muted); }\n.ta-settings-toc-item:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-settings-toc-item.ta-active { background: var(--ta-selected); color: var(--ta-text); font-weight: 500; }\n.ta-settings-scroll { flex: 1; min-width: 0; overflow-y: auto; scroll-padding-top: 16px; }\n.ta-settings-content { max-width: 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";
|
|
@@ -405,6 +405,7 @@ button.ta-console-agent:hover { background: var(--ta-hover); }
|
|
|
405
405
|
.ta-console-audit-text strong { font-weight: 500; }
|
|
406
406
|
.ta-console-audit-detail { color: var(--ta-muted); }
|
|
407
407
|
.ta-console-foot { text-align: center; }
|
|
408
|
+
.ta-setting-row .ta-console-usage, .ta-setting-row .ta-console-invite { width: 100%; }
|
|
408
409
|
@media ${DeviceMedia.COMPACT} {
|
|
409
410
|
.ta-console-share { grid-template-columns: minmax(0, 1fr) 64px 56px; }
|
|
410
411
|
.ta-console-limit { flex-direction: column; align-items: stretch; }
|
|
@@ -442,7 +442,13 @@ function AppShell() {
|
|
|
442
442
|
showPage('');
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
|
-
const chats = (React.createElement(assistant_chat_list_1.AssistantChatList, { sessions: workbench.sessions, saved: workbench.saved, removed: removedChats, archived: workbench.archived, onArchive: readArchived, foldDays: chatSettings.chatFoldDays, archiveDays: chatSettings.chatArchiveDays, selected: view || phone ? undefined : (pending !== null && pending !== void 0 ? pending : store === null || store === void 0 ? void 0 : store.sessionId), chat: chat, byDirectory: chatsByDirectory, onByDirectory: setChatsByDirectory, folded: foldedChats, onFolded: setFoldedChats, pinned: pinnedChats, onPinned: setPinnedChats, looking: looking, seen: seenChats,
|
|
445
|
+
const chats = (React.createElement(assistant_chat_list_1.AssistantChatList, { sessions: workbench.sessions, saved: workbench.saved, removed: removedChats, archived: workbench.archived, onArchive: readArchived, foldDays: chatSettings.chatFoldDays, archiveDays: chatSettings.chatArchiveDays, selected: view || phone ? undefined : (pending !== null && pending !== void 0 ? pending : store === null || store === void 0 ? void 0 : store.sessionId), chat: chat, byDirectory: chatsByDirectory, onByDirectory: setChatsByDirectory, folded: foldedChats, onFolded: setFoldedChats, pinned: pinnedChats, onPinned: setPinnedChats, looking: looking, seen: seenChats, onUnseen: (entry, unseen) => {
|
|
446
|
+
var _a;
|
|
447
|
+
const file = chat_list_1.ChatListUtil.file(entry);
|
|
448
|
+
const before = state.get(chat_seen_1.SEEN_CHATS);
|
|
449
|
+
const now = Date.now();
|
|
450
|
+
state.set(chat_seen_1.SEEN_CHATS, unseen ? chat_seen_1.ChatSeenUtil.markUnseen(before, file, now) : ((_a = chat_seen_1.ChatSeenUtil.look(before, file, entry.updatedAt, now)) !== null && _a !== void 0 ? _a : before));
|
|
451
|
+
}, letGo: letGoAsks, onLetGo: entry => {
|
|
446
452
|
var _a;
|
|
447
453
|
const at = (_a = entry.asking) === null || _a === void 0 ? void 0 : _a.at;
|
|
448
454
|
if (at !== undefined) {
|
|
@@ -179,6 +179,8 @@ export interface ChatListProps {
|
|
|
179
179
|
/** The asks the user let go (LET_GO_ASKS): the others wait for them at the top of the list. */
|
|
180
180
|
letGo: LetGoAsks;
|
|
181
181
|
onLetGo(entry: ChatEntry): void;
|
|
182
|
+
/** Marks it unread by hand (ChatSeenUtil.markUnseen), or read. */
|
|
183
|
+
onUnseen(entry: ChatEntry, unseen: boolean): void;
|
|
182
184
|
/** As a chat is picked, not once it is shown (it shows at once, while it opens): a drawer closes, a phone slides it in. */
|
|
183
185
|
onPicked(): void;
|
|
184
186
|
/** Under the head: the state of the connection on a phone (ConnectionBanner). */
|
|
@@ -191,5 +193,5 @@ export interface ChatListProps {
|
|
|
191
193
|
* opened or searched, and those taken out last, folded, to put back. However long, it draws the rows of
|
|
192
194
|
* its first screens, and more as it is scrolled to its end.
|
|
193
195
|
*/
|
|
194
|
-
export declare function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, }: ChatListProps): React.JSX.Element;
|
|
196
|
+
export declare function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, onUnseen, }: ChatListProps): React.JSX.Element;
|
|
195
197
|
//# sourceMappingURL=chat-list.d.ts.map
|
|
@@ -234,7 +234,7 @@ var ChatListUtil;
|
|
|
234
234
|
function filter(sessions, query, t) {
|
|
235
235
|
const words = query.trim().toLowerCase();
|
|
236
236
|
return sessions
|
|
237
|
-
.filter(session => { var _a; return !words || `${title(session, t)} ${(_a = session.group) !== null && _a !== void 0 ? _a : session.cwd}`.toLowerCase().includes(words); })
|
|
237
|
+
.filter(session => { var _a, _b; return !words || `${title(session, t)} ${(_a = session.group) !== null && _a !== void 0 ? _a : session.cwd} ${(_b = session.lastMessage) !== null && _b !== void 0 ? _b : ''}`.toLowerCase().includes(words); })
|
|
238
238
|
.sort((a, b) => b.updatedAt - a.updatedAt);
|
|
239
239
|
}
|
|
240
240
|
ChatListUtil.filter = filter;
|
|
@@ -412,6 +412,10 @@ const ChatItem = React.memo(function ChatItem({ session, source, selected, time,
|
|
|
412
412
|
{ label: t('ta.chat.open'), run: onSelect },
|
|
413
413
|
...(asking ? [{ label: t('ta.chat.letGo'), run: () => actions.letGo(session) }] : []),
|
|
414
414
|
...(onPin ? [{ label: t(pinned ? 'ta.chat.unpin' : 'ta.chat.pin'), run: onPin }] : []),
|
|
415
|
+
// As a messenger's, read or not by hand; not the one shown, which is seen as it is.
|
|
416
|
+
...(onRestore || selected || asking
|
|
417
|
+
? []
|
|
418
|
+
: [{ label: t(unseen ? 'ta.chat.markSeen' : 'ta.chat.markUnseen'), run: () => actions.markUnseen(session, !unseen) }]),
|
|
415
419
|
...(onHand ? [{ label: t('ta.chat.handToDouble'), run: onHand }] : []),
|
|
416
420
|
// What extensions add (Share…) before taking it out, which stays last.
|
|
417
421
|
...actions.extensionMenu(session, title),
|
|
@@ -492,7 +496,7 @@ const ChatItem = React.memo(function ChatItem({ session, source, selected, time,
|
|
|
492
496
|
* opened or searched, and those taken out last, folded, to put back. However long, it draws the rows of
|
|
493
497
|
* its first screens, and more as it is scrolled to its end.
|
|
494
498
|
*/
|
|
495
|
-
function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, }) {
|
|
499
|
+
function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSaved, onArchive, foldDays, archiveDays, selected, chat, byDirectory, onByDirectory, folded, onFolded, onPicked, double, notice, pinned, onPinned, looking, seen, letGo, onLetGo, onUnseen, }) {
|
|
496
500
|
const t = (0, use_t_1.useT)();
|
|
497
501
|
const now = useMinute();
|
|
498
502
|
const [query, setQuery] = React.useState('');
|
|
@@ -506,8 +510,8 @@ function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSa
|
|
|
506
510
|
const pageCount = typeof IntersectionObserver === 'undefined' ? Number.POSITIVE_INFINITY : paged.query === query ? paged.count : exports.CHAT_PAGE;
|
|
507
511
|
// What the rows do reads the props of now, through one object that stays the same: no row is drawn again for it.
|
|
508
512
|
const sessionMenus = React.useContext(extension_view_1.SessionMenus);
|
|
509
|
-
const latest = React.useRef({ chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo });
|
|
510
|
-
latest.current = { chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo };
|
|
513
|
+
const latest = React.useRef({ chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo, onUnseen });
|
|
514
|
+
latest.current = { chat, double, onPicked, t, pinned, onPinned, sessionMenus, onLetGo, onUnseen };
|
|
511
515
|
const actions = React.useMemo(() => {
|
|
512
516
|
const pick = (change) => {
|
|
513
517
|
void change;
|
|
@@ -530,6 +534,7 @@ function ChatList({ sessions, saved, removed: removedFiles, archived: archivedSa
|
|
|
530
534
|
latest.current.onPinned(pin ? [file, ...others] : others);
|
|
531
535
|
},
|
|
532
536
|
letGo: entry => latest.current.onLetGo(entry),
|
|
537
|
+
markUnseen: (entry, unseen) => latest.current.onUnseen(entry, unseen),
|
|
533
538
|
extensionMenu: (entry, title) => {
|
|
534
539
|
const open = ChatListUtil.isOpen(entry);
|
|
535
540
|
const session = {
|
|
@@ -7,6 +7,8 @@ export interface ChatSeen {
|
|
|
7
7
|
/** 0 until it is first kept: then nothing is unseen. */
|
|
8
8
|
since: number;
|
|
9
9
|
at: Record<string, number>;
|
|
10
|
+
/** Those the user marked unread, by file, and when: unseen until they are seen after it. */
|
|
11
|
+
unread?: Record<string, number>;
|
|
10
12
|
}
|
|
11
13
|
/** The same on every device: one seen on the phone is seen on the computer too. */
|
|
12
14
|
export declare const SEEN_CHATS: StateSpec<ChatSeen>;
|
|
@@ -45,6 +47,11 @@ export declare namespace ChatSeenUtil {
|
|
|
45
47
|
function seeAll(seen: ChatSeen, entries: readonly {
|
|
46
48
|
updatedAt: number;
|
|
47
49
|
}[], now: number): ChatSeen;
|
|
50
|
+
/**
|
|
51
|
+
* Marked unread by the user, as a messenger's: its dot until it is seen again (look). Marked later than it
|
|
52
|
+
* was seen, whatever the clocks: the page's and the computer's may differ.
|
|
53
|
+
*/
|
|
54
|
+
function markUnseen(seen: ChatSeen, file: string, now: number): ChatSeen;
|
|
48
55
|
/**
|
|
49
56
|
* Seen now, at rest, its last message at `updatedAt`: the kept value with it, or undefined when nothing
|
|
50
57
|
* changes. The clocks of the page and the computer may differ: it is seen at least as late as its last message.
|