reifyui 0.16.1 → 0.18.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.
@@ -57,6 +57,8 @@ const NS = /^(developer|platform|computercontroller|builtin|default|functions|to
57
57
  export function toolKind(name) {
58
58
  const raw = String(name || '').trim();
59
59
  if (!raw) return 'tool';
60
+ // a browser's tools read as the browser whichever server carries them (mcp__plugs__browser_click)
61
+ if (browserActOf(raw) !== null) return 'browser';
60
62
  if (/^mcp__/i.test(raw)) return 'mcp';
61
63
  const n = raw.toLowerCase().replace(NS, '');
62
64
  if (KIND_BY_NAME[n]) return KIND_BY_NAME[n];
@@ -197,6 +199,168 @@ function humanizeName(n) {
197
199
  .replace(/([a-z])([A-Z])/g, '$1 $2').trim().replace(/^\w/, (c) => c.toUpperCase());
198
200
  }
199
201
 
202
+ // ── the browser ───────────────────────────────────────────────────────────────────────────────────
203
+ // A browser call reads as what it did: "Opened duckduckgo.com", "Clicked the “About” link", "Typed
204
+ // into a field", "Took a screenshot". One table for every vocabulary: a browser plug's tools
205
+ // (browser_navigate, browser_click), Playwright MCP's (browser_take_screenshot, browser_navigate_back),
206
+ // a connected server's copy of either (mcp__plugs__browser_click, plugs.browser_click,
207
+ // plugs__browser_click), and one browser or computer tool that takes an `action`. What was typed is
208
+ // never in the line (it may be a password); the call's input shows it to whoever opens it.
209
+
210
+ // a browser tool inside a connected server's namespace, and a server that is itself a browser
211
+ const NS_BROWSER = /^(?:mcp__.+?__|[a-z0-9_-]+?(?:__|\.))(browser[_\-.].+)$/i;
212
+ const BROWSER_SERVER = /^(?:mcp__)?(?:browser|playwright|puppeteer|browserbase|browser[_-]use|chrome[_-]?devtools)(?:__|\.)(.+)$/i;
213
+
214
+ /** The action a browser tool's name carries ("click" for mcp__plugs__browser_click), '' for a browser
215
+ * tool whose name carries none (`browser`, `computer`: the action is an argument), null for a tool
216
+ * that is not a browser's. */
217
+ export function browserActOf(name) {
218
+ const raw = String(name || '').trim();
219
+ if (!raw) return null;
220
+ const n = raw.toLowerCase().replace(NS, '');
221
+ if (KIND_BY_NAME[n] === 'browser') return n === 'navigate' || n === 'screenshot' ? n : '';
222
+ let m = n.match(/^(?:browser|playwright|computer)[_\-.](.+)$/);
223
+ if (m) return m[1];
224
+ m = raw.match(NS_BROWSER);
225
+ if (m) return m[1].replace(/^browser[_\-.]/i, '').toLowerCase();
226
+ m = raw.match(BROWSER_SERVER);
227
+ if (m) return m[1].replace(/^browser[_\-.]/i, '').toLowerCase();
228
+ if (/[_\-.]browser$/.test(n)) return '';
229
+ return null;
230
+ }
231
+
232
+ const ROLE_NOUN = { link: 'link', button: 'button', submit: 'button', textbox: 'field', searchbox: 'search field',
233
+ combobox: 'list', listbox: 'list', checkbox: 'checkbox', radio: 'option', option: 'option', tab: 'tab',
234
+ menuitem: 'menu item', heading: 'heading', img: 'image', image: 'image', switch: 'switch', slider: 'slider' };
235
+
236
+ function cut(s, max) { const t = str(s).replace(/\s+/g, ' ').trim(); return t.length > max ? `${t.slice(0, max - 1).trimEnd()}…` : t; }
237
+
238
+ /** The element a call acts on, in words: the host's description of it, the snapshot's line for its
239
+ * ref (`element`, from browserElements), or what its selector says it is; '' when nothing says. */
240
+ function elementWords(a, element, act) {
241
+ const desc = str(firstOf(a, ['element', 'element_description', 'description', 'label'])).trim();
242
+ if (desc) return cut(desc, 60);
243
+ if (element && element.role) {
244
+ const noun = ROLE_NOUN[String(element.role).toLowerCase()] || '';
245
+ const name = cut(element.name, 40);
246
+ if (noun && name) return `the “${name}” ${noun}`;
247
+ if (noun) return `a ${noun}`;
248
+ if (name) return `“${name}”`;
249
+ }
250
+ const sel = str(a.selector).trim().toLowerCase();
251
+ if (sel) {
252
+ if (/^a(?=$|[\s.#[:>])|role=["']?link/.test(sel)) return 'a link';
253
+ if (/^button|\[type=["']?submit|role=["']?button/.test(sel)) return 'a button';
254
+ if (/^(input|textarea)|role=["']?(textbox|searchbox)|contenteditable/.test(sel)) return 'a field';
255
+ if (/^select|role=["']?(combobox|listbox)/.test(sel)) return 'a list';
256
+ }
257
+ // a click by its text (some tools find the element that way); typed text is never named
258
+ if (act === 'click') { const t = str(a.text).trim(); if (t) return `“${cut(t, 40)}”`; }
259
+ return '';
260
+ }
261
+
262
+ function msWords(ms) { const s = Math.round(Number(ms) / 100) / 10; return s >= 1 ? `${s}s` : `${Math.round(Number(ms))} ms`; }
263
+
264
+ // [actions, running, done, target(args, element, act) -> string, [running, done] when there is no target]
265
+ const BROWSER_ACTS = [
266
+ [/^(navigate|goto|go_to|open|open_url|visit|new_tab|tab_new|browse|go)$/, 'Opening', 'Opened',
267
+ (a) => { const u = str(firstOf(a, ['url', 'href', 'uri', 'link', 'address'])); return u ? shortUrl(u) : ''; }, ['Opening a page', 'Opened a page']],
268
+ [/^(navigate_back|back|go_back|history_back)$/, '', '', null, ['Going back a page', 'Went back a page']],
269
+ [/^(navigate_forward|forward|go_forward)$/, '', '', null, ['Going forward a page', 'Went forward a page']],
270
+ [/^(reload|refresh)$/, '', '', null, ['Reloading the page', 'Reloaded the page']],
271
+ [/^(click|left_click|double_click|right_click|triple_click|middle_click|tap|click_element)$/, 'Clicking', 'Clicked',
272
+ (a, e, act) => elementWords(a, e, act), ['Clicking on the page', 'Clicked on the page']],
273
+ [/^(hover|mouse_move|move_mouse)$/, 'Pointing at', 'Pointed at', (a, e, act) => elementWords(a, e, act), ['Moving the pointer', 'Moved the pointer']],
274
+ [/^(type|fill|input|input_text|type_text|insert_text|fill_form|send_keys_to)$/, 'Typing into', 'Typed into',
275
+ (a, e, act) => elementWords(a, e, act), ['Typing into a field', 'Typed into a field']],
276
+ [/^(select|select_option|choose|select_dropdown_option)$/, 'Choosing an option in', 'Chose an option in',
277
+ (a, e, act) => elementWords(a, e, act), ['Choosing an option', 'Chose an option']],
278
+ [/^(press|press_key|key|keypress|send_keys|hotkey)$/, 'Pressing', 'Pressed',
279
+ (a) => cut(firstOf(a, ['key', 'keys', 'text']), 30), ['Pressing a key', 'Pressed a key']],
280
+ [/^(scroll|scroll_down|scroll_up|wheel|scroll_page)$/, 'Scrolling', 'Scrolled', (a, e, act) => {
281
+ const d = str(firstOf(a, ['direction', 'scroll_direction'])).toLowerCase();
282
+ if (/^(up|down|left|right)$/.test(d)) return d;
283
+ if (/_up$/.test(act)) return 'up';
284
+ if (/_down$/.test(act)) return 'down';
285
+ const dy = Number(firstOf(a, ['pixels', 'delta_y', 'deltaY', 'amount', 'scroll_amount']));
286
+ return Number.isFinite(dy) && dy < 0 ? 'up' : Number.isFinite(dy) && dy > 0 ? 'down' : '';
287
+ }, ['Scrolling the page', 'Scrolled the page']],
288
+ [/^(screenshot|take_screenshot|capture|capture_screenshot)$/, '', '', null, ['Taking a screenshot', 'Took a screenshot'],
289
+ (a) => (a.full_page || a.fullPage ? ['Taking a screenshot of the whole page', 'Took a screenshot of the whole page'] : null)],
290
+ [/^(snapshot|read|read_page|get_page|accessibility_snapshot|page_content|get_content|get_elements|observe)$/, '', '', null, ['Reading the page', 'Read the page']],
291
+ [/^(extract_text|get_text|extract|text|extract_content|get_page_text)$/, '', '', null, ['Reading the page’s text', 'Read the page’s text']],
292
+ [/^(get_url|url|current_url|location|get_title)$/, '', '', null, ['Checking the address', 'Checked the address']],
293
+ [/^(wait|wait_for|wait_for_text|wait_for_selector|sleep)$/, 'Waiting', 'Waited', (a) => {
294
+ const t = str(a.text).trim();
295
+ if (t) return `for “${cut(t, 40)}”`;
296
+ if (str(a.selector).trim()) return 'for the page';
297
+ // milliseconds (the browser plug's `ms`), or seconds (Playwright MCP's `time`)
298
+ const ms = a.ms != null ? Number(a.ms) : a.time != null ? Number(a.time) * 1000 : Number(firstOf(a, ['timeout', 'duration']));
299
+ return Number.isFinite(ms) && ms > 0 ? msWords(ms) : '';
300
+ }, ['Waiting', 'Waited']],
301
+ [/^(tabs|list_tabs|tab_list|get_tabs)$/, '', '', null, ['Listing the tabs', 'Listed the tabs']],
302
+ [/^(switch_tab|tab_select|select_tab|focus_tab|switch_to_tab)$/, '', '', null, ['Switching tabs', 'Switched tabs']],
303
+ [/^(close_tab|tab_close)$/, '', '', null, ['Closing a tab', 'Closed a tab']],
304
+ [/^(close|quit|close_browser)$/, '', '', null, ['Closing the browser', 'Closed the browser']],
305
+ [/^(drag|drag_and_drop|left_click_drag)$/, '', '', null, ['Dragging on the page', 'Dragged on the page']],
306
+ [/^(file_upload|upload|upload_file|set_input_files)$/, '', '', null, ['Uploading a file', 'Uploaded a file']],
307
+ [/^(handle_dialog|dialog|accept_dialog|dismiss_dialog)$/, '', '', null, ['Answering a dialog', 'Answered a dialog']],
308
+ [/^(resize|set_viewport|resize_window)$/, '', '', null, ['Resizing the window', 'Resized the window']],
309
+ [/^(evaluate|run_code|execute_js|eval|execute_script|run_javascript)$/, '', '', null, ['Running a script on the page', 'Ran a script on the page']],
310
+ [/^(console_messages|console|get_console)$/, '', '', null, ['Reading the console', 'Read the console']],
311
+ [/^(network_requests|network|get_network)$/, '', '', null, ['Reading the network requests', 'Read the network requests']],
312
+ [/^(pdf_save|save_pdf|pdf|print_pdf)$/, '', '', null, ['Saving the page as a PDF', 'Saved the page as a PDF']],
313
+ [/^(cursor_position)$/, '', '', null, ['Finding the pointer', 'Found the pointer']],
314
+ [/^(install)$/, '', '', null, ['Installing the browser', 'Installed the browser']],
315
+ ];
316
+
317
+ /** A browser call in words: {running, done, target}. `element` is the snapshot's line for the call's
318
+ * ref ({role, name}, from browserElements), when the host has it. Never "a tool". */
319
+ function describeBrowser(name, a, element) {
320
+ const fromName = browserActOf(name) || '';
321
+ const fromArgs = str(firstOf(a, ['action', 'command', 'type'])).trim();
322
+ const act = (fromName && fromName !== 'use' ? fromName : fromArgs || fromName).toLowerCase().replace(/[\s-]+/g, '_');
323
+ const row = BROWSER_ACTS.find((r) => r[0].test(act));
324
+ if (row) {
325
+ const [, running, done, target, bare, special] = row;
326
+ const sp = special ? special(a) : null;
327
+ if (sp) return { running: sp[0], done: sp[1], target: '' };
328
+ const t = target ? target(a, element, act) : '';
329
+ return t ? { running, done, target: t } : { running: bare[0], done: bare[1], target: '' };
330
+ }
331
+ // an action this table does not know: where it went when it says, else the browser plainly
332
+ const u = str(firstOf(a, ['url', 'href', 'uri']));
333
+ return u ? { running: 'Browsing', done: 'Browsed', target: shortUrl(u) } : { running: 'Using the browser', done: 'Used the browser', target: '' };
334
+ }
335
+
336
+ /**
337
+ * The element each browser call acted on, from the page snapshots earlier in the same turn: the
338
+ * browser plug's lines (`e12 link "About"`) and Playwright MCP's (`- link "About" [ref=e12]`). A
339
+ * snapshot numbers its refs afresh, so a call's ref is read against the latest one before it.
340
+ * Returns {[call id]: {role, name}} for the calls whose ref a snapshot named.
341
+ */
342
+ export function browserElements(items) {
343
+ const out = {};
344
+ let refs = new Map();
345
+ for (const it of items || []) {
346
+ if (!it || it.kind !== 'tool' || toolKind(it.name) !== 'browser') continue;
347
+ const a = parseToolArgs(it.args);
348
+ const ref = str(firstOf(a, ['ref', 'element_ref'])).trim();
349
+ if (ref && refs.has(ref)) out[it.id] = refs.get(ref);
350
+ const text = str(it.output);
351
+ if (!text) continue;
352
+ const next = new Map();
353
+ for (const ln of text.split('\n')) {
354
+ let m = ln.match(/^\s*(e\d+)\s+([a-z]+)\s+"(.*?)"/i);
355
+ if (m) { next.set(m[1], { role: m[2], name: m[3] }); continue; }
356
+ m = ln.match(/^\s*-\s+([a-z]+)(?:\s+"(.*?)")?[^\n]*\[ref=(e\d+)\]/i);
357
+ if (m) next.set(m[3], { role: m[1], name: m[2] || '' });
358
+ }
359
+ if (next.size) refs = next;
360
+ }
361
+ return out;
362
+ }
363
+
200
364
  // [running, done] verbs per kind. The target follows the verb.
201
365
  const VERBS = {
202
366
  shell: ['Running', 'Ran'], shell_output: ['Reading output of', 'Read output of'],
@@ -219,15 +383,16 @@ const VERBS = {
219
383
  * todos, [{text, status}] | null
220
384
  * note, a secondary label (an agent's type, a skill)
221
385
  * }
386
+ * opts.element: for a browser call, the element its ref names ({role, name}, from browserElements).
222
387
  */
223
- export function describeTool(name, args) {
388
+ export function describeTool(name, args, opts) {
224
389
  const a = parseToolArgs(args);
225
390
  let kind = toolKind(name);
226
391
  const nm = str(name);
227
392
  // One editor tool, several acts (Anthropic's str_replace_editor, Goose's text_editor).
228
393
  if (kind === 'edit' && /^(view|read)$/i.test(str(a.command))) kind = 'read';
229
394
  if (kind === 'edit' && /^(create|write)$/i.test(str(a.command))) kind = 'write';
230
- let target = ''; let targetFull = ''; let mono = false; let note = '';
395
+ let target = ''; let targetFull = ''; let mono = false; let note = ''; let browser = null;
231
396
  const pathOf = () => firstOf(a, ['file_path', 'path', 'filePath', 'absolute_path', 'target_file', 'filename',
232
397
  'file', 'notebook_path', 'paths', 'absolute_paths', 'dir_path', 'directory']);
233
398
  switch (kind) {
@@ -273,11 +438,9 @@ export function describeTool(name, args) {
273
438
  break;
274
439
  case 'skill': target = str(firstOf(a, ['skill', 'name', 'command', 'skill_name'])); mono = true; targetFull = target; break;
275
440
  case 'browser': {
276
- const act = str(firstOf(a, ['action', 'command', 'type']));
277
- const u = str(firstOf(a, ['url', 'selector', 'text']));
278
- target = [act, u ? shortUrl(u) : ''].filter(Boolean).join(' ');
279
- targetFull = target;
280
- if (/^browser[_\-.]/i.test(nm)) note = humanizeName(nm.replace(/^browser[_\-.]/i, ''));
441
+ browser = describeBrowser(nm, a, opts && opts.element);
442
+ target = browser.target;
443
+ targetFull = str(firstOf(a, ['url', 'href', 'uri'])) || target;
281
444
  break;
282
445
  }
283
446
  case 'mcp': case 'tool': {
@@ -287,7 +450,7 @@ export function describeTool(name, args) {
287
450
  }
288
451
  default: break;
289
452
  }
290
- const v = VERBS[kind] || VERBS.tool;
453
+ const v = browser ? [browser.running, browser.done] : VERBS[kind] || VERBS.tool;
291
454
  return {
292
455
  kind, target: target.replace(/\s+/g, ' ').trim(), targetFull, mono, note,
293
456
  running: v[0], done: v[1],
@@ -302,7 +465,10 @@ export function toolLine(d, state) {
302
465
  if (d.kind === 'todo' || d.kind === 'toolsearch' || d.kind === 'think') return verb;
303
466
  if (d.kind === 'shell' && d.target && !d.mono) return d.target; // the agent's own description
304
467
  if (d.kind === 'mcp' || d.kind === 'tool') return `${verb} ${d.target || 'a tool'}`;
305
- return d.target ? `${verb} ${d.target}` : `${verb} ${KIND_NOUN[d.kind] || 'a tool'}`;
468
+ if (d.target) return `${verb} ${d.target}`;
469
+ // no target: the kind's own noun, else the verb alone (a browser's verbs are whole phrases)
470
+ const noun = KIND_NOUN[d.kind];
471
+ return noun ? `${verb} ${noun}` : verb.replace(/\s+(for|of)$/, '');
306
472
  }
307
473
  const KIND_NOUN = { shell: 'a command', read: 'a file', write: 'a file', edit: 'a file', search: 'code', glob: 'files',
308
474
  list: 'a folder', web_search: '', web_fetch: 'a page', agent: '', skill: 'a skill', browser: '', shell_output: 'a command' };
@@ -331,12 +497,12 @@ const PHRASES = {
331
497
 
332
498
  /**
333
499
  * One past-tense line for a run of finished calls: "Ran 3 commands, edited app.ts".
334
- * A single call reads as itself ("Read app.ts"). `calls` are [{name, args}].
500
+ * A single call reads as itself ("Read app.ts"). `calls` are [{name, args, element?}].
335
501
  */
336
502
  export function summarizeCalls(calls) {
337
503
  const list = (calls || []).filter(Boolean);
338
504
  if (!list.length) return '';
339
- if (list.length === 1) return toolLine(describeTool(list[0].name, list[0].args), 'done');
505
+ if (list.length === 1) return toolLine(describeTool(list[0].name, list[0].args, { element: list[0].element }), 'done');
340
506
  const order = []; const count = {};
341
507
  for (const c of list) {
342
508
  let k = toolKind(c.name);
@@ -95,7 +95,7 @@ const defaultDownload = (url, name) => {
95
95
  * all. Async, so the caller can load its spreadsheet library lazily.
96
96
  */
97
97
  export function FilePreview({
98
- file, onClose, fetchFile, officePdfUrl, renderMarkdown, parseWorkbook, onDownload, title, before,
98
+ file, onClose, fetchFile, officePdfUrl, renderMarkdown, parseWorkbook, onDownload, title, before, nameSlot,
99
99
  }) {
100
100
  const { url, name } = file || {};
101
101
  const [st, setSt] = useState({ kind: 'loading' });
@@ -175,7 +175,8 @@ export function FilePreview({
175
175
  {before}
176
176
  <header className="uic-fp-head">
177
177
  <span className="uic-fp-ic"><FileTypeIcon name={name} size={20} /></span>
178
- <span className="uic-fp-name" title={name}>{name}</span>
178
+ {/* nameSlot: the host's own control in the name's place (a file switcher), in the same row */}
179
+ {nameSlot || <span className="uic-fp-name" title={name}>{name}</span>}
179
180
  {st.kind === 'html' && (
180
181
  <div className="uic-fp-seg" role="tablist" aria-label="Show the page or its source">
181
182
  {[['preview', 'Preview'], ['source', 'Source']].map(([id, label]) => (
@@ -193,6 +193,10 @@
193
193
  .uac-step-time { flex: none; font-size: 12px; color: var(--_faint); font-variant-numeric: tabular-nums; }
194
194
  .uac-step.is-failed .uac-step-o, .uac-step.is-failed .uac-step-v { color: var(--_fail); }
195
195
  .uac-step-err { margin: -2px 0 0; padding: 0 12px 9px 36px; font-family: var(--_mono); font-size: 12px; color: var(--_fail); overflow-wrap: anywhere; }
196
+ /* a call the host opens in a place of its own (openStep): the one it is showing now stays marked */
197
+ .uac-step.is-active > .uac-step-h { background: var(--_hover); }
198
+ .uac-step.is-active .uac-step-v { color: var(--_ink-2); }
199
+ .uac-step.is-active .uac-kind { color: var(--_brand); }
196
200
  .uac-kind, .uac-x, .uac-ring, .uac-stopped { flex: none; width: 16px; height: 16px; display: grid; place-items: center; }
197
201
  .uac-kind { color: var(--_faint); }
198
202
  .uac-kind svg { width: 14px; height: 14px; }
@@ -283,13 +287,46 @@
283
287
  styles are reifyui/styles/file.css) ─────────────────────────────────────────────────── */
284
288
  .uac-art { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; background: var(--_surface); color: var(--_ink); }
285
289
  .uac-art > .uic-fp { flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; }
286
- .uac-art-files { flex: none; display: flex; gap: 4px; padding: 8px 10px; overflow-x: auto; border-bottom: 1px solid var(--_line); scrollbar-width: thin; }
287
- .uac-art-file { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 5px 10px; border: 1px solid transparent; border-radius: 8px;
288
- background: none; font: inherit; font-size: 12.5px; color: var(--_mute); cursor: pointer; white-space: nowrap; }
289
- .uac-art-file span { overflow: hidden; text-overflow: ellipsis; }
290
- .uac-art-file:hover { color: var(--_ink); background: var(--_hover); }
291
- .uac-art-file.is-on { color: var(--_ink); background: var(--_surface-2); border-color: var(--_line); }
292
- .uac-art-file:focus-visible { outline: 2px solid var(--_brand); outline-offset: 1px; }
290
+ .uac-art .uic-fp-head { position: relative; gap: 8px; }
291
+ /* the file name in the header is a switcher: a dropdown of every file of the conversation */
292
+ .uac-fs { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
293
+ .uac-fs-btn { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; margin: 0; padding: 4px 6px 4px 4px; border: 0; border-radius: 8px;
294
+ background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--_ink); cursor: pointer; text-align: left; }
295
+ .uac-fs-btn:hover:not(:disabled), .uac-fs.is-open .uac-fs-btn { background: var(--_hover); }
296
+ .uac-fs-btn:disabled { cursor: default; opacity: 1; }
297
+ .uac-fs-btn:focus-visible { outline: 2px solid var(--_brand); outline-offset: 1px; }
298
+ .uac-mid { display: inline-flex; min-width: 0; max-width: 100%; white-space: nowrap; }
299
+ .uac-mid-h { min-width: 1ch; overflow: hidden; text-overflow: ellipsis; }
300
+ .uac-mid-t { flex: none; }
301
+ .uac-fs-name { min-width: 0; }
302
+ .uac-fs-chev { flex: none; color: var(--_faint); transition: transform .15s; }
303
+ .uac-fs.is-open .uac-fs-chev { transform: rotate(180deg); }
304
+ .uac-fs-scrim { display: none; }
305
+ .uac-fs-pop { position: absolute; top: calc(100% + 6px); left: -32px; z-index: 30; width: min(440px, calc(100vw - 24px)); max-height: min(60vh, 520px);
306
+ display: flex; flex-direction: column; background: var(--_surface); color: var(--_ink); border: 1px solid var(--_line); border-radius: 12px;
307
+ box-shadow: 0 16px 40px -14px rgba(15, 23, 42, .35); overflow: hidden; }
308
+ .uac-fs-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; font-size: 11px; font-weight: 600;
309
+ letter-spacing: .06em; text-transform: uppercase; color: var(--_faint); }
310
+ .uac-fs-count { font-variant-numeric: tabular-nums; }
311
+ .uac-fs-q { margin: 2px 10px 6px; padding: 7px 10px; border: 1px solid var(--_line); border-radius: 8px; background: var(--_surface-2); font: inherit;
312
+ font-size: 13px; color: var(--_ink); outline: 0; }
313
+ .uac-fs-q:focus { border-color: color-mix(in srgb, var(--_brand) 45%, var(--_line)); }
314
+ .uac-fs-list { flex: 1; min-height: 0; overflow: auto; padding: 2px 6px 8px; outline: 0; }
315
+ .uac-fs-dir { padding: 8px 8px 3px; font-size: 11.5px; color: var(--_faint); font-family: var(--_mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
316
+ .uac-fs-opt { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--_ink-2); min-width: 0; }
317
+ .uac-fs-opt.is-hi { background: var(--_hover); }
318
+ .uac-fs-opt.is-on { color: var(--_ink); font-weight: 600; }
319
+ .uac-fs-on { flex: 1; min-width: 0; }
320
+ .uac-fs-meta { flex: none; font-size: 11.5px; font-weight: 400; color: var(--_faint); font-variant-numeric: tabular-nums; }
321
+ .uac-fs-ck { flex: none; width: 16px; display: grid; place-items: center; color: var(--_brand); }
322
+ .uac-fs-none { padding: 12px 10px; font-size: 13px; color: var(--_faint); }
323
+ /* a phone: the list is a sheet from the bottom of the screen */
324
+ @media (max-width: 560px) {
325
+ .uac-fs-scrim { display: block; position: fixed; inset: 0; z-index: calc(var(--uac-z-overlay, 60) + 1); background: var(--uic-scrim, rgba(17, 24, 39, .42)); }
326
+ .uac-fs-pop { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 75vh; z-index: calc(var(--uac-z-overlay, 60) + 2);
327
+ border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
328
+ .uac-fs-opt { padding: 11px 10px; font-size: 14px; }
329
+ }
293
330
  .uac-art.is-overlay { position: fixed; top: 0; right: 0; bottom: 0; width: min(680px, 100vw); height: auto; z-index: var(--uac-z-overlay, 60);
294
331
  box-shadow: -16px 0 40px rgba(15, 23, 42, .22); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
295
332
  animation: uac-art-in .18s ease-out; }
@@ -320,5 +357,6 @@
320
357
  .uac-ring::before { border-color: var(--_brand); }
321
358
  .uac-composer, .uac-send { transition: none; }
322
359
  .uac-art.is-overlay { animation: none; }
360
+ .uac-fs-chev { transition: none; }
323
361
  }
324
362
  .uac-mark.is-still .uac-mark-in, .uac-mark.is-still .uac-mark-aura, .uac-mark.is-still i { animation: none; }