clavarium 0.2.349-next.1 → 0.2.351-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.349-next.1",
3
+ "version": "0.2.351-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.349-next.1",
9
+ "version": "0.2.351-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.349-next.1",
3
+ "version": "0.2.351-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/server/boxes.mjs CHANGED
@@ -787,7 +787,7 @@ export class Boxes {
787
787
  this.#log(`voice box ${box.name}: a sentence while recording here, the recording closed`);
788
788
  r.out.end(() => { void this.#recorded(link, r); });
789
789
  }
790
- if (m.t === 'listen.start') { link.why = whyOf(m); link.wakeCheck = null; link.voice = NaN; link.endReason = ''; } /* its clip, if any, comes after listen.start: an older check never carries over */
790
+ if (m.t === 'listen.start') { link.why = whyOf(m); link.wakeCheck = null; link.voice = NaN; link.endReason = ''; link.startReason = String(m.reason ?? ''); link.clipSeen = false; } /* its clip, if any, comes after listen.start: an older check never carries over */
791
791
  if (m.t === 'listen.start') { if (this.stop(box.id)) this.#log(`voice box ${box.name}: stopped playing, someone speaks`); sentence = []; size = 0; return; }
792
792
  if (m.t === 'listen.end' && sentence && m.reason === 'nobody') {
793
793
  /* Listened again, nobody spoke: a conversation ends there, in silence. */
@@ -923,6 +923,16 @@ export class Boxes {
923
923
  /* The wake word heard again (wake.clip): said beside the message; dropped in silence only once that is
924
924
  turned on (WAKE_DROP), after its results were looked at -- a real call must never be lost to it. */
925
925
  const check = link.wakeCheck ? await link.wakeCheck.catch(() => null) : null; link.wakeCheck = null;
926
+ /* WOKEN BY THE WORD, BUT NO CLIP TO CHECK IT (06-11: « ce ne sera pas au niveau de fond », voice 195, passed): as a
927
+ clip with no word in it -- dropped only when faint too; a firm voice, a button, a knock still go. */
928
+ if (!check && link.startReason === 'wake' && dropsWake(false, link.voice, link.endReason, '')) {
929
+ if (Number.isFinite(link.voice) && link.voice > 0 && link.voice < WAKE_FAINT) {
930
+ link.send({ t: 'cue', name: 'done' });
931
+ this.#log(`voice box ${box.name}: wake ignored (no wake clip to check, faint voice ${Math.round(link.voice)})`);
932
+ try { this.#note?.(box.conversation, { kind: 'box-wake-ignored', text: `Wake ignored on ${box.name}: no wake word to check, faint voice`, topic: 'Voice box', tone: 'info' }); } catch { /* the log has it */ }
933
+ return;
934
+ }
935
+ }
926
936
  if (check) {
927
937
  /* First in the line: Parley keeps 120 characters of `why`, and the end stats after it can pass that. */
928
938
  link.why = `mot ${check.ok ? '\u2713' : '\u2717'} « ${check.heard.slice(0, 30)} »${link.why ? ` · ${link.why}` : ''}`;
@@ -69,5 +69,18 @@ export const SETTINGS_WORDS_FR = {
69
69
  'set-apikeys-convs': 'Conversations', 'set-apikeys-convs-hint': 'Une par une : lire ou parler', 'set-apikeys-off': 'Non',
70
70
  'set-apikeys-read': 'Lire', 'set-apikeys-talk': 'Parler', 'set-apikeys-no-convs': 'Aucune conversation pour l\'instant',
71
71
  'set-apikeys-journal': 'Journal', 'set-apikeys-no-use': 'Aucun appel pour l\'instant',
72
+ /* The rights of an asset (06-11, kit.js RIGHTS): what it has (a pill), a choice, its one line. */
73
+ 'set-rt-none': 'Aucun', 'set-rt-read': 'Lit', 'set-rt-write': 'Écrit', 'set-rt-use': 'Utilise', 'set-rt-watch': 'Surveille',
74
+ 'set-rt-propose': 'Propose', 'set-rt-frame': 'Encadré', 'set-rt-free': 'Libre', 'set-rt-terminal': 'Terminal', 'set-rt-chat': 'Chat',
75
+ 'set-rt-both': 'Chat + terminal',
76
+ 'set-rt-pick-none': 'Aucun', 'set-rt-pick-read': 'Lire', 'set-rt-pick-write': 'Écrire', 'set-rt-pick-use': 'Utiliser',
77
+ 'set-rt-pick-watch': 'Surveiller', 'set-rt-pick-propose': 'Proposer', 'set-rt-pick-frame': 'Encadrer', 'set-rt-pick-free': 'Libre',
78
+ 'set-rt-pick-terminal': 'Terminal', 'set-rt-pick-chat': 'Chat', 'set-rt-pick-both': 'Les deux',
79
+ 'set-rt-hint-none': 'Pas donné', 'set-rt-hint-read': 'Lecture seule', 'set-rt-hint-write': 'Lecture et écriture',
80
+ 'set-rt-hint-use': 'Remis à son outil, jamais affiché', 'set-rt-hint-watch': 'Lecture seule',
81
+ 'set-rt-hint-propose': 'Vous demande avant chaque action', 'set-rt-hint-frame': 'Agit selon ses règles, vous demande le reste',
82
+ 'set-rt-hint-free': 'Agit seul, tout est noté au journal', 'set-rt-hint-terminal': 'Tout son terminal',
83
+ 'set-rt-hint-chat': 'Lit et écrit dans son chat', 'set-rt-hint-both': 'Son chat et son terminal',
84
+ 'set-as-nobody': 'personne',
72
85
  };
73
86
  export const settingsWords = (lang) => (String(lang ?? '').toLowerCase().split('-')[0] === 'fr' ? { ...SETTINGS_WORDS_FR } : {});
package/web/kit.js CHANGED
@@ -19,6 +19,12 @@
19
19
  * its views on the right) and `sub` (a page of its own or inside one: a way back on the right)
20
20
  * ShareDonut who takes a whole (memory, a disk): a small donut, its slices from shareSlices, the main
21
21
  * figure in its middle; ShareKey, a slice's swatch beside its row in the list
22
+ * AssetIcon an asset's sign and colour, by its kind (one table, ASSET_ICONS)
23
+ * AssetCard ONE ASSET, three sizes like ConvCard (06-11, assets step 1): `row` (a list), `chip` (a pill:
24
+ * a folded group, the thread, a call waiting), `head` (atop its panel). On its right, who has
25
+ * it (Holders) or, seen from one holder, its right (RightsBadge).
26
+ * RIGHTS THE ONE TABLE of what an asset can be given at, by its kind and by who gets it (a
27
+ * conversation, a device); "none" first. RightsBadge reads a right, RightsPicker sets it.
22
28
  *
23
29
  * No framework: each piece is a function that returns an element. Words: English here; the page
24
30
  * hands its own (`setWords`, app.js `uiSaid`) for the few the kit says by itself.
@@ -391,7 +397,179 @@
391
397
  return root;
392
398
  }
393
399
 
400
+ /* ---------- ASSETS (06-11, the unified assets, step 1: the pieces; the screens move to them in step 2) ---------- */
401
+
402
+ /* AN ASSET'S SIGN, by its kind: the icon set's name (Lucide, icons.js), or '' for one drawn here (a binder).
403
+ A live link (a connexion) takes the sign of what it links (a mailbox, a calendar); `acces`, any other. */
404
+ const ASSET_ICONS = { folder: 'folder', git: 'git-branch', mailbox: 'mail', agenda: 'calendar', contacts: 'user', secret: 'key-round', list: '', acces: 'link', send: 'arrow-up', demandes: 'arrow-up', box: 'mic', device: 'smartphone', conversation: 'message-square' };
405
+ const ASSET_KINDS = Object.keys(ASSET_ICONS);
406
+ /* A binder: the set has no such sign, so it is drawn here, in its style (was app.js listIcon). */
407
+ function listSign() {
408
+ const svg = svgNode('svg'); svg.setAttribute('viewBox', '0 0 24 24'); svg.setAttribute('aria-hidden', 'true');
409
+ for (const d of ['m3 17 2 2 4-4', 'm3 7 2 2 4-4', 'M13 6h8', 'M13 12h8', 'M13 18h8']) { const p = svgNode('path'); p.setAttribute('d', d); svg.append(p); }
410
+ return svg;
411
+ }
412
+ function AssetIcon({ kind = 'folder', cls = '' } = {}) {
413
+ const k = kind in ASSET_ICONS ? kind : 'folder';
414
+ const box = node('span', `kit-asset-ic${cls ? ` ${cls}` : ''}`); box.dataset.kind = k; box.setAttribute('aria-hidden', 'true');
415
+ const name = ASSET_ICONS[k];
416
+ const svg = name ? window.clavariumIcons?.icon?.(name) : listSign();
417
+ if (svg) box.append(svg);
418
+ return box;
419
+ }
420
+
421
+ /* THE RIGHTS: one level each, its tone (r: reads, w: changes, x: uses or watches, n: none). The words come
422
+ three ways: `badge` (what it has: "Reads"), `pick` (a choice: "Read"), `hint` (one line, its title). */
423
+ const RIGHT_LEVELS = {
424
+ none: { tone: 'n', badge: 'None', pick: 'None', hint: 'Not given' },
425
+ read: { tone: 'r', badge: 'Reads', pick: 'Read', hint: 'Reads only' },
426
+ write: { tone: 'w', badge: 'Writes', pick: 'Write', hint: 'Reads and writes' },
427
+ use: { tone: 'x', badge: 'Uses', pick: 'Use', hint: 'Handed to its tool, never shown' },
428
+ watch: { tone: 'x', badge: 'Watches', pick: 'Watch', hint: 'Reads only' },
429
+ propose: { tone: 'x', badge: 'Proposes', pick: 'Propose', hint: 'Asks you before each action' },
430
+ frame: { tone: 'w', badge: 'Framed', pick: 'Frame', hint: 'Acts within its rules, asks the rest' },
431
+ free: { tone: 'w', badge: 'Free', pick: 'Free', hint: 'Acts, kept in the journal' },
432
+ terminal: { tone: 'x', badge: 'Terminal', pick: 'Terminal', hint: 'Its whole terminal' },
433
+ chat: { tone: 'r', badge: 'Chat', pick: 'Chat', hint: 'Reads and writes in its chat' },
434
+ both: { tone: 'w', badge: 'Chat + terminal', pick: 'Both', hint: 'Its chat and its terminal' },
435
+ };
436
+ /* THE ONE TABLE (was app.js levelOptionsFor, the "Used by" options, levelControl, partsControl, fixedRight,
437
+ fixedUse, Attach's Read / Write / Use): what each kind can be given at, by who gets it. "none" is first,
438
+ always: it replaces Off, Detach, Remove all and Take back. A kind not in a holder's column is not given
439
+ to it. `connexion`: a live link (Tether: a mailbox, a calendar, contacts or an access connected). */
440
+ const RIGHTS = {
441
+ folder: { conversation: ['none', 'read', 'write'], device: ['none', 'read', 'write'] },
442
+ git: { conversation: ['none', 'read', 'write'], device: ['none', 'read', 'write'] },
443
+ mailbox: { conversation: ['none', 'read'], device: ['none', 'read'] },
444
+ secret: { conversation: ['none', 'use'] },
445
+ list: { conversation: ['none', 'read', 'write'] },
446
+ connexion: { conversation: ['none', 'watch', 'propose', 'frame', 'free'] },
447
+ conversation: { device: ['none', 'terminal', 'chat', 'both'] },
448
+ };
449
+ const HOLDERS = ['conversation', 'device'];
450
+ /* The table's key of an asset: a live link is a connexion, whatever it links; else its kind. */
451
+ const rightsKey = (a) => (a?.live || a?.target ? 'connexion' : a?.kind ?? '');
452
+ const rightsFor = (key, holder = 'conversation') => [...(RIGHTS[key]?.[HOLDERS.includes(holder) ? holder : 'conversation'] ?? [])];
453
+ /* The lightest real level (what "give the group" gives): the first after none. */
454
+ const lightest = (key, holder) => rightsFor(key, holder)[1] ?? null;
455
+ /* AS THE SERVER KEEPS THEM -> a level, and back. A secret is 'off' / 'use' (secrets.mjs); a device's
456
+ grant is 'r' / 'rw', a conversation given to a device 'x' (terminal), 'rw' (chat), 'rwx' (devices.mjs);
457
+ the rest keeps the level's own name. Nothing, '', null, 'off': none. */
458
+ function rightOf(key, stored, holder = 'conversation') {
459
+ const s = String(stored ?? '').trim();
460
+ if (!s || s === 'off' || s === 'none') return 'none';
461
+ if (holder === 'device' || /^(r|rw|x|rwx)$/.test(s)) {
462
+ if (key === 'conversation') return { x: 'terminal', rw: 'chat', r: 'chat', rwx: 'both', xrw: 'both' }[s] ?? (s in RIGHT_LEVELS ? s : 'none');
463
+ if (s === 'r') return 'read';
464
+ if (s === 'rw' || s === 'rwx') return 'write';
465
+ }
466
+ return s in RIGHT_LEVELS ? s : 'none';
467
+ }
468
+ function storedOf(key, level, holder = 'conversation') {
469
+ if (holder === 'device') {
470
+ if (level === 'none') return null;
471
+ if (key === 'conversation') return { terminal: 'x', chat: 'rw', both: 'rwx' }[level] ?? null;
472
+ return { read: 'r', write: 'rw' }[level] ?? null;
473
+ }
474
+ if (key === 'secret') return level === 'use' ? 'use' : 'off';
475
+ return level;
476
+ }
477
+ const levelOf = (opts) => { const l = opts.level ?? rightOf(opts.key ?? '', opts.value, opts.holder); return l in RIGHT_LEVELS ? l : 'none'; };
478
+ const rightWord = (level, form = 'badge') => {
479
+ const l = RIGHT_LEVELS[level] ?? RIGHT_LEVELS.none;
480
+ return say(`set-rt-${form === 'badge' ? '' : `${form}-`}${level in RIGHT_LEVELS ? level : 'none'}`, l[form] ?? l.badge);
481
+ };
482
+
483
+ /* A RIGHT, READ: a small pill, its tone by what it lets do. `level`, or `value` as kept (with its `key`, `holder`). */
484
+ function RightsBadge(opts = {}) {
485
+ const level = levelOf(opts);
486
+ const b = node('span', `kit-rights${opts.cls ? ` ${opts.cls}` : ''}`, rightWord(level, 'badge'));
487
+ b.dataset.level = level; b.dataset.tone = RIGHT_LEVELS[level].tone;
488
+ b.title = rightWord(level, 'hint');
489
+ return b;
490
+ }
491
+
492
+ /* A RIGHT, SET: the kind's levels from the table, "None" first, the one held pressed. `onChange(level,
493
+ stored)`: the level, and as the server keeps it; the buttons wait while it works (a promise). Nothing
494
+ to choose (a kind not given to that holder): null. */
495
+ function RightsPicker({ key = '', holder = 'conversation', value, level, label = '', cls = '', onChange = () => {} } = {}) {
496
+ const levels = rightsFor(key, holder);
497
+ if (!levels.length) return null;
498
+ const now = level ?? rightOf(key, value, holder);
499
+ const options = levels.map((l) => ({ value: l, label: rightWord(l, 'pick') }));
500
+ let held = now;
501
+ const pick = Segmented({ options, value: now, label, onChange: async (l) => {
502
+ if (l === held) return;
503
+ const buttons = pick.children; for (const b of buttons) b.disabled = true;
504
+ try { if ((await onChange(l, storedOf(key, l, holder))) === false) pick.set(held); else held = l; }
505
+ catch { pick.set(held); }
506
+ finally { for (const b of buttons) b.disabled = false; }
507
+ } });
508
+ addClass(pick, `kit-rights-pick${cls ? ` ${cls}` : ''}`);
509
+ pick.dataset.key = key; pick.dataset.holder = holder;
510
+ for (const b of pick.children) b.title = rightWord(b.dataset.value, 'hint');
511
+ return pick;
512
+ }
513
+
514
+ /* WHO HAS IT: their initials, up to `max`, then "+n"; nobody, said in grey. `list` [{ name, hue?, glyph? }]. */
515
+ function Holders(list = [], { max = 3 } = {}) {
516
+ const box = node('span', 'kit-holders');
517
+ const all = (list ?? []).filter((h) => h && h.name);
518
+ if (!all.length) { box.dataset.none = 'true'; box.append(node('small', 'kit-holders-none', say('set-as-nobody', 'nobody'))); return box; }
519
+ for (const h of all.slice(0, max)) box.append(Avatar(h));
520
+ if (all.length > max) box.append(node('small', 'kit-holders-more', `+${all.length - max}`));
521
+ box.title = all.map((h) => h.name).join(', ');
522
+ return box;
523
+ }
524
+
525
+ /* ONE ASSET. `a`, what the page knows of it, said once:
526
+ key, kind 'folder:reports', its kind (ASSET_ICONS) name its name
527
+ live a live link (a connexion): its rights are a connexion's
528
+ sub its one line ('' : none) state a point when it asks for you (wait,
529
+ problem: expiring, failing); else none
530
+ count a number that waits for you (calls waiting)
531
+ holders [{ name, hue? }] who has it (Assets) right { level | value, holder? } its right,
532
+ seen from one holder (a conversation)
533
+ chips [{ text, … }] on a head (its group ▾, its type, its size)
534
+ `size`: 'row' | 'chip' | 'head'. `tag`: 'button' (it opens: `onOpen`) or the page's; a head is a div.
535
+ `current`: the one open (aria-current). `actions`: the place's own gestures, on its right. */
536
+ function AssetCard(a, { size = 'row', tag, cls = '', current = false, onOpen = null, actions = [] } = {}) {
537
+ const s = ['row', 'chip', 'head'].includes(size) ? size : 'row';
538
+ const t = tag ?? (s === 'head' ? 'div' : onOpen || s === 'row' ? 'button' : 'span');
539
+ const root = node(t, `kit-asset kit-asset-${s}${cls ? ` ${cls}` : ''}`);
540
+ if (t === 'button') root.type = 'button';
541
+ if (a.key) root.dataset.asset = a.key;
542
+ root.dataset.kind = a.kind ?? 'folder'; root.dataset.name = a.name ?? '';
543
+ if (current) root.setAttribute('aria-current', 'true');
544
+ root.append(AssetIcon({ kind: a.kind }));
545
+ if (s === 'chip') {
546
+ root.append(node('span', 'kit-asset-name', a.name ?? ''));
547
+ if (a.right) root.append(RightsBadge({ ...a.right, key: a.right.key ?? rightsKey(a) }));
548
+ } else {
549
+ const main = node('span', 'kit-asset-main');
550
+ main.append(node(s === 'head' ? 'h2' : 'b', 'kit-asset-name', a.name ?? ''));
551
+ if (a.sub || a.state) {
552
+ const line = node('small', 'kit-asset-sub');
553
+ if (a.state) { line.append(StatusDot({ state: a.state, label: a.sub ?? '' })); line.dataset.state = stateOf(a.state); }
554
+ if (a.sub) line.append(node('span', '', a.sub));
555
+ main.append(line);
556
+ }
557
+ if (s === 'head') { const chips = Chips(a.chips ?? []); if (chips) main.append(chips); }
558
+ root.append(main);
559
+ const side = node('span', 'kit-asset-side');
560
+ if (Number.isFinite(a.count) && a.count > 0) side.append(Chips([{ text: String(a.count), tone: 'count' }]));
561
+ if (a.right) side.append(RightsBadge({ ...a.right, key: a.right.key ?? rightsKey(a) }));
562
+ else if (a.holders && s === 'row') side.append(Holders(a.holders));
563
+ side.append(...actions.filter(Boolean));
564
+ if (side.children.length) root.append(side);
565
+ }
566
+ if (onOpen && t === 'button') root.addEventListener('click', () => onOpen(a.key));
567
+ return root;
568
+ }
569
+
394
570
  window.clavariumKit = {
571
+ AssetIcon, AssetCard, Holders, RightsBadge, RightsPicker,
572
+ ASSET_ICONS, ASSET_KINDS, RIGHTS, RIGHT_LEVELS, rightsKey, rightsFor, rightOf, storedOf, lightest, rightWord,
395
573
  shareSlices, ShareDonut, ShareKey,
396
574
  STATES, STATE_WORDS, stateOf, hueOf, initialOf,
397
575
  setWords(fn) { if (typeof fn === 'function') words = fn; },
package/web/style.css CHANGED
@@ -2793,6 +2793,46 @@ button.kit-switch[aria-checked="true"]::after { left: 18px; background: var(--ok
2793
2793
  .kit-conv-row .kit-conv-main > .kit-chips, .kit-conv-sub > .kit-chips { flex: none; margin: 0; gap: 6px; flex-wrap: nowrap; }
2794
2794
  .kit-conv-row .kit-conv-main .kit-chip:not([data-tone="count"]) { border: 0; padding: 0; background: none; line-height: inherit; font-size: .75rem; }
2795
2795
 
2796
+ /* ONE ASSET (06-11, assets step 1: kit.js AssetIcon, AssetCard, RightsBadge, RightsPicker, Holders). Its sign on a
2797
+ tile of its kind's colour; a row (a list), a chip (a pill), a head (atop its panel). */
2798
+ .kit-asset-ic { --ka-ic: 30px; width: var(--ka-ic); height: var(--ka-ic); border-radius: 8px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, currentColor 12%, transparent); color: var(--brass-ink); }
2799
+ .kit-asset-ic svg { width: 57%; height: 57%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
2800
+ .kit-asset-ic[data-kind="git"] { color: color-mix(in srgb, var(--danger) 75%, var(--warn)); }
2801
+ .kit-asset-ic[data-kind="mailbox"] { color: var(--wait); }
2802
+ .kit-asset-ic[data-kind="agenda"], .kit-asset-ic[data-kind="contacts"] { color: color-mix(in srgb, var(--wait) 55%, var(--danger)); }
2803
+ .kit-asset-ic[data-kind="secret"], .kit-asset-ic[data-kind="acces"], .kit-asset-ic[data-kind="device"], .kit-asset-ic[data-kind="conversation"] { color: var(--ink2); }
2804
+ .kit-asset-ic[data-kind="list"] { color: var(--ok); }
2805
+ .kit-asset { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; color: var(--ink); }
2806
+ .kit-asset-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
2807
+ .kit-asset-name { min-width: 0; margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2808
+ .kit-asset-sub { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--ink2); font-size: .75rem; }
2809
+ .kit-asset-sub > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2810
+ .kit-asset-sub[data-state="problem"] { color: var(--danger); }
2811
+ .kit-asset-side { flex: none; display: flex; align-items: center; gap: 6px; }
2812
+ .kit-asset-row { width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; }
2813
+ .kit-asset-row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
2814
+ .kit-asset-row[aria-current="true"] { background: color-mix(in srgb, var(--brass) 14%, transparent); }
2815
+ .kit-asset-chip { display: inline-flex; gap: 6px; max-width: 100%; padding: 2px 10px 2px 3px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .8125rem; }
2816
+ .kit-asset-chip .kit-asset-ic { --ka-ic: 22px; border-radius: 50%; }
2817
+ .kit-asset-head { gap: 12px; align-items: flex-start; }
2818
+ .kit-asset-head .kit-asset-ic { --ka-ic: 38px; border-radius: 10px; }
2819
+ .kit-asset-head .kit-asset-name { font-size: 1.25rem; white-space: normal; overflow-wrap: anywhere; }
2820
+ .kit-asset-head .kit-asset-sub { font-size: .8125rem; }
2821
+ /* A RIGHT, READ: its tone by what it lets do (reads, changes, uses or watches, none). */
2822
+ .kit-rights { flex: none; padding: 1px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
2823
+ .kit-rights[data-tone="r"] { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
2824
+ .kit-rights[data-tone="w"] { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
2825
+ .kit-rights[data-tone="x"] { color: var(--wait); background: color-mix(in srgb, var(--wait) 14%, transparent); }
2826
+ .kit-rights[data-tone="n"] { color: var(--ink2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
2827
+ /* A RIGHT, SET: the Segmented, smaller; it wraps on a narrow screen rather than overflow. */
2828
+ .kit-rights-pick { flex: none; max-width: 100%; flex-wrap: wrap; }
2829
+ .kit-rights-pick > button { min-height: 30px; padding: 0 9px; font-size: .78125rem; font-weight: 600; }
2830
+ /* WHO HAS IT: initials over each other, then "+n"; nobody in grey. */
2831
+ .kit-holders { display: inline-flex; align-items: center; flex: none; }
2832
+ .kit-holders > .kit-av { --kc-av: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
2833
+ .kit-holders > .kit-av + .kit-av { margin-left: -6px; }
2834
+ .kit-holders-more, .kit-holders-none { margin-left: 4px; font-size: .75rem; color: var(--ink2); }
2835
+
2796
2836
  /* A MAIL CITED BY ITS REFERENCE (06-11, app.js openMailRef): the same viewer, as a sheet over the thread --
2797
2837
  from the bottom on a phone, a panel at the right on a wide screen; where it is now, one line; Reply. */
2798
2838
  #viewer.viewer-sheet { padding: 0; align-items: flex-end; background: rgba(8, 11, 15, 0.45); }