clavarium 0.2.355-next.1 → 0.2.356-next.1

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.355-next.1",
3
+ "version": "0.2.356-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.355-next.1",
9
+ "version": "0.2.356-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.355-next.1",
3
+ "version": "0.2.356-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
package/web/app.js CHANGED
@@ -1088,7 +1088,8 @@
1088
1088
  back to the list. Another one picked while one is open takes the
1089
1089
  place of the first (the list is still one Back away). */
1090
1090
  function select(name, { step = false } = {}) {
1091
- if (name !== current) { disconnect(); terminal.reset(); }
1091
+ /* Another one: the chat of the one before goes at once -- never shown under this one's name while its own loads. */
1092
+ if (name !== current) { disconnect(); terminal.reset(); thread?.destroy(); thread = null; threadOf = ''; }
1092
1093
  current = name;
1093
1094
  /* The strip over the terminal is the one of the conversation now open, at once -- never the last one's until the next look. */
1094
1095
  paintHealth();
@@ -1105,14 +1106,22 @@
1105
1106
  paint();
1106
1107
  enter();
1107
1108
  void chatFirst();
1108
- /* Opening a conversation gets the list out of the way, so its room has the room;
1109
- the "»" button brings the list back. Only on a real pick by the owner, never on a
1110
- device or when deselecting. */
1111
- if (step && name && !DEVICE && !listFolded && !listPinned) {
1112
- listFolded = true;
1113
- try { localStorage.setItem('clavarium-list', 'folded'); } catch { /* a private window */ }
1114
- applyFold(true); fit.fit?.();
1115
- }
1109
+ if (step && name) foldOnOpen();
1110
+ }
1111
+ /* Opening a conversation or a room gets the list out of the way, so it has the room;
1112
+ the "»" button brings the list back. Only on a real pick by the owner, never on a
1113
+ device or when deselecting. */
1114
+ function foldOnOpen() {
1115
+ if (DEVICE || listFolded || listPinned) return;
1116
+ listFolded = true;
1117
+ try { localStorage.setItem('clavarium-list', 'folded'); } catch { /* a private window */ }
1118
+ applyFold(true); fit.fit?.();
1119
+ }
1120
+ /* NEW CONTENT FADES IN, barely (style.css .fade-in, none under reduced motion): never a delay before it shows. */
1121
+ function fadeIn(box) {
1122
+ if (!box) return;
1123
+ box.classList.remove('fade-in'); void box.offsetWidth; box.classList.add('fade-in');
1124
+ box.addEventListener('animationend', () => box.classList.remove('fade-in'), { once: true });
1116
1125
  }
1117
1126
 
1118
1127
  /* ---------- THE NAME OF THIS CLAVARIUM (server/instance.mjs) ----------
@@ -1348,7 +1357,7 @@
1348
1357
  if (thinkingOf(r).length) b.dataset.live = 'true';
1349
1358
  if (r.last) b.dataset.when = 'true';
1350
1359
  if (r.id === roomOpenNow()) b.setAttribute('aria-current', 'true');
1351
- b.addEventListener('click', () => { void openSalon(r.id); });
1360
+ b.addEventListener('click', () => { void openSalon(r.id, true, { step: true }); });
1352
1361
  return b;
1353
1362
  }
1354
1363
  /* What was just unfolded comes in gently, once (the next paints show it as it is). */
@@ -2145,8 +2154,9 @@
2145
2154
  listsShown = true; $('clists').hidden = false; paintViews();
2146
2155
  if (listsView && listsOf === current) { if (at) await listsView.go(at); else void listsView.refresh(); listsAddress(listsView.place); return; }
2147
2156
  const name = current; listsOf = name;
2148
- listsView = null;
2149
- const view = await mountBinder($('clists-binder'), (l) => Boolean(l.grants?.[`conversation:${name}`]), { of: () => name, place: at, steps: listsSteps });
2157
+ /* The binders of the one before go at once: never shown under this one's name while its own load. */
2158
+ listsView?.destroy(); listsView = null; $('clists-binder').replaceChildren();
2159
+ const view = await mountBinder($('clists-binder'), (l) => Boolean(l.grants?.[`conversation:${name}`]), { of: () => name, place: at, steps: listsSteps, still: () => listsOf === name && current === name });
2150
2160
  if (listsOf === name) listsView = view;
2151
2161
  }
2152
2162
  function closeRoomLists() {
@@ -2947,10 +2957,13 @@
2947
2957
  /* Whether it is on, nothing of the thread: asked every few seconds. */
2948
2958
  /* No answer (the network cut for a moment, the server restarting): what was known is kept. Taken
2949
2959
  for "off", the chat would be taken down and drawn again -- its box with it, and a tablet's keyboard. */
2950
- const known = talkOf === current ? talk : null;
2960
+ const name = current;
2961
+ const known = talkOf === name ? talk : null;
2951
2962
  const off = { on: false, messages: [] };
2952
- talk = await fetch(talkPath(current, '', { state: 1 })).then((r) => (r.ok ? r.json() : r.status >= 500 ? known ?? off : off)).catch(() => known ?? off);
2953
- talkOf = current;
2963
+ const got = await fetch(talkPath(name, '', { state: 1 })).then((r) => (r.ok ? r.json() : r.status >= 500 ? known ?? off : off)).catch(() => known ?? off);
2964
+ /* Asked for the one before, answered once another was open: not taken for this one's. */
2965
+ if (name !== current) return talk;
2966
+ talk = got; talkOf = name;
2954
2967
  return talk;
2955
2968
  }
2956
2969
  async function paintThread() {
@@ -2978,10 +2991,10 @@
2978
2991
  paintSimple();
2979
2992
  if (!wanted) { thread?.destroy(); thread = null; threadOf = ''; return; }
2980
2993
  if (thread && threadOf === current) { void thread.refresh(); return; }
2981
- thread?.destroy();
2994
+ thread?.destroy(); thread = null; threadOf = '';
2995
+ const name = current;
2982
2996
  /* From where this page is: a device's page lives under /c/, and nothing else is open to it. */
2983
2997
  const [{ mount }, words] = await Promise.all([import(new URL('vendor/parley-ui.js', new URL(DEVICE ? '/c/' : '/', location.href)).href), readWords()]);
2984
- const name = current;
2985
2998
  if (name !== current || (thread && threadOf === current)) return;
2986
2999
  threadOf = name;
2987
3000
  /* The short-lived secrets live in this conversation now (secret-scan.mjs): the chat shows each as
@@ -2997,12 +3010,13 @@
2997
3010
  for (const m of data.messages) if (m.from === 'system') lines.set(m.id, m);
2998
3011
  return data.since === true ? { ...data, messages: [...data.messages.filter((m) => m.from !== 'system'), ...lines.values()] } : data;
2999
3012
  };
3013
+ let first = true;
3000
3014
  thread = mount(box, {
3001
3015
  words, view: chatView,
3002
3016
  onView: (v) => { chatView = v; try { localStorage.setItem('clavarium-chat-view', v); } catch { /* as above */ } },
3003
3017
  /* A part of the thread: its end at first, then what changed, the page before on demand (Parley's window). */
3004
3018
  window: windowFor(chatWindow),
3005
- load: (asked = {}) => fetch(talkPath(name, '', asked)).then((r) => r.json()).then((data) => withLines(data, asked)).then(machineLines).then((data) => withMachine(data, name)).then((data) => (refreshSecrets(), data)),
3019
+ load: (asked = {}) => fetch(talkPath(name, '', asked)).then((r) => r.json()).then((data) => withLines(data, asked)).then(machineLines).then((data) => withMachine(data, name)).then((data) => { refreshSecrets(); if (first) { first = false; fadeIn(box); } return data; }),
3006
3020
  /* The whole thread searched, however little of it is shown. */
3007
3021
  search: (q) => fetch(talkPath(name, '/search', { q })).then((r) => (r.ok ? r.json() : { matches: [], count: 0 })),
3008
3022
  /* `via: 'voice'`: part of it was dictated, said to the tool. */
@@ -4914,11 +4928,14 @@
4914
4928
  }
4915
4929
  /* A Tether target given from Attach: Read watches, Write proposes (asks before each action). */
4916
4930
  const targetLevel = (level) => (level === 'write' ? 'propose' : 'watch');
4931
+ let assetsPainting = 0;
4917
4932
  async function paintAssets() {
4918
4933
  if (place !== 'assets' || DEVICE) return;
4919
4934
  watchTether();
4935
+ const mine = ++assetsPainting;
4920
4936
  const [all, boxes, secrets, keys, lists, tether, assetGroups] = await Promise.all([getJson('/resources', []), getJson('/mailboxes', []), getJson('/secrets', []), getJson('/git-keys', []), binderCall('lists', {}), getJson('/tether', {}), getJson('/asset-groups', []), readDevices()]);
4921
- if (place !== 'assets') return;
4937
+ /* A later paint asked meanwhile: it draws, with what it read (never this older reading over it). */
4938
+ if (place !== 'assets' || mine !== assetsPainting) return;
4922
4939
  paintKeys(keys);
4923
4940
  markSecrets(secrets);
4924
4941
  const items = [];
@@ -4954,7 +4971,7 @@
4954
4971
  const allApprovals = Array.isArray(tether.approvals) ? tether.approvals : [];
4955
4972
  const onDemandes = !assetsAdding && !chosen && !chosenGroup && assetOpen === 'demandes:all';
4956
4973
  $('assets-as').dataset.open = chosen || chosenGroup || assetsAdding || onDemandes ? 'detail' : 'list';
4957
- const choose = (key) => { placeAssetStep(); if (key !== assetOpen) groupGiveShow.clear(); assetOpen = key; assetsAdding = ''; remoteEditing = false; remember(); void paintAssets(); };
4974
+ const choose = (key) => { placeAssetStep(); if (key !== assetOpen) { groupGiveShow.clear(); clearAssetDetail(); } assetOpen = key; assetsAdding = ''; remoteEditing = false; remember(); void paintAssets(); };
4958
4975
  /* THE ONE LIST (kit AssetList), scope all: groups by default once one exists; who has each on its right. */
4959
4976
  const model = KIT.assetListModel({ items: items.map(cardOf), groups: assetGroups, scope: 'all', by: assetsBy, query: assetsQuery, folded: [...groupsFolded], kinds: ASSET_KINDS });
4960
4977
  paintAssetsView(model.view);
@@ -4967,10 +4984,7 @@
4967
4984
  onFold: (id) => { if (groupsFolded.has(id)) groupsFolded.delete(id); else groupsFolded.add(id); keepGroupsFolded(); void paintAssets(); },
4968
4985
  onGroup: (id) => choose(`group:${id}`), noMatch: 'Nothing by that name.' });
4969
4986
  if (model.view === 'group') dragToGroups($('assets-rows'));
4970
- const detail = $('assets-detail');
4971
- /* The forms go back to where they wait before the detail is drawn again. */
4972
- for (const form of detail.querySelectorAll('.as-form, #gitview-remote-box')) $('assets-forms').append(form);
4973
- detail.replaceChildren();
4987
+ const detail = clearAssetDetail();
4974
4988
  const back = () => { assetOpen = ''; assetsAdding = ''; remember(); void paintAssets(); };
4975
4989
  if (assetsAdding) {
4976
4990
  /* The New asset box: from the map's "+" of Assets, which kind first ("<" goes back to the map);
@@ -5233,6 +5247,13 @@
5233
5247
  void paintAssets();
5234
5248
  }
5235
5249
  /* One asset of the place opened (or a form to make one): a step; another one takes its place. */
5250
+ /* The detail emptied (its forms back where they wait): another asset picked shows nothing of the one before while it is read. */
5251
+ function clearAssetDetail() {
5252
+ const detail = $('assets-detail');
5253
+ for (const form of detail.querySelectorAll('.as-form, #gitview-remote-box')) $('assets-forms').append(form);
5254
+ detail.replaceChildren();
5255
+ return detail;
5256
+ }
5236
5257
  function placeAssetStep() {
5237
5258
  const a = nav.last(['asset']);
5238
5259
  if (a >= 0 && a > nav.last(['place'])) { nav.cut(a + 1); return; }
@@ -5294,29 +5315,67 @@
5294
5315
  if (dot) { dot.dataset.state = who.length ? 'work' : 'ok'; dot.title = who.length ? speaking(who) : ''; }
5295
5316
  if (line) { line.hidden = who.length === 0; line.textContent = who.length ? speaking(who) : ''; }
5296
5317
  }
5318
+ let salonAsked = 0;
5319
+ /* A room's bar: its name, its state, its members (folded). */
5320
+ function salonHead(r) {
5321
+ $('salon-name').textContent = r.name;
5322
+ salonLive(thinkingOf(r));
5323
+ $('salon-who').replaceChildren(memberChips(r.members), el('span', 'hint', `${countOf(r.members)} \u25BE`));
5324
+ $('salon-who').setAttribute('aria-expanded', 'false'); $('salon-members').hidden = true;
5325
+ const rows = ['person', 'ai', 'box'].map((k) => { const of = r.members.filter((m) => m.kind === k); if (!of.length) return null; const row = el('div', 'salon-members-row'); row.append(el('span', 'hint', k === 'person' ? 'People' : k === 'ai' ? 'AIs' : 'Boxes'), ...of.map((m) => { const x = el('span', 'salon-member'); x.append(memberChips([m], 1), document.createTextNode(m.name)); if (m.host) x.append(el('span', 'salon-host', 'host')); return x; })); return row; }).filter(Boolean);
5326
+ $('salon-members').replaceChildren(...rows);
5327
+ }
5297
5328
  function salonLeft() { clearInterval(salonTimer); salonTimer = null; salonThread?.destroy(); salonThread = null; salonId = ''; }
5298
- async function openSalon(id, push = true) {
5329
+ /* `step`: picked by the owner (the list, the deck): as a conversation picked, the list folds. */
5330
+ async function openSalon(id, push = true, { step = false } = {}) {
5299
5331
  if (DEVICE) return;
5300
- await loadRooms();
5332
+ const mine = ++salonAsked;
5333
+ /* The same room again: as the same conversation again, read again, not drawn again (its draft, where it was). */
5334
+ if (place === 'salon' && salonId === id && salonThread) {
5335
+ void salonThread.refresh();
5336
+ /* Shown by an address (Forward, a reload) with no step: picked, it takes one, as a conversation does -- Back and Escape go to the list. */
5337
+ if (step && nav.last(['place']) < 0) { placeFrom = 'list'; nav.push('place', ({ quiet }) => leftPlace(quiet), { address: placeAddress() }); }
5338
+ if (step) foldOnOpen();
5339
+ return;
5340
+ }
5341
+ /* Known (the list read the rooms): opened at once, read again behind; else read first. */
5342
+ if (!rooms.some((x) => x.id === id)) await loadRooms();
5343
+ else void loadRooms().then(() => { const fresh = rooms.find((x) => x.id === id); if (fresh && salonId === id && place === 'salon') salonHead(fresh); });
5344
+ /* Another room asked meanwhile: that one is shown, not this one (an answer come late). */
5345
+ if (mine !== salonAsked) return;
5301
5346
  const r = rooms.find((x) => x.id === id); if (!r) return;
5347
+ /* Picked in the list while a conversation is open: it takes that one's place, as another conversation
5348
+ would -- Back (Escape) goes to the list, not to the conversation left. */
5349
+ if (step && place === 'conversations' && current) select('');
5302
5350
  enterPlace('salon', push);
5303
5351
  salonLeft(); salonId = id;
5352
+ /* Its address names it: a reload, Back and Forward find it again. */
5353
+ remember();
5304
5354
  /* The list marks this room, and no conversation, at once. */
5305
5355
  paint();
5306
- $('salon-name').textContent = r.name;
5307
- salonLive(thinkingOf(r));
5308
- $('salon-who').replaceChildren(memberChips(r.members), el('span', 'hint', `${countOf(r.members)} \u25BE`));
5309
- $('salon-who').setAttribute('aria-expanded', 'false'); $('salon-members').hidden = true;
5310
- const rows = ['person', 'ai', 'box'].map((k) => { const of = r.members.filter((m) => m.kind === k); if (!of.length) return null; const row = el('div', 'salon-members-row'); row.append(el('span', 'hint', k === 'person' ? 'People' : k === 'ai' ? 'AIs' : 'Boxes'), ...of.map((m) => { const x = el('span', 'salon-member'); x.append(memberChips([m], 1), document.createTextNode(m.name)); if (m.host) x.append(el('span', 'salon-host', 'host')); return x; })); return row; }).filter(Boolean);
5311
- $('salon-members').replaceChildren(...rows);
5356
+ salonHead(r);
5357
+ /* What the room before said of its AIs (« Chef is thinking… ») goes with it. */
5358
+ $('salon-thinking').hidden = true; $('salon-thinking').replaceChildren();
5359
+ if (step) foldOnOpen();
5312
5360
  const [{ mount }, words] = await Promise.all([import(new URL('vendor/parley-ui.js', new URL('/', location.href)).href), readWords()]);
5313
- if (salonId !== id) return;
5361
+ if (salonId !== id || mine !== salonAsked) return;
5362
+ let first = true;
5314
5363
  $('salon-thread').dataset.theme = document.documentElement.dataset.theme === 'light' ? 'light' : 'dark';
5315
5364
  salonThread = mount($('salon-thread'), {
5316
5365
  words, markdown: true, agentName: '',
5317
5366
  /* A mail an AI of the room cites: the same chip and viewer as in a conversation's chat. */
5318
5367
  schemes: { mail: { icon: 'mail', open: (ref, label) => { void openMailRef(ref, { label }); } } },
5319
5368
  load: (asked = {}) => fetch(`${API}/rooms/${id}/talk${asked.last ? `?last=${asked.last}` : ''}`).then((x) => x.json()).then((d) => {
5369
+ /* Read for a room no longer shown: its words go nowhere (Parley drops them with its screen). */
5370
+ if (salonId !== id || place !== 'salon') return d;
5371
+ /* Read, it is seen (the server says so): its count in the list goes at once, as a conversation's. */
5372
+ const seen = rooms.find((x) => x.id === id);
5373
+ if (seen?.unread) { seen.unread = 0; paint(); }
5374
+ if (first) {
5375
+ first = false; fadeIn($('salon-thread'));
5376
+ /* Its box takes what is typed, as a conversation's chat does (never on a touch screen: no keyboard raised). */
5377
+ requestAnimationFrame(() => { if (salonId === id && !touchScreen && !writingIn()) $('salon-thread').querySelector('textarea.parley-box')?.focus({ preventScroll: true }); });
5378
+ }
5320
5379
  /* Who was given a message and has not answered yet (#282): « Hugo réfléchit… ». */
5321
5380
  const who = thinkingOf(d);
5322
5381
  /* What they say they do (06-11): on this line, « Thomas : je demande à MSM… », never in the thread. */
@@ -5720,7 +5779,8 @@
5720
5779
  $('salon').hidden = which !== 'salon'; $('salon-new').hidden = which !== 'salon-new';
5721
5780
  /* The places of the whole have a part of the page of their own, over the conversation (03-11). */
5722
5781
  $('places').hidden = !['access', 'settings', 'assets', 'deck', 'new', 'salon', 'salon-new'].includes(which);
5723
- if (which !== 'salon') { try { salonLeft(); } catch { /* not yet set up */ } }
5782
+ /* A room left: its row no longer marked (as a conversation left). */
5783
+ if (which !== 'salon') { try { const was = salonId; salonLeft(); if (was) paint(); } catch { /* not yet set up */ } }
5724
5784
  $('newconv').hidden = which !== 'new';
5725
5785
  if (which !== 'access') composing = false;
5726
5786
  /* What the conversation had open (its tab) waits under the place, as it was. */
@@ -5731,6 +5791,7 @@
5731
5791
  const q = new URLSearchParams();
5732
5792
  if (current) q.set('c', current);
5733
5793
  if (place !== 'conversations') q.set('open', place);
5794
+ if (place === 'salon' && roomOpenNow()) q.set('room', roomOpenNow());
5734
5795
  if (place === 'assets' && assetOpen) q.set('a', assetOpen);
5735
5796
  if (place === 'assets' && assetOpen && assetOpen === listOpen && assetsView?.place.page === 'card') q.set('card', assetsView.place.card);
5736
5797
  if (place === 'access') { q.set('tab', accessTab === 'map' && mapMode === 'flows' ? 'flows' : accessTab); if (accessFor) q.set('for', accessFor); }
@@ -5808,12 +5869,14 @@
5808
5869
  /* What a page drew from the lists, to know when they changed. */
5809
5870
  function binderSig(lists) { return JSON.stringify((Array.isArray(lists) ? lists : []).map((l) => [l.id, l.title, l.archived, l.count, l.grants])); }
5810
5871
  /* `of`: the conversation its cards are of (its Binders tab); else the one the list was given to. */
5811
- async function mountBinder(holder, keep, { onLists, of, place: at = null, steps = null } = {}) {
5872
+ /* `still()`: whether it is still wanted once its parts are read (another one asked meanwhile: not drawn). */
5873
+ async function mountBinder(holder, keep, { onLists, of, place: at = null, steps = null, still = () => true } = {}) {
5812
5874
  binderParts ??= Promise.all([import(new URL('vendor/binder-ui.js', new URL('/', location.href)).href), fetch(`/vendor/binder-${binderLang()}.json`).then((r) => r.json()).catch(() => ({}))]);
5813
5875
  const [[{ mount }, words], seen] = await Promise.all([binderParts, getJson('/binder/people', null)]);
5814
5876
  if (seen) { binderPeople = seen.people; binderChanges = seen.changes; }
5815
- if (!holder.isConnected) return null;
5877
+ if (!holder.isConnected || !still()) return null;
5816
5878
  let shown = [];
5879
+ let first = true; let showing = null;
5817
5880
  const whose = () => {
5818
5881
  if (of) return of();
5819
5882
  const given = [...new Set(shown.flatMap((l) => Object.keys(l.grants ?? {})).filter((k) => k.startsWith('conversation:')).map((k) => k.slice('conversation:'.length)))];
@@ -5822,8 +5885,16 @@
5822
5885
  const view = mount(holder, {
5823
5886
  words, lang: binderLang(), people: () => binderPeople,
5824
5887
  call: async (op, args) => {
5825
- const r = await binderCall(op, args);
5888
+ const asked = binderCall(op, args);
5889
+ if (op === 'show') showing = asked;
5890
+ let r = await asked;
5891
+ /* A binder read, answered after another was asked (one binder picked, then another): the last one
5892
+ asked is what Binder shows, never this late answer painted under the other's tab (clavarium-binder
5893
+ load() keeps no order of its own). */
5894
+ if (op === 'show') for (let seen = asked; seen !== showing;) { seen = showing; r = await seen; }
5826
5895
  if (op === 'lists' && r.ok && Array.isArray(r.data)) { onLists?.(r.data); r.data = r.data.filter(keep); shown = r.data; }
5896
+ /* Its first binder read: drawn now, barely faded in. */
5897
+ if (op === 'show' && first) { first = false; fadeIn(holder); }
5827
5898
  return r;
5828
5899
  },
5829
5900
  /* A thing attached opens where this page opens it. */
@@ -6071,6 +6142,7 @@
6071
6142
  const open = q.get('open') ?? '';
6072
6143
  if (open === 'new') { await openNew({ push: false }); return; }
6073
6144
  if (open === 'deck') { openDeck(false); return; }
6145
+ if (open === 'salon' && q.get('room')) { await openSalon(q.get('room'), false); return; }
6074
6146
  if (open === 'settings') {
6075
6147
  await openSettings({ push: false });
6076
6148
  /* A link to one chapter of Settings (?open=settings&at=resources): that one opened, and shown. */
package/web/style.css CHANGED
@@ -61,6 +61,9 @@ button:focus-visible, input:focus-visible { outline: 2px solid var(--brass); out
61
61
  @keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
62
62
  @keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }
63
63
  @media (prefers-reduced-motion: reduce) { .kit-conv > .state-dot, header.topbar .bar-state, .unfolding { animation: none !important; } }
64
+ /* Another chat, room or binder shown: its content fades in, barely (app.js fadeIn) -- never a delay before it shows. */
65
+ @media (prefers-reduced-motion: no-preference) { .fade-in { animation: fade-in .12s ease-out; } }
66
+ @keyframes fade-in { from { opacity: 0; } }
64
67
  .choices { display: flex; flex-wrap: wrap; gap: 6px; }
65
68
  .choices button[aria-checked="true"] { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 14%, transparent); }
66
69
  .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }