clavarium 0.2.22 → 0.2.23-next.2

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/web/index.html CHANGED
@@ -16,25 +16,6 @@
16
16
  <div class="top"><b id="list-title" title="Conversations">Clavarium</b><span class="top-acts"><button type="button" id="search-open" class="icon-btn" aria-label="Search conversations" title="Search (/ or Ctrl+K)" aria-expanded="false" aria-controls="search"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></button><button type="button" id="new" class="primary">+ New</button></span></div>
17
17
  <!-- SEARCH, discreet: opened by the magnifier, "/" or Ctrl+K; filters as it is typed. -->
18
18
  <div id="search" role="search" hidden><input id="search-field" type="search" placeholder="Search" aria-label="Search conversations: name, folder, identifier, tool" autocomplete="off" spellcheck="false" maxlength="60" aria-controls="items"></div>
19
- <form id="create" hidden autocomplete="off">
20
- <label for="create-name">Name</label>
21
- <input id="create-name" name="name" required maxlength="60" placeholder="Website redesign" spellcheck="false">
22
- <details class="advanced"><summary>Advanced options</summary>
23
- <label for="create-id">Identifier</label>
24
- <input id="create-id" maxlength="32" pattern="[a-z]([a-z0-9\-]{0,30}[a-z0-9])?" title="Lower-case letters, digits and hyphens; starts with a letter, does not end with a hyphen" placeholder="website-redesign" spellcheck="false" autocapitalize="none">
25
- <p class="hint">Used for its machine, its folders, its address and what is given to it. Drawn from the name when empty; it cannot be changed later. The name can.</p>
26
- </details>
27
- <label for="create-group">Group <span class="hint">(optional)</span></label>
28
- <input id="create-group" maxlength="40" list="group-names" placeholder="None" spellcheck="false" autocomplete="off">
29
- <datalist id="group-names"></datalist>
30
- <span class="legend">What runs in it</span>
31
- <div id="create-tools" class="choices" role="radiogroup" aria-label="What runs in it"></div>
32
- <label class="check"><input type="checkbox" id="create-disk"> Work on the machine's own disk</label>
33
- <p class="hint">Unticked, what the tool makes is kept here: you see it in Files, and it outlives the machine. Tick it for a code project that installs packages: a folder kept here refuses the links they make, and is slower. Those files are then not shown here and go with the machine. It can be changed later.</p>
34
- <p id="create-error" class="error" role="alert" hidden></p>
35
- <div class="row"><button type="submit" class="primary">Create</button><button type="button" id="create-cancel">Cancel</button>
36
- <span class="hint">a new machine takes a few minutes</span></div>
37
- </form>
38
19
  <!-- Needs you and Recent: copies of rows of the list below, by when they were last used (app.js, paint). -->
39
20
  <div id="recent"></div>
40
21
  <div id="items"></div>
@@ -473,7 +454,7 @@
473
454
  </form>
474
455
  </div>
475
456
  <div id="git-box" class="as-form" data-kind="git"><h3>New repository</h3>
476
- <p class="hint">A folder that starts as a repository: empty, or cloned from a remote -- public, or private over SSH or HTTPS. It is attached and shared like a folder, to read or to write. What opens a private remote is kept on this server, sealed, and used here only (to clone, to look, to send): the tool's machine never receives it.</p>
457
+ <div class="hint">Empty, or cloned from a remote. <details class="more"><summary>Private remotes</summary><span>Public, or private over SSH or HTTPS. It is attached and shared like a folder, to read or to write. What opens a private remote is kept on this server, sealed, and used here only (to clone, to look, to send): the tool's machine never receives it.</span></details></div>
477
458
  <form id="git-new" autocomplete="off">
478
459
  <label for="git-name">Name</label>
479
460
  <input id="git-name" maxlength="32" pattern="[a-z]([a-z0-9-]{0,30}[a-z0-9])?" placeholder="website" spellcheck="false" autocapitalize="off" required>
@@ -518,7 +499,7 @@
518
499
  <p id="git-keys-empty" class="hint">No key yet: "New key" in Add a repository makes one.</p>
519
500
  </div>
520
501
  <div id="mailbox-box" class="as-form" data-kind="mailbox"><h3>New mailbox</h3>
521
- <p class="hint">Its recent messages become files in a folder, kept up to date, that a conversation can read and never write. The mailbox itself is never changed. Mail is written by strangers: attach it only where the tool may read what anyone can send you.</p>
502
+ <div class="hint">Recent messages as files, read only. <details class="more"><summary>Before attaching it</summary><span>Kept up to date in a folder a conversation can read and never write. The mailbox itself is never changed. Mail is written by strangers: attach it only where the tool may read what anyone can send you.</span></details></div>
522
503
  <form id="mailbox-new" autocomplete="off">
523
504
  <label for="mailbox-name">Folder name</label>
524
505
  <input id="mailbox-name" maxlength="32" pattern="[a-z]([a-z0-9-]{0,30}[a-z0-9])?" placeholder="inbox" spellcheck="false" autocapitalize="off" required>
@@ -545,16 +526,12 @@
545
526
  </div>
546
527
  <details id="gitview-remote-box">
547
528
  <summary>Where the commits are sent</summary>
548
- <form id="gitview-remote" autocomplete="off">
549
- <label for="gitview-url">Address (https or ssh)</label>
550
- <input id="gitview-url" inputmode="url" spellcheck="false" autocapitalize="off" placeholder="https://example.com/project.git" required>
551
- <label for="gitview-sshkey">SSH key made here (for an ssh address)</label>
552
- <select id="gitview-sshkey"></select>
553
- <label for="gitview-user">For an https address: user name of the token (optional)</label>
554
- <input id="gitview-user" spellcheck="false" autocapitalize="off" autocomplete="off" placeholder="x-access-token">
555
- <label for="gitview-key">Key or token that may push (kept sealed here; leave empty to keep the one there is)</label>
556
- <div class="row"><input id="gitview-key" type="password" autocomplete="new-password"><button type="submit" class="primary">Save</button></div>
557
- <p id="gitview-key-state" class="hint"></p>
529
+ <form id="gitview-remote" class="set-rows" autocomplete="off">
530
+ <div class="set-row"><div class="set-what"><label for="gitview-url">Address</label><small>https or ssh</small></div><div class="set-control"><input id="gitview-url" inputmode="url" spellcheck="false" autocapitalize="off" placeholder="https://example.com/project.git" required></div></div>
531
+ <div class="set-row"><div class="set-what"><label for="gitview-sshkey">SSH key</label><small>Made here, for an ssh address</small></div><div class="set-control"><select id="gitview-sshkey"></select></div></div>
532
+ <div class="set-row"><div class="set-what"><label for="gitview-user">Token user</label><small>For https, optional</small></div><div class="set-control"><input id="gitview-user" spellcheck="false" autocapitalize="off" autocomplete="off" placeholder="x-access-token"></div></div>
533
+ <div class="set-row"><div class="set-what"><label for="gitview-key">Push key or token</label><small>Kept sealed · empty keeps the current one</small></div><div class="set-control"><input id="gitview-key" type="password" autocomplete="new-password"></div></div>
534
+ <div class="action-row"><span id="gitview-key-state" class="hint" role="status"></span><button type="submit" class="primary">Save</button></div>
558
535
  </form>
559
536
  </details>
560
537
  </div>
@@ -864,6 +841,36 @@
864
841
  </section>
865
842
  </div>
866
843
  </div>
844
+ <!-- A NEW CONVERSATION: a page of its own, as Settings, opened by "+ New" (app.js, openNew). -->
845
+ <form id="newconv" class="sheet" hidden novalidate autocomplete="off" aria-labelledby="newconv-title">
846
+ <div class="panel-top"><b id="newconv-title">New conversation</b><button type="button" id="newconv-close" class="as-link place-back">&lsaquo; Conversations</button></div>
847
+ <div class="nc-body">
848
+ <div class="nc-card">
849
+ <div class="set-row"><div class="set-what"><label for="newconv-name">Name</label><small>Shown in the list. Can be changed</small><span id="newconv-name-error" class="err" role="alert" hidden></span></div><div class="set-control"><input id="newconv-name" name="name" required maxlength="60" placeholder="Website redesign" spellcheck="false"></div></div>
850
+ <div class="set-row"><div class="set-what"><label for="newconv-group">Folder</label><small>Optional. Groups it in the list</small><span id="newconv-group-error" class="err" role="alert" hidden></span></div><div class="set-control"><input id="newconv-group" maxlength="40" list="group-names" placeholder="None" spellcheck="false" autocomplete="off"><datalist id="group-names"></datalist></div></div>
851
+ </div>
852
+ <div class="nc-card">
853
+ <span class="sub-head">Tool</span>
854
+ <div id="newconv-tools" class="pick" role="radiogroup" aria-label="Tool"></div>
855
+ </div>
856
+ <div class="nc-card">
857
+ <span class="sub-head">Its files</span>
858
+ <div id="newconv-work" class="pick two" role="radiogroup" aria-label="Its files">
859
+ <button type="button" role="radio" data-work="kept" aria-checked="true"><b>Kept here</b><small>Seen in Files. Outlives the machine</small></button>
860
+ <button type="button" role="radio" data-work="disk" aria-checked="false"><b>On the machine's disk</b><small>Faster for code. Gone with the machine</small></button>
861
+ </div>
862
+ <details class="more"><summary>Which one?</summary>A code project that installs packages: its disk. Can be changed later.</details>
863
+ </div>
864
+ <details class="chapter" id="newconv-more">
865
+ <summary><span class="chapter-title">More</span><span class="chapter-about">Identifier, memory.</span></summary>
866
+ <div class="chapter-body">
867
+ <div class="set-row"><div class="set-what"><label for="newconv-id">Identifier</label><small>Its machine and address. Never changes</small><span id="newconv-id-error" class="err" role="alert" hidden></span></div><div class="set-control"><input id="newconv-id" maxlength="32" pattern="[a-z]([a-z0-9\-]{0,30}[a-z0-9])?" placeholder="website-redesign" spellcheck="false" autocapitalize="none"></div></div>
868
+ <div class="set-row"><div class="set-what"><label for="newconv-memory">Memory</label><small id="newconv-memory-least"></small><span id="newconv-memory-error" class="err" role="alert" hidden></span></div><div class="set-control"><select id="newconv-memory"></select></div></div>
869
+ </div>
870
+ </details>
871
+ </div>
872
+ <div class="action-row"><span id="newconv-status" class="hint" role="status">Ready in a few minutes</span><button type="button" id="newconv-cancel">Cancel</button><button type="submit" id="newconv-create" class="primary">Create</button></div>
873
+ </form>
867
874
  <div id="copy" class="sheet" hidden>
868
875
  <div class="panel-top"><b>Copy from the screen</b><button type="button" id="copy-close" aria-label="Close" title="Close">&times;</button></div>
869
876
  <p class="hint">The terminal draws its text itself, so it cannot be selected by touch. Here is the same text as ordinary text: select what you need, or copy it all.</p>
@@ -902,9 +909,9 @@
902
909
  <div class="bar" role="progressbar" aria-labelledby="files-progress-text" aria-valuemin="0" aria-valuemax="100" id="files-progress-bar"><span></span></div>
903
910
  <small id="files-progress-bytes" class="hint"></small>
904
911
  </div>
905
- <div id="files-ask" class="files-card" role="alertdialog" aria-labelledby="files-ask-text" hidden>
912
+ <div id="files-ask" class="files-card callout confirm" role="alertdialog" aria-labelledby="files-ask-text" hidden>
906
913
  <b id="files-ask-text"></b>
907
- <div class="row"><button type="button" id="files-ask-keep" class="primary">Keep both</button><button type="button" id="files-ask-replace">Replace</button><button type="button" id="files-ask-skip">Skip</button></div>
914
+ <div class="action-row"><button type="button" id="files-ask-skip">Skip</button><button type="button" id="files-ask-replace">Replace</button><button type="button" id="files-ask-keep" class="primary">Keep both</button></div>
908
915
  <label class="check" id="files-ask-all-line"><input type="checkbox" id="files-ask-all"> <span id="files-ask-all-text">Do the same for the others</span></label>
909
916
  </div>
910
917
  <form id="files-name" class="files-card" autocomplete="off" hidden>
@@ -960,20 +967,17 @@
960
967
  </div>
961
968
  <details id="gitview-keep-box">
962
969
  <summary>Checks, origin, automatic sending</summary>
963
- <form id="gitview-keep" autocomplete="off">
964
- <label class="check"><input type="checkbox" id="gitview-runhook"> Run the project's pre-push hook, if it has one</label>
965
- <label for="gitview-checkcommand">Check command, run in the repository in the agent's machine (optional)</label>
966
- <input id="gitview-checkcommand" spellcheck="false" autocapitalize="off" maxlength="500" placeholder="npm test">
967
- <label for="gitview-checkseconds">Time limit of the checks, in seconds</label>
968
- <input id="gitview-checkseconds" type="number" min="10" max="3600" step="1" inputmode="numeric">
969
- <label class="check"><input type="checkbox" id="gitview-require"> Send only after the checks passed</label>
970
- <label for="gitview-refreshminutes">Refresh the origin every (minutes; 0: only with "Refresh now")</label>
971
- <input id="gitview-refreshminutes" type="number" min="0" max="1440" step="1" inputmode="numeric">
972
- <p class="hint">Refreshing and automatic sending happen only while a running machine has this repository attached; "Refresh now" works any time.</p>
973
- <p class="hint" id="gitview-auto-where">Automatic sending is set for each conversation, under its access to this repository (Write), in the conversation's Access panel.</p>
974
- <label class="check"><input type="checkbox" id="gitview-alert"> Tell my phone about automatic sendings</label>
975
- <label class="check"><input type="checkbox" id="gitview-tellmoves"> Tell the agent when a branch it follows moved (its origin/* is fetched for it either way)</label>
976
- <div class="row"><button type="submit" class="primary">Save</button><span class="hint" id="gitview-keep-said" role="status"></span></div>
970
+ <form id="gitview-keep" class="set-rows" autocomplete="off">
971
+ <div class="set-row"><div class="set-what"><label for="gitview-runhook">Pre-push hook</label><small>The project's own, if it has one</small></div><div class="set-control"><input type="checkbox" id="gitview-runhook"></div></div>
972
+ <div class="set-row"><div class="set-what"><label for="gitview-checkcommand">Check command</label><small>Run in the agent's machine, optional</small></div><div class="set-control"><input id="gitview-checkcommand" spellcheck="false" autocapitalize="off" maxlength="500" placeholder="npm test"></div></div>
973
+ <div class="set-row"><div class="set-what"><label for="gitview-checkseconds">Time limit</label><small>Of the checks, in seconds</small></div><div class="set-control"><input id="gitview-checkseconds" type="number" min="10" max="3600" step="1" inputmode="numeric"></div></div>
974
+ <div class="set-row"><div class="set-what"><label for="gitview-require">Checks required</label><small>Send only after they passed</small></div><div class="set-control"><input type="checkbox" id="gitview-require"></div></div>
975
+ <div class="set-row"><div class="set-what"><label for="gitview-refreshminutes">Origin refresh</label><small>Every N minutes · 0: by hand only</small></div><div class="set-control"><input id="gitview-refreshminutes" type="number" min="0" max="1440" step="1" inputmode="numeric"></div></div>
976
+ <div class="set-row"><div class="set-what"><label for="gitview-alert">Phone alerts</label><small>On automatic sendings</small></div><div class="set-control"><input type="checkbox" id="gitview-alert"></div></div>
977
+ <div class="set-row"><div class="set-what"><label for="gitview-tellmoves">Branch moves</label><small>Told to the agent · origin/* is fetched anyway</small></div><div class="set-control"><input type="checkbox" id="gitview-tellmoves"></div></div>
978
+ <p class="hint">Refresh and automatic sending: only while a running machine has it attached. "Refresh now": any time.</p>
979
+ <p class="hint" id="gitview-auto-where">Automatic sending: set for each conversation, in its Access (Write).</p>
980
+ <div class="action-row"><span class="hint" id="gitview-keep-said" role="status"></span><button type="submit" class="primary">Save</button></div>
977
981
  </form>
978
982
  <b>What was sent by itself, and what went wrong</b>
979
983
  <p id="gitview-log-empty" class="hint">Nothing yet.</p>
package/web/style.css CHANGED
@@ -47,9 +47,6 @@ button:focus-visible, input:focus-visible { outline: 2px solid var(--brass); out
47
47
  @keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }
48
48
  @keyframes pulse { 50% { opacity: .25; } }
49
49
  @media (prefers-reduced-motion: reduce) { .item > .state-dot, .unfolding { animation: none !important; } }
50
- #create { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--bar); border: 1px solid var(--line); border-radius: 8px; }
51
- #create label, #create .legend { font-size: .75rem; color: var(--ink2); }
52
- #create input { font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; min-width: 0; }
53
50
  .choices { display: flex; flex-wrap: wrap; gap: 6px; }
54
51
  .choices button[aria-checked="true"] { border-color: var(--brass); background: rgba(210, 169, 78, .16); }
55
52
  .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@@ -258,8 +255,7 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
258
255
  #gitview .commit { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
259
256
  #gitview .commit code { color: var(--ink2); }
260
257
  #gitview .commit small { color: var(--ink2); }
261
- #gitview-remote, #gitview-keep { display: grid; gap: 6px; margin-top: 8px; }
262
- #gitview-keep input:not([type=checkbox]), #gitview-keep textarea, #gitview-target, #gitview-newbranch { min-width: 0; min-height: 40px; font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; }
258
+ #gitview-target, #gitview-newbranch { min-width: 0; min-height: 40px; font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; }
263
259
  #gitview-target { max-width: 100%; }
264
260
  #gitview-origin code { overflow-wrap: anywhere; font: .75rem/1.45 ui-monospace, Menlo, Consolas, monospace; }
265
261
  #gitview-checks-state.passed { color: var(--ok); }
@@ -351,6 +347,28 @@ footer button.careful { border-style: dashed; color: var(--ink2); }
351
347
  /* A page written by the tool: a frame with a visible edge, so it never passes for this site. */
352
348
  #preview-body iframe { display: block; width: 100%; height: min(70vh, 900px); border: 2px solid var(--brass); border-radius: 8px; background: #fff; }
353
349
  #preview-body > button { margin-bottom: 8px; min-height: 40px; }
350
+ /* A Markdown file, formatted as the chat shows what the tool writes: the page's
351
+ colours, a reading measure; tables, code and drawings scroll in their box. */
352
+ .md-switch { position: sticky; top: 0; z-index: 1; display: inline-flex; margin-bottom: 10px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
353
+ #viewer .md-switch button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink2); font-weight: 600; }
354
+ #viewer .md-switch button[aria-pressed="true"] { background: var(--bar); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
355
+ #preview-body .md-view { display: block; container: none; min-height: 0; padding: 0 2px 24px; font-size: .9375rem; line-height: 1.55;
356
+ --parley-bg: var(--panel); --parley-text: var(--ink); --parley-dim: var(--ink2); --parley-line: var(--line); --parley-agent: var(--bar); --parley-action: var(--brass); --parley-measure: 80ch; }
357
+ :root[data-theme="light"] #preview-body .md-view { --parley-action: #8a5d00; }
358
+ #preview-body .md-view .parley-md { max-width: 80ch; }
359
+ #preview-body .md-view .parley-md > * + * { margin-top: .8em; }
360
+ #preview-body .md-view .parley-md > .parley-h { margin-top: 1.3em; }
361
+ #preview-body .md-view .parley-md > .parley-h:first-child { margin-top: 0; }
362
+ #preview-body .md-view .parley-h1 { font-size: 1.6em; padding-bottom: .25em; border-bottom: 1px solid var(--line); }
363
+ #preview-body .md-view .parley-h2 { font-size: 1.3em; padding-bottom: .2em; border-bottom: 1px solid var(--line); }
364
+ #preview-body .md-view .parley-h3 { font-size: 1.12em; }
365
+ #preview-body .md-view pre { white-space: pre; overflow-wrap: normal; font-size: .8125rem; }
366
+ #preview-body .md-view img { display: inline-block; max-width: 100%; max-height: 28rem; margin: 0; border-radius: 6px; vertical-align: top; }
367
+ #preview-body .md-view .parley-diagram img { display: block; background: #fff; padding: 8px; }
368
+ #viewer .md-view button.parley-copy { min-height: 28px; }
369
+ #viewer .md-view button.parley-pathlink { min-height: 0; }
370
+ #preview-body .md-view .parley-callout-head { margin: 0; }
371
+ #preview-body .md-view .parley-table { max-width: 100%; }
354
372
 
355
373
  /* Answers in the owner's place. */
356
374
  #answerer-fields textarea { width: 100%; min-height: 4.5rem; resize: vertical; font: inherit; padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
@@ -415,7 +433,6 @@ textarea.public-key { flex: 1 1 260px; min-width: 0; font: .75rem ui-monospace,
415
433
  .git-key { flex-direction: column; align-items: stretch; }
416
434
  .git-key .row { flex-wrap: wrap; }
417
435
  #git-new input[type="radio"] { min-height: 0; padding: 0; margin: 0; }
418
- #git-new select, #gitview-sshkey { min-height: 40px; min-width: 10rem; font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; }
419
436
 
420
437
  #settings-advanced > div { display: grid; gap: 6px; }
421
438
  #git-hosts .folder code { overflow-wrap: anywhere; font: .75rem/1.45 ui-monospace, Menlo, Consolas, monospace; }
@@ -660,7 +677,7 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
660
677
  .lk-add { width: 100%; margin-top: 12px; border: 1.5px dashed var(--line); background: none; border-radius: 12px; padding: 12px; }
661
678
  /* Flows. */
662
679
  .lk-files { gap: 8px; }
663
- .lk-tpick select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; max-width: 100%; }
680
+ .lk-tpick select { max-width: 100%; }
664
681
  .lk-tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
665
682
  .lk-tboard { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 150px); gap: 0 34px; padding: 16px 18px 20px; width: max-content; min-width: 100%; justify-content: center; }
666
683
  .lk-tcol { display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; z-index: 2; }
@@ -837,12 +854,8 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
837
854
  #app:is([data-place="access"], [data-place="assets"], [data-place="settings"]) #room > :is(#keys, #shortcuts) { visibility: hidden; }
838
855
  #app[data-current=""]:is([data-place="access"], [data-place="assets"], [data-place="settings"]) #room > header { display: none; }
839
856
 
840
- /* The form that makes a conversation keeps its height, and the conversations
841
- under it keep theirs: on a phone the whole column scrolls (seen: rows
842
- squashed under the open form). */
843
- #create { flex: 0 0 auto; }
857
+ /* The rows of the list keep their height: on a phone the whole column scrolls. */
844
858
  .item { flex-shrink: 0; }
845
- #list:has(> #create:not([hidden])) #items { flex: 0 0 auto; overflow: visible; }
846
859
 
847
860
  /* ---------- Files: list or icons, changes by hand, uploads, the editor ---------- */
848
861
  #files { --t: var(--ink2); }
@@ -1045,8 +1058,6 @@ button.inline:hover { color: var(--brass); }
1045
1058
  #hidden-toggle[hidden] { display: none; }
1046
1059
  #hidden-toggle .needs-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); vertical-align: middle; }
1047
1060
  .item[data-hidden="true"] { opacity: .7; }
1048
- #create .advanced { margin: .25rem 0; }
1049
- #create .advanced summary { cursor: pointer; color: var(--ink2); font-size: .8rem; }
1050
1061
 
1051
1062
  /* ---------- THE BAR (G): « · state dot + name · [Chat | Terminal | Assets N] · settings ---------- */
1052
1063
  html:not([data-door="device"]) #room > header { flex-wrap: nowrap; }
@@ -1409,7 +1420,7 @@ button.inline.more-recent { text-decoration: none; }
1409
1420
  .ts-who { display: flex; flex-direction: column; min-width: 0; }
1410
1421
  .ts-who b { overflow-wrap: anywhere; }
1411
1422
  .ts-way { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
1412
- .ts-way select { max-width: 100%; font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; }
1423
+ .ts-way select { max-width: 100%; }
1413
1424
  .ts-bar button:disabled { opacity: .5; cursor: default; }
1414
1425
  .ts-state .quiet { color: var(--ink2); font-weight: 400; }
1415
1426
  .ts-branch { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brass); overflow-wrap: anywhere; }
@@ -1443,18 +1454,23 @@ button.inline.more-recent { text-decoration: none; }
1443
1454
  /* ---------- SETTINGS, AND A CONVERSATION'S SETTINGS: one look ----------
1444
1455
  Every field the same; a setting is a row (its name and one short line on
1445
1456
  the left, its control on the right; one under the other on a phone); a
1446
- state is a line with a dot; what asks for an action is a callout. */
1447
- :is(#settings, #panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea) {
1457
+ state is a line with a dot; what asks for an action is a callout. The
1458
+ other sheets where something is set (an asset, Access and a device, To
1459
+ send and the review) take the same fields, at a lower weight: what is
1460
+ their own (a branch pill, the editor) stays theirs. */
1461
+ :is(#settings, #panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea),
1462
+ :where(#assets, #cassets, #access, #gitview) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), select, textarea:not(.editor)) {
1448
1463
  font: .875rem var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; min-height: 40px; max-width: 100%;
1449
1464
  }
1450
- :is(#settings, #panel) select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
1451
- :is(#settings, #panel) :is(input, select, textarea):focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
1452
- @media (pointer: coarse) { :is(#settings, #panel) :is(input:not([type=checkbox]):not([type=radio]), select) { min-height: 44px; } }
1465
+ :is(#settings, #panel) select, :where(#assets, #cassets, #access, #gitview) select:not(.pill) { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
1466
+ :is(#settings, #panel) :is(input, select, textarea):focus-visible, :where(#assets, #cassets, #access, #gitview) :is(input, select, textarea):focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
1467
+ @media (pointer: coarse) { :is(#settings, #panel) :is(input:not([type=checkbox]):not([type=radio]), select), :where(#assets, #cassets, #access, #gitview) :is(input:not([type=checkbox]):not([type=radio]), select:not(.pill)) { min-height: 44px; } }
1453
1468
  #settings select.pill { font: .875rem var(--sans); font-weight: 400; }
1454
1469
  :is(#settings, #panel) .chapter-body { gap: 0; padding: 0; background: var(--bar); }
1455
1470
  :is(#settings, #panel) .chapter-body > * { margin: 0; padding: 12px 16px; }
1456
- :is(#settings, #panel) .chapter-body > * + * { border-top: 1px solid var(--line); }
1457
- :is(#settings, #panel) .chapter-body > [hidden] + *, :is(#settings, #panel) .chapter-body > .hint + .hint { border-top: 0; }
1471
+ /* One line between two pieces in sight: a piece hidden (or empty) neither draws one nor takes one away. */
1472
+ :is(#settings, #panel) .chapter-body > :where(:not([hidden], :empty)) ~ :where(:not([hidden], :empty)) { border-top: 1px solid var(--line); }
1473
+ :is(#settings, #panel) .chapter-body > .hint + .hint { border-top: 0; }
1458
1474
  :is(#settings, #panel) .chapter-body > .hint, :is(#settings, #panel) .chapter-body > .error { padding-top: 8px; padding-bottom: 8px; }
1459
1475
  .set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
1460
1476
  .set-row > .set-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@@ -1479,6 +1495,9 @@ details.more > summary { list-style: none; cursor: pointer; display: inline-flex
1479
1495
  details.more > summary::-webkit-details-marker { display: none; }
1480
1496
  details.more > summary::before { content: "i"; display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--ink2); border-radius: 50%; font: italic 700 .6875rem Georgia, serif; }
1481
1497
  details.more[open] > summary { margin-bottom: 4px; }
1498
+ /* The same "i" in a sheet whose other folds are buttons. */
1499
+ :is(#assets, #gitview, #panel) details.more > summary { padding: 0; border: 0; background: none; font-weight: 400; min-height: 0; display: inline-flex; align-self: auto; }
1500
+ :is(#assets, #gitview, #panel) details.more > summary::before { content: "i"; }
1482
1501
  /* The categories: beside them on a wide screen, headings one under the other otherwise. */
1483
1502
  .settings-nav { display: none; }
1484
1503
  .settings-groups { display: flex; flex-direction: column; gap: 12px; }
@@ -1495,8 +1514,7 @@ details.more[open] > summary { margin-bottom: 4px; }
1495
1514
  /* A form of several settings: each its row, one line between them. */
1496
1515
  :is(#settings, #panel) .chapter-body > .set-rows { display: flex; flex-direction: column; padding: 0; }
1497
1516
  .set-rows > * { margin: 0; padding: 12px 16px; }
1498
- .set-rows > * + * { border-top: 1px solid var(--line); }
1499
- .set-rows > [hidden] + * { border-top: 0; }
1517
+ .set-rows > :where(:not([hidden])) ~ :where(:not([hidden])) { border-top: 1px solid var(--line); }
1500
1518
  /* One thing of a list (a shortcut, an administrator, a key): its name and a line; its actions on the right. */
1501
1519
  .list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 16px; }
1502
1520
  .list-item + .list-item { border-top: 1px solid var(--line); }
@@ -1508,7 +1526,7 @@ details.more[open] > summary { margin-bottom: 4px; }
1508
1526
  .mono-cut { font-family: ui-monospace, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1509
1527
  #settings #export-note { max-width: none; text-align: left; margin: 0; order: 0; flex: none; }
1510
1528
  /* Several settings in one block: one line between them too. */
1511
- :is(#settings, #panel) .chapter-body > * > :is(.set-row, form.set-row) ~ :is(.set-row, form.set-row):not([hidden]) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
1529
+ :is(#settings, #panel) .chapter-body > * > :is(.set-row, form.set-row):not([hidden]) ~ :is(.set-row, form.set-row):not([hidden]) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
1512
1530
  /* Nothing in it yet (a list, a line said later): no empty band. */
1513
1531
  :is(#settings, #panel) .chapter-body > :empty { display: none; }
1514
1532
  /* A sub-heading inside a chapter: small capitals, no line of its own. */
@@ -1529,4 +1547,133 @@ details.more[open] > summary { margin-bottom: 4px; }
1529
1547
  :is(#updates, #wifi) > .set-rows { padding: 0; }
1530
1548
  :is(#updates, #wifi) > .hint { padding-top: 8px; padding-bottom: 8px; }
1531
1549
  .ts-progress { margin: 10px 0 0; font-size: .875rem; }
1550
+ /* While the repositories are read: a turning ring on the line, and a true bar under it (repositories read of all). */
1551
+ .ts-progress[data-busy]::before { width: 10px; height: 10px; background: none; border: 2px solid var(--warn); border-right-color: transparent; animation: ts-turn .8s linear infinite; }
1552
+ @keyframes ts-turn { to { transform: rotate(360deg); } }
1553
+ .ts-meter { height: 4px; border-radius: 2px; background: var(--line); margin: 6px 0 2px; overflow: hidden; max-width: 28rem; }
1554
+ .ts-meter i { display: block; height: 100%; background: var(--warn); border-radius: 2px; transition: width .3s ease; }
1555
+ /* A row read just now slides in: it is seen arriving. */
1556
+ .ts-row.ts-new { animation: ts-arrive .35s ease-out; }
1557
+ @keyframes ts-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
1558
+ @media (prefers-reduced-motion: reduce) { .ts-row.ts-new, .ts-progress[data-busy]::before { animation: none; } }
1559
+ .ts-why-open { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: inherit; }
1560
+ .ts-why-open.bad { color: var(--danger); } .ts-why-open.warn { color: var(--warn); }
1561
+ .ts-why-box { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
1562
+ .ts-why-box p { margin: 0; }
1532
1563
  .ts-filters { margin-top: 10px; }
1564
+
1565
+ /* ---------- THE OTHER SHEETS, IN THE SAME LOOK ----------
1566
+ An asset, a device, To send, the review's settings: a card of rows (the
1567
+ set-rows of a chapter, standing alone), its heads in small capitals, its
1568
+ buttons at the end; a question before what cannot be taken back is a callout. */
1569
+ .set-card, .as-users, .as-settings, .as-detail .set-rows, #gitview-keep, .ts-rows, .device.card .card-body { border: 1px solid var(--line); border-radius: 10px; background: var(--bar); }
1570
+ .as-detail .set-rows, #gitview-keep { display: flex; flex-direction: column; gap: 0; margin: 0; }
1571
+ .as-detail .set-rows > .action-row, #gitview-keep > .action-row { padding: 10px 16px; }
1572
+ .as-detail .set-rows > .hint, #gitview-keep > .hint { padding-top: 8px; padding-bottom: 8px; font-size: .8125rem; }
1573
+ #gitview-keep > .hint + .hint { border-top: 0; padding-top: 0; }
1574
+ .set-row > .set-control > input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brass); }
1575
+ /* A chapter of a sheet: a head in small capitals, its action on the right. */
1576
+ .as-chapter { margin-top: 10px; min-height: 30px; }
1577
+ .as-chapter h3 { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1578
+ /* Who has it: one row each, a line between them. */
1579
+ .as-users { gap: 0; }
1580
+ .as-users > *, .device.card .given > * { border-top: 1px solid var(--line); }
1581
+ .as-users > .given-row, .device.card .given > .given-row, .thing > .given-row { padding: 10px 16px; border-top: 1px solid var(--line); }
1582
+ .as-users > :first-child, .device.card .given > :first-child { border-top: 0; }
1583
+ .as-users > .hint, .device.card .given > .hint { margin: 0; padding: 10px 16px; }
1584
+ .as-picker { border-style: dashed; background: transparent; }
1585
+ /* Its settings: the name on the left, the value on the right, as a set-row. */
1586
+ .as-settings { padding: 0 16px; }
1587
+ .as-settings dt, .as-settings dd { padding: 12px 0; }
1588
+ .as-settings dt { color: var(--ink); font-size: .875rem; font-weight: 600; }
1589
+ .as-settings dd { color: var(--ink2); font-weight: 400; font-size: .875rem; }
1590
+ .as-card, .as-lastchecks, .as-graph { background: var(--bar); border-radius: 10px; }
1591
+ .secret-rename > .set-control > input { width: 14rem; }
1592
+ .as-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
1593
+ .as-foot > br { display: none; }
1594
+ #gitview-remote-box { margin: 0; }
1595
+ #gitview-remote { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; }
1596
+ #gitview-key-state { font-size: .75rem; }
1597
+ /* A device: its head, then what it has as rows, then its buttons. */
1598
+ .device.card { background: transparent; border: 0; }
1599
+ .device.card .device-head { padding: 10px 2px 8px; min-height: 0; }
1600
+ .device.card .card-body { padding: 0; gap: 0; }
1601
+ .device.card .given { display: block; }
1602
+ .device.card .given > .parts-off { margin: 0; padding: 8px 16px; }
1603
+ .device.card .device-acts { padding: 10px 16px; border-top: 1px solid var(--line); justify-content: flex-start; }
1604
+ .thing { border: 1px solid var(--line); border-radius: 10px; background: var(--bar); padding: 0; margin-top: 8px; }
1605
+ .thing > summary { padding: 0 16px; }
1606
+ /* To send: one card, a row for each branch; the result, a state line. */
1607
+ .ts-rows { gap: 0; margin-top: 12px; }
1608
+ .ts-rows:empty { display: none; }
1609
+ .ts-row { border: 0; border-radius: 0; background: transparent; padding: 12px 16px; }
1610
+ .ts-row + .ts-row { border-top: 1px solid var(--line); }
1611
+ .ts-rows > p { margin: 0; padding: 12px 16px; }
1612
+ .ts-bar { margin-top: 12px; }
1613
+ .ts-bar > .ts-why { margin-right: auto; }
1614
+ .ts-bar > .ts-why:empty { display: none; }
1615
+ .ts-said { font-weight: 600; }
1616
+ .ts-review-head h3 { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1617
+ .ts-review-head .as-line { margin-top: 4px; color: var(--ink); }
1618
+ /* The review's settings, folded under its checks. */
1619
+ #gitview-keep-box > summary { font-weight: 600; }
1620
+ #gitview-keep-box > b { display: block; margin: 14px 0 4px; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
1621
+ /* A question before what cannot be taken back: a callout, its line, then its buttons, the main one last. */
1622
+ .callout.confirm { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; font-size: .875rem; }
1623
+ .callout.confirm > label { flex: 1 1 100%; }
1624
+ .callout.confirm > :is(span, b, p):first-child { flex: 1 1 12rem; margin: 0; font-weight: 600; color: var(--ink); }
1625
+ .callout.confirm > .action-row { flex: 1 1 100%; }
1626
+ span.callout.confirm { display: inline-flex; justify-content: flex-end; padding: 4px; margin-left: auto; }
1627
+ .files-card.callout { border: 0; border-left: 3px solid var(--warn); border-radius: 4px; }
1628
+ #files-ask.callout { border-color: var(--warn); }
1629
+ .entry .acts.confirm { margin: 0 0 10px 44px; padding: 8px 12px; border-left: 3px solid var(--danger); border-radius: 4px; background: color-mix(in srgb, var(--danger) 8%, var(--bar)); justify-content: flex-end; }
1630
+ .entry .acts.confirm .sure { font-size: .875rem; }
1631
+ @media (max-width: 700px) { .entry .acts.confirm { margin-left: 0; } }
1632
+
1633
+ /* ---------- A NEW CONVERSATION: a page of its own, as Settings ----------
1634
+ The pieces of "one look" (set-row, sub-head, more, chapter, action-row);
1635
+ a choice of a few is a card each; Create stays in sight at the bottom. */
1636
+ #newconv { gap: 12px; padding: 14px 20px 0; }
1637
+ #newconv > .panel-top b { font-size: 1.125rem; }
1638
+ #newconv > .nc-body { display: flex; flex-direction: column; gap: 12px; max-width: 720px; width: 100%; }
1639
+ #newconv :is(input:not([type=checkbox]):not([type=radio]), select) { font: .875rem var(--sans); color: var(--ink); background-color: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; min-height: 40px; max-width: 100%; box-sizing: border-box; }
1640
+ #newconv select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
1641
+ #newconv :is(input, select):focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
1642
+ @media (pointer: coarse) { #newconv :is(input:not([type=checkbox]):not([type=radio]), select) { min-height: 44px; } }
1643
+ #newconv .set-control > :is(input, select)[aria-invalid=true]:not([type=checkbox]):not([type=radio]) { border-color: var(--danger); }
1644
+ #newconv .set-row > .set-control > :is(input, select) { width: 18rem; }
1645
+ #newconv .set-what > .err { font-size: .75rem; color: var(--danger); }
1646
+ /* A card of rows, as an open chapter without its fold. */
1647
+ .nc-card, #newconv details.chapter { flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bar); }
1648
+ .nc-card > *, #newconv details.chapter > .chapter-body > * { margin: 0; padding: 12px 16px; }
1649
+ .nc-card > * + *, #newconv details.chapter > .chapter-body > * + * { border-top: 1px solid var(--line); }
1650
+ .nc-card > .sub-head { display: block; padding-bottom: 0; }
1651
+ .nc-card > .sub-head + * { border-top: 0; }
1652
+ #newconv details.chapter > .chapter-body { gap: 0; padding: 0; background: var(--bar); border-radius: 0 0 10px 10px; }
1653
+ /* A choice of a few, each a card: its name and one short line. */
1654
+ .pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
1655
+ .pick.two { grid-template-columns: 1fr 1fr; }
1656
+ .pick > button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 24px 10px 12px; text-align: left; font-weight: 400; background: var(--panel); }
1657
+ .pick > button b { font-size: .875rem; color: var(--ink); }
1658
+ .pick > button small { font-size: .75rem; color: var(--ink2); }
1659
+ .pick > button[aria-checked=true] { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); background: color-mix(in srgb, var(--brass) 10%, var(--panel)); }
1660
+ .pick > button[aria-checked=true]::after { content: ""; position: absolute; right: 10px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
1661
+ /* The buttons stay in sight at the end of the page. */
1662
+ #newconv > .action-row { position: sticky; bottom: 0; z-index: 1; flex-wrap: nowrap; max-width: 720px; width: 100%; box-sizing: border-box; margin-top: auto; padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--panel); border-top: 1px solid var(--line); }
1663
+ #newconv > .action-row > .hint { font-size: .8125rem; min-width: 0; }
1664
+ #newconv > .action-row > .hint.error { color: var(--danger); }
1665
+ #newconv > .action-row > button { flex: none; min-height: 40px; padding: 8px 16px; }
1666
+ #new[aria-pressed=true] { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--brass); }
1667
+ /* Over a conversation on a wide screen, as Settings: its keys keep their room but cannot be touched; with none, no bar. */
1668
+ #app[data-place="new"] #room > :is(#keys, #shortcuts) { visibility: hidden; }
1669
+ #app[data-current=""][data-place="new"] #room > header { display: none; }
1670
+ @media (max-width: 700px) {
1671
+ /* A phone: the whole screen, the menu bar and the conversation's bar put away. */
1672
+ #app[data-place="new"] #nav { display: none; }
1673
+ #app[data-place="new"] #room > :is(header, #health-strip, #signin-strip, #voice-line, #shortcuts, #keys) { display: none !important; }
1674
+ #newconv { padding: 12px 16px 0; }
1675
+ #newconv .set-row > .set-control > :is(input, select) { width: 100%; }
1676
+ .pick { grid-template-columns: 1fr 1fr; }
1677
+ .pick.two { grid-template-columns: 1fr; }
1678
+ #newconv > .action-row > .hint { font-size: .75rem; }
1679
+ }