@loomcycle/explorer 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -34,10 +34,22 @@
34
34
  --lc-text-xs: 12px;
35
35
  --lc-text-sm: 13px;
36
36
  --lc-text-base: 14px;
37
+ --lc-text-md: 16px;
38
+ --lc-text-lg: 20px;
39
+
40
+ /* RFC GZ — the explorer's one type scale, five sizes: meta (marks,
41
+ revisions, the path), ui (rows, buttons, menus, panels, code), body (the
42
+ document's text), and two heading sizes. Kept in step with the Web UI's
43
+ sheet. */
44
+ --ex-text-meta: var(--lc-text-xs);
45
+ --ex-text-ui: var(--lc-text-sm);
46
+ --ex-text-body: 15px;
47
+ --ex-text-h3: var(--lc-text-md);
48
+ --ex-text-h2: var(--lc-text-lg);
37
49
 
38
50
  color: var(--fg);
39
51
  font-family: var(--font-sans);
40
- font-size: var(--lc-text-base);
52
+ font-size: var(--ex-text-ui);
41
53
  line-height: 1.5;
42
54
  -webkit-font-smoothing: antialiased;
43
55
  color-scheme: dark;
@@ -75,7 +87,7 @@
75
87
  .loomcycle-explorer *::after {
76
88
  box-sizing: border-box;
77
89
  }
78
- .loomcycle-explorer button {
90
+ .loomcycle-explorer :is(button, input, select, textarea) {
79
91
  font: inherit;
80
92
  }
81
93
  .loomcycle-explorer code,
@@ -118,53 +130,6 @@
118
130
  font-size: var(--lc-text-xs);
119
131
  }
120
132
 
121
- /* ---- tree skeleton (Path tree + chunk tree) ---- */
122
- .loomcycle-explorer .tree {
123
- list-style: none;
124
- margin: 0;
125
- padding: 0;
126
- }
127
- .loomcycle-explorer .tree .children {
128
- list-style: none;
129
- margin: 0;
130
- margin-left: 14px;
131
- padding: 0;
132
- padding-left: 12px;
133
- border-left: 1px dashed var(--border);
134
- }
135
- .loomcycle-explorer .node {
136
- margin: 2px 0;
137
- }
138
- /* Both explorer tree views (path rows + chunk rows) lay a row out as a
139
- caret + a single name affordance — a flex line, not the agents-tree grid. */
140
- .loomcycle-explorer .node .row {
141
- display: flex;
142
- gap: 8px;
143
- align-items: center;
144
- padding: 6px 8px;
145
- background: var(--bg-soft);
146
- border: 1px solid var(--border);
147
- border-radius: 4px;
148
- }
149
- .loomcycle-explorer .tree-caret {
150
- background: transparent;
151
- border: none;
152
- color: var(--fg-soft);
153
- cursor: pointer;
154
- width: 14px;
155
- height: 14px;
156
- font-size: 10px;
157
- padding: 0;
158
- user-select: none;
159
- line-height: 1;
160
- }
161
- .loomcycle-explorer .tree-caret:disabled {
162
- cursor: default;
163
- opacity: 0.35;
164
- }
165
- .loomcycle-explorer .tree-caret:hover:not(:disabled) {
166
- color: var(--accent);
167
- }
168
133
 
169
134
  /* ============================================================
170
135
  Splitter
@@ -208,49 +173,6 @@
208
173
  background: var(--accent);
209
174
  }
210
175
 
211
- /* StackSplitter: the same handle on its side, between a chunk's text (top)
212
- and its links (bottom), in the document viewer's content column. */
213
- .loomcycle-explorer .stack-splitter {
214
- display: grid;
215
- flex: 1;
216
- min-height: 0;
217
- }
218
- .loomcycle-explorer .stack-splitter.dragging {
219
- user-select: none;
220
- cursor: row-resize;
221
- }
222
- .loomcycle-explorer .stack-splitter > .stack-splitter-pane {
223
- min-height: 0;
224
- display: flex;
225
- flex-direction: column;
226
- overflow: hidden;
227
- }
228
- .loomcycle-explorer .stack-splitter > .stack-splitter-handle {
229
- cursor: row-resize;
230
- position: relative;
231
- z-index: 1;
232
- }
233
- .loomcycle-explorer .stack-splitter > .stack-splitter-handle::before {
234
- content: "";
235
- position: absolute;
236
- left: 0;
237
- right: 0;
238
- top: 2px;
239
- height: 2px;
240
- background: var(--border);
241
- transition: background 80ms ease;
242
- }
243
- .loomcycle-explorer .stack-splitter > .stack-splitter-handle:hover::before,
244
- .loomcycle-explorer .stack-splitter.dragging > .stack-splitter-handle::before {
245
- background: var(--accent);
246
- }
247
- /* The links side scrolls on its own, as the text does above it. */
248
- .loomcycle-explorer .doc-links-pane {
249
- flex: 1;
250
- min-height: 0;
251
- overflow: auto;
252
- }
253
-
254
176
  /* ============================================================
255
177
  Modal base (PromptModal + ChunkEditorModal)
256
178
  ============================================================ */
@@ -376,34 +298,35 @@
376
298
  overflow: hidden;
377
299
  flex: 1;
378
300
  }
379
- .loomcycle-explorer .paths-view .left > .tree,
380
- .loomcycle-explorer .paths-view .left > .empty {
381
- flex: 1;
382
- overflow: auto;
383
- min-height: 0;
384
- padding: 8px 10px;
385
- }
386
301
  .loomcycle-explorer .paths-toolbar {
387
302
  display: flex;
388
303
  align-items: center;
389
- gap: 12px;
390
- padding: 10px 12px;
304
+ gap: 8px;
305
+ padding: 8px 10px;
391
306
  border-bottom: 1px solid var(--border);
392
- flex-wrap: wrap;
307
+ flex-wrap: nowrap;
393
308
  }
309
+ /* The scope as a segmented control, matching the tree | stars switch. */
394
310
  .loomcycle-explorer .paths-scope {
395
311
  display: inline-flex;
396
- align-items: center;
397
- gap: 6px;
398
- font-size: var(--lc-text-sm);
399
- color: var(--fg-soft);
312
+ border: 1px solid var(--border);
313
+ border-radius: 4px;
314
+ overflow: hidden;
400
315
  }
401
- .loomcycle-explorer .paths-scope select {
316
+ .loomcycle-explorer .paths-scope button {
317
+ padding: 3px 8px;
318
+ border: none;
402
319
  background: var(--bg);
320
+ color: var(--fg-soft);
321
+ cursor: pointer;
322
+ }
323
+ .loomcycle-explorer .paths-scope button + button {
324
+ border-left: 1px solid var(--border);
325
+ }
326
+ .loomcycle-explorer .paths-scope button.active {
327
+ background: var(--bg-soft);
403
328
  color: var(--fg);
404
- border: 1px solid var(--border);
405
- border-radius: 4px;
406
- padding: 4px 6px;
329
+ box-shadow: inset 0 -2px 0 var(--accent);
407
330
  }
408
331
  .loomcycle-explorer .paths-toolbar-actions {
409
332
  display: flex;
@@ -433,7 +356,7 @@
433
356
  overflow: hidden;
434
357
  }
435
358
  .loomcycle-explorer .paths-nav-switch button {
436
- padding: 4px 10px;
359
+ padding: 3px 8px;
437
360
  border: none;
438
361
  background: var(--bg);
439
362
  color: var(--fg-soft);
@@ -454,13 +377,6 @@
454
377
  display: flex;
455
378
  flex-direction: column;
456
379
  }
457
- .loomcycle-explorer .paths-context {
458
- margin: 0;
459
- padding: 6px 12px;
460
- font-size: var(--lc-text-xs);
461
- color: var(--fg-soft);
462
- border-bottom: 1px solid var(--border);
463
- }
464
380
  .loomcycle-explorer .paths-err {
465
381
  margin: 0;
466
382
  padding: 8px 12px;
@@ -468,31 +384,166 @@
468
384
  font-size: var(--lc-text-sm);
469
385
  border-bottom: 1px solid var(--border);
470
386
  }
471
- .loomcycle-explorer .path-link {
472
- display: inline-flex;
473
- align-items: center;
474
- gap: 8px;
475
- background: transparent;
387
+ /* RFC GZ — the Path header's one "+" menu (components/CreateMenu). */
388
+ .loomcycle-explorer .paths-create-menu {
389
+ position: relative;
390
+ }
391
+ .loomcycle-explorer .paths-create-list {
392
+ position: absolute;
393
+ top: calc(100% + 4px);
394
+ right: 0;
395
+ z-index: 30;
396
+ min-width: 140px;
397
+ padding: 4px;
398
+ display: flex;
399
+ flex-direction: column;
400
+ background: var(--bg);
401
+ border: 1px solid var(--border);
402
+ border-radius: 4px;
403
+ box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
404
+ }
405
+ .loomcycle-explorer .paths-toolbar-actions .paths-create-list button {
406
+ padding: 5px 10px;
476
407
  border: none;
408
+ border-radius: 3px;
409
+ background: transparent;
410
+ color: var(--fg);
411
+ text-align: left;
412
+ white-space: nowrap;
413
+ }
414
+ .loomcycle-explorer .paths-toolbar-actions .paths-create-list button:hover,
415
+ .loomcycle-explorer .paths-toolbar-actions .paths-create-list button:focus {
416
+ background: var(--bg-soft);
417
+ color: var(--accent);
418
+ outline: none;
419
+ }
420
+ .loomcycle-explorer .paths-toolbar-actions .paths-create-menu > button.active {
421
+ border-color: var(--accent);
422
+ }
423
+
424
+ /* RFC GZ — the explorer's tree row, shared by the Path tree and the chunk
425
+ outline (components/TreeRow). It has its own classes, not the agent-run
426
+ tree's .tree / .node .row, so neither tree can restyle the other. One line,
427
+ one height, on a fixed grid: indent x depth | caret | icon | name | marks.
428
+ Kept in step with web/src/styles.css. */
429
+ .loomcycle-explorer .etree {
430
+ --etree-indent: 16px;
431
+ }
432
+ .loomcycle-explorer .etree,
433
+ .loomcycle-explorer .etree-children {
434
+ list-style: none;
435
+ margin: 0;
436
+ padding: 0;
437
+ }
438
+ .loomcycle-explorer .etree-node {
439
+ margin: 0;
440
+ outline: none;
441
+ }
442
+ .loomcycle-explorer .etree-row {
443
+ /* Defaults; a row sets its own depth and tint inline. */
444
+ --etree-depth: 0;
445
+ --etree-tint: transparent;
446
+ display: grid;
447
+ grid-template-columns: 16px 16px minmax(0, 1fr) auto auto;
448
+ align-items: center;
449
+ column-gap: 6px;
450
+ height: 28px;
451
+ padding: 0 8px 0 calc(4px + var(--etree-depth) * var(--etree-indent));
452
+ border-radius: 4px;
477
453
  color: var(--fg);
454
+ font-size: var(--lc-text-sm, 13px);
478
455
  cursor: pointer;
456
+ user-select: none;
457
+ /* A coloured row's wash: --etree-tint is the only thing its inline style
458
+ sets, so the hover and selected layers below always show. */
459
+ background-image: linear-gradient(to right, var(--etree-tint), transparent 75%);
460
+ }
461
+ .loomcycle-explorer .etree-row:hover {
462
+ background-color: color-mix(in srgb, var(--fg) 7%, transparent);
463
+ }
464
+ /* Selected is its own layer above the tint and the hover, and does not depend
465
+ on the tree having focus. */
466
+ .loomcycle-explorer .etree-node[aria-selected="true"] > .etree-row {
467
+ background-color: color-mix(in srgb, var(--accent) 24%, transparent);
468
+ font-weight: 600;
469
+ }
470
+ .loomcycle-explorer .etree-node:focus-visible > .etree-row {
471
+ outline: 2px solid var(--accent);
472
+ outline-offset: -2px;
473
+ }
474
+ .loomcycle-explorer .etree-caret {
475
+ display: inline-flex;
476
+ align-items: center;
477
+ justify-content: center;
478
+ width: 16px;
479
+ height: 16px;
479
480
  padding: 0;
480
- font: inherit;
481
- text-align: left;
482
- min-width: 0;
481
+ border: none;
482
+ border-radius: 3px;
483
+ background: transparent;
484
+ color: var(--fg-soft);
485
+ cursor: pointer;
486
+ }
487
+ .loomcycle-explorer .etree-caret svg {
488
+ transition: transform 0.1s ease;
489
+ }
490
+ .loomcycle-explorer .etree-caret[aria-expanded="true"] svg {
491
+ transform: rotate(90deg);
483
492
  }
484
- .loomcycle-explorer .path-link:hover .path-name {
493
+ .loomcycle-explorer .etree-caret:disabled {
494
+ cursor: inherit;
495
+ }
496
+ .loomcycle-explorer .etree-caret:hover:not(:disabled) {
485
497
  color: var(--accent);
486
498
  }
487
- .loomcycle-explorer .path-kind-icon {
488
- font-size: 14px;
489
- line-height: 1;
499
+ .loomcycle-explorer .etree-icon {
500
+ display: inline-flex;
501
+ align-items: center;
502
+ justify-content: center;
503
+ width: 16px;
504
+ height: 16px;
505
+ color: var(--fg-soft);
506
+ }
507
+ .loomcycle-explorer .etree-name {
508
+ min-width: 0;
509
+ overflow: hidden;
510
+ text-overflow: ellipsis;
511
+ white-space: nowrap;
512
+ }
513
+ /* Type and status as compact marks at the right edge; the full labels are in
514
+ each mark's title. */
515
+ .loomcycle-explorer .etree-marks {
516
+ display: inline-flex;
517
+ align-items: center;
518
+ gap: 6px;
519
+ margin-left: 6px;
520
+ font-weight: 400;
490
521
  }
491
- .loomcycle-explorer .path-name {
522
+ .loomcycle-explorer .etree-mark-type {
523
+ font-size: var(--lc-text-xs, 12px);
524
+ color: var(--fg-soft);
525
+ /* The type's name, cut to a fixed width so a long one cannot crowd the row's
526
+ name out; the full label is in its title. */
527
+ max-width: 10ch;
492
528
  overflow: hidden;
493
529
  text-overflow: ellipsis;
494
530
  white-space: nowrap;
495
531
  }
532
+ .loomcycle-explorer .etree-mark-status {
533
+ --etree-dot: var(--fg-muted);
534
+ width: 8px;
535
+ height: 8px;
536
+ border-radius: 50%;
537
+ background: var(--etree-dot);
538
+ }
539
+ .loomcycle-explorer .etree-mark-link {
540
+ display: inline-flex;
541
+ color: var(--fg-soft);
542
+ }
543
+ .loomcycle-explorer .etree-mark-link svg {
544
+ width: 12px;
545
+ height: 12px;
546
+ }
496
547
  .loomcycle-explorer .path-implicit {
497
548
  font-size: var(--lc-text-xs);
498
549
  color: var(--fg-soft);
@@ -501,7 +552,8 @@
501
552
  }
502
553
  /* A directory's trailing status / "load more" row (the tree lists lazily). */
503
554
  .loomcycle-explorer .path-status {
504
- padding: 2px 8px;
555
+ --etree-depth: 0;
556
+ padding: 2px 8px 2px calc(26px + var(--etree-depth) * var(--etree-indent, 16px));
505
557
  font-size: var(--lc-text-xs);
506
558
  }
507
559
  .loomcycle-explorer .path-err {
@@ -614,22 +666,14 @@
614
666
  /* ============================================================
615
667
  Document viewer (RFC AK) — chunk tree + Markdown view + editor
616
668
  ============================================================ */
617
- /* When a document is selected in the Path console, the right pane is a slim
618
- action bar + the viewer filling the rest. */
669
+ /* When a document is selected in the Path console, the right pane is the
670
+ followed-links trail (when there is one) + the viewer filling the rest. */
619
671
  .loomcycle-explorer .paths-doc {
620
672
  flex: 1;
621
673
  display: flex;
622
674
  flex-direction: column;
623
675
  min-height: 0;
624
676
  }
625
- .loomcycle-explorer .paths-doc-head {
626
- display: flex;
627
- align-items: center;
628
- gap: 10px;
629
- padding: 10px 12px;
630
- border-bottom: 1px solid var(--border);
631
- flex-wrap: wrap;
632
- }
633
677
  .loomcycle-explorer .paths-doc-path {
634
678
  font-family: var(--lc-font-mono);
635
679
  font-size: var(--lc-text-sm);
@@ -643,162 +687,185 @@
643
687
  flex-direction: column;
644
688
  min-height: 0;
645
689
  }
646
- .loomcycle-explorer .doc-toolbar {
690
+ /* RFC GZ — the document's one header line: path, title, marks, the panel
691
+ toggles, edit and the "more" menu. Nothing wraps; the path and the title
692
+ give way first. */
693
+ .loomcycle-explorer .doc-header {
647
694
  display: flex;
648
695
  align-items: center;
649
- gap: 12px;
650
- padding: 8px 12px;
696
+ gap: 8px;
697
+ min-height: 40px;
698
+ padding: 4px 8px 4px 12px;
651
699
  border-bottom: 1px solid var(--border);
652
- flex-wrap: wrap;
700
+ flex-wrap: nowrap;
701
+ min-width: 0;
653
702
  }
654
- .loomcycle-explorer .doc-title {
655
- font-size: var(--lc-text-base);
703
+ .loomcycle-explorer .doc-header-path {
704
+ flex: 0 1 auto;
705
+ min-width: 0;
706
+ max-width: 40%;
656
707
  overflow: hidden;
657
708
  text-overflow: ellipsis;
658
709
  white-space: nowrap;
710
+ /* The breadcrumb is a block; its separator follows it on the line. */
711
+ display: flex;
712
+ align-items: center;
713
+ color: var(--fg-soft);
714
+ font-size: var(--ex-text-meta);
715
+ }
716
+ .loomcycle-explorer .doc-header-path .paths-doc-path {
717
+ font-size: inherit;
718
+ word-break: normal;
719
+ }
720
+ .loomcycle-explorer .doc-header-path::after {
721
+ content: "›";
722
+ margin-left: 8px;
723
+ }
724
+ .loomcycle-explorer .doc-title {
725
+ flex: 0 1 auto;
659
726
  min-width: 0;
727
+ margin: 0;
728
+ overflow: hidden;
729
+ text-overflow: ellipsis;
730
+ white-space: nowrap;
731
+ font-size: var(--ex-text-body);
732
+ font-weight: 600;
733
+ line-height: 1.3;
660
734
  }
661
- .loomcycle-explorer .doc-toolbar-actions {
735
+ .loomcycle-explorer .doc-header > .etree-marks {
736
+ margin-left: 0;
737
+ flex: none;
738
+ }
739
+ .loomcycle-explorer .doc-header-actions {
662
740
  display: flex;
663
741
  align-items: center;
664
- gap: 6px;
742
+ gap: 2px;
665
743
  margin-left: auto;
744
+ flex: none;
666
745
  }
667
- .loomcycle-explorer .doc-toolbar-actions button {
668
- padding: 4px 10px;
669
- border: 1px solid var(--border);
670
- background: var(--bg);
671
- color: var(--fg);
746
+ .loomcycle-explorer .doc-header-note {
747
+ color: var(--fg-soft);
748
+ font-size: var(--ex-text-meta);
749
+ margin-right: 6px;
750
+ }
751
+ .loomcycle-explorer .doc-header-actions button {
752
+ display: inline-flex;
753
+ align-items: center;
754
+ gap: 4px;
755
+ height: 28px;
756
+ padding: 0 8px;
757
+ border: 1px solid transparent;
672
758
  border-radius: 4px;
759
+ background: transparent;
760
+ color: var(--fg-soft);
673
761
  cursor: pointer;
674
762
  }
675
- .loomcycle-explorer .doc-toolbar-actions button:hover {
676
- border-color: var(--accent);
677
- }
678
- .loomcycle-explorer .doc-toolbar-actions button.active {
679
- background: var(--accent);
680
- color: white;
681
- border-color: var(--accent);
763
+ .loomcycle-explorer .doc-header-actions button:hover:not(:disabled) {
764
+ background: var(--bg-soft);
765
+ color: var(--fg);
682
766
  }
683
- .loomcycle-explorer .doc-toolbar-actions .doc-download-menu > button:disabled {
767
+ .loomcycle-explorer .doc-header-actions button:disabled {
768
+ opacity: 0.5;
684
769
  cursor: default;
685
- opacity: 0.7;
770
+ }
771
+ /* Edit is the one primary action, so it stays highlighted: a fixed light
772
+ amber fill with dark text, readable in both themes. */
773
+ .loomcycle-explorer .doc-header-actions button.doc-edit,
774
+ .loomcycle-explorer .doc-chunk-bar button.doc-chunk-edit {
775
+ display: inline-flex;
776
+ align-items: center;
777
+ gap: 5px;
778
+ background: #f8c58c;
779
+ border-color: #eeac62;
780
+ color: #3d2408;
781
+ font-weight: 600;
782
+ }
783
+ .loomcycle-explorer .doc-chunk-bar button.doc-chunk-edit {
784
+ padding: 0 8px;
785
+ }
786
+ .loomcycle-explorer .doc-header-actions button.doc-edit:hover:not(:disabled),
787
+ .loomcycle-explorer .doc-chunk-bar button.doc-chunk-edit:hover:not(:disabled) {
788
+ filter: brightness(1.08);
686
789
  }
687
790
 
688
- /* The toolbar's download menu (DownloadMenu): one button, a small list under it. */
689
- .loomcycle-explorer .doc-download-menu {
791
+ /* The "more" menu (components/MoreMenu): the header's last button, a list of
792
+ grouped items under it. Delete is set apart in the danger colour. */
793
+ .loomcycle-explorer .doc-more-menu {
690
794
  position: relative;
691
795
  }
692
- .loomcycle-explorer .doc-download-list {
796
+ .loomcycle-explorer .doc-header-actions .doc-more-button {
797
+ width: 32px;
798
+ justify-content: center;
799
+ padding: 0;
800
+ }
801
+ .loomcycle-explorer .doc-header-actions .doc-more-button[aria-busy="true"] {
802
+ width: auto;
803
+ padding: 0 8px;
804
+ }
805
+ .loomcycle-explorer .doc-more-list {
693
806
  position: absolute;
694
807
  top: calc(100% + 4px);
695
808
  right: 0;
696
809
  z-index: 30;
697
- min-width: 170px;
810
+ min-width: 200px;
811
+ max-height: 70vh;
812
+ overflow-x: hidden;
813
+ overflow-y: auto;
698
814
  padding: 4px;
699
815
  display: flex;
700
816
  flex-direction: column;
701
- background: var(--bg-soft);
817
+ background: var(--bg);
702
818
  border: 1px solid var(--border);
703
- border-radius: 4px;
704
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
819
+ border-radius: 6px;
820
+ box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
705
821
  }
706
- .loomcycle-explorer .doc-toolbar-actions .doc-download-list button {
707
- padding: 5px 10px;
708
- border: none;
709
- border-radius: 3px;
710
- background: transparent;
711
- color: var(--fg);
712
- font-size: var(--lc-text-sm);
713
- text-align: left;
714
- white-space: nowrap;
715
- }
716
- .loomcycle-explorer .doc-toolbar-actions .doc-download-list button:hover,
717
- .loomcycle-explorer .doc-toolbar-actions .doc-download-list button:focus {
718
- background: var(--bg);
719
- color: var(--accent);
720
- outline: none;
721
- }
722
-
723
- /* Id + copy affordance (IdCopy): the document id in the toolbar, the selected
724
- chunk id in the content head, and a compact copy on every chunk-tree row.
725
- Lets an operator grab the exact id for an external workflow (n8n over the
726
- MCP/HTTP API). */
727
- .loomcycle-explorer .id-copy {
728
- display: inline-flex;
729
- align-items: center;
730
- gap: 4px;
731
- min-width: 0;
732
- }
733
- .loomcycle-explorer .id-copy-label {
734
- font-size: var(--lc-text-xs);
735
- color: var(--fg-muted);
736
- text-transform: uppercase;
737
- letter-spacing: 0.03em;
822
+ .loomcycle-explorer .doc-more-group {
823
+ display: flex;
824
+ flex-direction: column;
738
825
  }
739
- .loomcycle-explorer .id-copy-value {
740
- font-family: var(--mono);
741
- font-size: var(--lc-text-xs);
742
- color: var(--fg-soft);
743
- background: var(--bg);
744
- border: 1px solid var(--border);
745
- border-radius: 4px;
746
- padding: 1px 6px;
747
- max-width: 22ch;
748
- overflow: hidden;
749
- text-overflow: ellipsis;
750
- white-space: nowrap;
826
+ .loomcycle-explorer .doc-more-rule {
827
+ height: 1px;
828
+ margin: 4px 2px;
829
+ background: var(--border);
751
830
  }
752
- .loomcycle-explorer .id-copy-btn {
753
- background: transparent;
831
+ .loomcycle-explorer .doc-header-actions .doc-more-list button {
832
+ height: auto;
833
+ padding: 5px 10px;
754
834
  border: none;
755
- color: var(--fg-soft);
756
- cursor: pointer;
757
- font-size: 12px;
758
- line-height: 1;
759
- padding: 2px 3px;
760
835
  border-radius: 4px;
761
- user-select: none;
762
- }
763
- .loomcycle-explorer .id-copy-btn:hover {
764
- color: var(--accent);
836
+ color: var(--fg);
837
+ text-align: left;
838
+ white-space: nowrap;
765
839
  }
766
- .loomcycle-explorer .id-copy-btn.id-copy-copied {
840
+ .loomcycle-explorer .doc-header-actions .doc-more-list button:hover,
841
+ .loomcycle-explorer .doc-header-actions .doc-more-list button:focus {
842
+ background: var(--bg-soft);
767
843
  color: var(--accent);
844
+ outline: none;
768
845
  }
769
- .loomcycle-explorer .id-copy-btn.id-copy-error {
770
- color: var(--failed);
771
- }
772
- /* On a chunk-tree row the copy sits at the far right and stays faint until the
773
- row is hovered/selected, so the tree keeps its clean scan-line. */
774
- .loomcycle-explorer .node .row .id-copy-btn {
775
- margin-left: auto;
776
- opacity: 0.4;
777
- }
778
- .loomcycle-explorer .node .row:hover .id-copy-btn,
779
- .loomcycle-explorer .node.selected .row .id-copy-btn,
780
- .loomcycle-explorer .node .row .id-copy-btn:focus-visible {
781
- opacity: 1;
846
+ .loomcycle-explorer .doc-header-actions .doc-more-list button.danger {
847
+ color: var(--danger);
782
848
  }
783
- .loomcycle-explorer .doc-mode-toggle {
784
- display: inline-flex;
785
- border: 1px solid var(--border);
786
- border-radius: 4px;
787
- overflow: hidden;
849
+ .loomcycle-explorer .doc-header-actions .doc-more-list button[aria-disabled="true"] {
850
+ opacity: 0.45;
851
+ cursor: default;
788
852
  }
789
- .loomcycle-explorer .doc-mode-toggle button {
790
- padding: 4px 10px;
791
- border: none;
792
- background: var(--bg);
853
+
854
+ .loomcycle-explorer .doc-panel-heading {
855
+ margin: 4px 0;
856
+ font-size: var(--ex-text-meta);
857
+ font-weight: 600;
793
858
  color: var(--fg-soft);
794
- cursor: pointer;
795
859
  }
796
- .loomcycle-explorer .doc-mode-toggle button.active {
797
- background: var(--accent);
798
- color: white;
860
+ .loomcycle-explorer .doc-links-pane {
861
+ display: flex;
862
+ flex-direction: column;
863
+ gap: 8px;
799
864
  }
800
- /* The tree | chunk split is a Splitter (grid columns + a draggable handle that
801
- draws the border). The single row is bounded so each pane scrolls on its own. */
865
+
866
+ /* The outline | page split is a Splitter (grid columns + a draggable handle
867
+ that draws the border). The single row is bounded so each pane scrolls on
868
+ its own. */
802
869
  .loomcycle-explorer .doc-split {
803
870
  flex: 1;
804
871
  min-height: 0;
@@ -807,151 +874,177 @@
807
874
  .loomcycle-explorer .doc-chunktree {
808
875
  flex: 1;
809
876
  overflow: auto;
810
- padding: 8px;
877
+ padding: 2px 4px 8px;
811
878
  min-height: 0;
812
879
  }
813
- .loomcycle-explorer .doc-content {
814
- flex: 1;
815
- display: flex;
816
- flex-direction: column;
880
+
881
+ /* The page: the whole document in one scroll, set for reading — 15px on a 24px
882
+ line, about 70 characters a line. The space below the last chunk lets it
883
+ scroll to the top, so the outline can follow it there. */
884
+ .loomcycle-explorer .doc-page {
885
+ height: 100%;
817
886
  min-height: 0;
887
+ overflow: auto;
888
+ overflow-anchor: none;
889
+ padding: 16px 24px 40vh;
890
+ outline: none;
818
891
  }
819
- .loomcycle-explorer .doc-content-head {
820
- padding: 10px 14px;
821
- border-bottom: 1px solid var(--border);
822
- }
823
- .loomcycle-explorer .doc-content-head h3 {
824
- margin: 0 0 6px;
825
- font-size: var(--lc-text-base);
892
+ .loomcycle-explorer .doc-article {
893
+ max-width: 70ch;
894
+ margin: 0 auto;
895
+ font-size: var(--ex-text-body);
896
+ line-height: 24px;
826
897
  }
827
- .loomcycle-explorer .doc-content-meta {
828
- display: flex;
829
- gap: 6px;
830
- align-items: center;
831
- margin-bottom: 6px;
898
+ .loomcycle-explorer .doc-chunk {
899
+ position: relative;
900
+ padding: 2px 0;
832
901
  }
833
- .loomcycle-explorer .chunk-rev {
834
- font-size: var(--lc-text-xs);
835
- color: var(--fg-soft);
902
+ /* The chunk the reader is on: a rule in the margin, as the outline's row. */
903
+ .loomcycle-explorer .doc-chunk.current::before {
904
+ content: "";
905
+ position: absolute;
906
+ left: -14px;
907
+ top: 6px;
908
+ bottom: 6px;
909
+ width: 2px;
910
+ border-radius: 1px;
911
+ background: var(--accent);
912
+ opacity: 0.6;
836
913
  }
837
- .loomcycle-explorer .doc-content-controls {
838
- display: flex;
839
- flex-wrap: wrap; /* a narrow pane (the splitter allows one) wraps, never clips */
840
- align-items: center;
841
- gap: 6px 12px;
914
+ .loomcycle-explorer .doc-chunk-title {
915
+ margin: 28px 0 8px;
916
+ line-height: 1.3;
917
+ font-weight: 600;
842
918
  }
843
- /* Direct-child only, so the nested .doc-mode-toggle keeps its segmented look. */
844
- .loomcycle-explorer .doc-content-controls > button {
845
- padding: 4px 12px;
846
- border: 1px solid var(--border);
847
- background: var(--bg);
848
- color: var(--fg);
849
- border-radius: 4px;
850
- cursor: pointer;
919
+ .loomcycle-explorer h2.doc-chunk-title {
920
+ font-size: var(--ex-text-h2);
851
921
  }
852
- /* RFC BP — up/down reorder + delete controls. */
853
- .loomcycle-explorer .doc-content-controls > button:disabled {
854
- opacity: 0.4;
855
- cursor: default;
922
+ .loomcycle-explorer h3.doc-chunk-title {
923
+ font-size: var(--ex-text-h3);
856
924
  }
857
- .loomcycle-explorer .doc-content-controls > button.danger {
858
- color: var(--danger);
859
- border-color: var(--danger);
925
+ .loomcycle-explorer h4.doc-chunk-title,
926
+ .loomcycle-explorer h5.doc-chunk-title,
927
+ .loomcycle-explorer h6.doc-chunk-title {
928
+ font-size: var(--ex-text-body);
860
929
  }
861
- /* Edit is the main action on a chunk, so it is filled orange to stand out from
862
- the outlined controls. One soft light orange in both themes (the light
863
- theme's --running is a dim amber that reads as brown on a filled button). */
864
- .loomcycle-explorer .doc-content-controls > button.chunk-edit {
865
- background: #f8c58c;
866
- border-color: #eeac62;
867
- color: #3d2408;
868
- font-weight: 600;
930
+ .loomcycle-explorer .doc-chunk-loading {
931
+ color: var(--fg-muted);
932
+ font-size: var(--ex-text-meta);
933
+ margin: 4px 0;
869
934
  }
870
- .loomcycle-explorer .doc-content-controls > button.chunk-edit:hover {
871
- filter: brightness(1.08);
935
+ .loomcycle-explorer .doc-chunk-source {
936
+ font-size: var(--ex-text-ui);
937
+ line-height: 20px;
938
+ white-space: pre-wrap;
872
939
  }
873
- /* The chunks above the selected one: an Up button to the parent, then a crumb
874
- per level back to the root. Reuses the document trail's crumb styles. */
875
- .loomcycle-explorer .chunk-ancestry {
940
+
941
+ /* A chunk's action bar, at its top right: shown on hover, or while anything in
942
+ the chunk has the keyboard focus (so tabbing into it shows it). */
943
+ .loomcycle-explorer .doc-chunk-bar {
944
+ position: absolute;
945
+ top: 0;
946
+ right: -8px;
947
+ z-index: 2;
876
948
  display: flex;
877
- align-items: flex-start;
878
- gap: 10px;
879
- margin-bottom: 6px;
880
- font-size: var(--lc-text-sm);
881
- min-width: 0;
882
- }
883
- .loomcycle-explorer .chunk-ancestry-up {
884
- flex: none;
885
- background: var(--bg);
886
- color: var(--fg);
949
+ align-items: center;
950
+ gap: 2px;
951
+ height: 28px;
952
+ padding: 0 4px 0 8px;
887
953
  border: 1px solid var(--border);
888
- border-radius: 4px;
889
- padding: 2px 8px;
890
- cursor: pointer;
891
- }
892
- /* A deep chunk in a narrow pane wraps its crumbs onto more lines rather than
893
- cutting every title to a few letters (each crumb still caps at 28ch). */
894
- .loomcycle-explorer .chunk-ancestry .doc-trail-list {
895
- flex-wrap: wrap;
896
- row-gap: 2px;
897
- }
898
- .loomcycle-explorer .chunk-ancestry-up:hover {
899
- border-color: var(--accent);
954
+ border-radius: 6px;
955
+ background: var(--bg);
956
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
957
+ font-size: var(--ex-text-meta);
958
+ line-height: 1;
959
+ white-space: nowrap;
960
+ opacity: 0;
961
+ pointer-events: none;
962
+ transition: opacity 80ms ease;
900
963
  }
901
- .loomcycle-explorer .chunk-ancestry button:focus-visible {
902
- outline: 2px solid var(--accent);
903
- outline-offset: 2px;
904
- border-radius: 2px;
964
+ .loomcycle-explorer .doc-chunk:hover > .doc-chunk-bar,
965
+ .loomcycle-explorer .doc-chunk:focus-within > .doc-chunk-bar {
966
+ opacity: 1;
967
+ pointer-events: auto;
905
968
  }
906
- /* The selected-chunk view (chunk body OR assembled markdown) scrolls
907
- independently of the fixed head — both modes can be long. */
908
- .loomcycle-explorer .doc-content-body {
909
- flex: 1;
910
- overflow: auto;
911
- min-height: 0;
912
- padding: 14px;
969
+ .loomcycle-explorer .doc-chunk-bar .etree-marks {
970
+ margin-left: 0;
913
971
  }
914
- .loomcycle-explorer .doc-empty-body {
972
+ .loomcycle-explorer .doc-chunk-rev {
915
973
  color: var(--fg-soft);
916
- font-style: italic;
974
+ margin: 0 4px;
917
975
  }
918
- .loomcycle-explorer .chunk-link {
976
+ .loomcycle-explorer .doc-chunk-bar .chunk-tag {
977
+ font-size: var(--ex-text-meta);
978
+ }
979
+ .loomcycle-explorer .doc-chunk-bar button {
919
980
  display: inline-flex;
920
981
  align-items: center;
921
- gap: 8px;
982
+ justify-content: center;
983
+ height: 22px;
984
+ border: 1px solid transparent;
985
+ border-radius: 4px;
922
986
  background: transparent;
923
- border: none;
924
- color: var(--fg);
987
+ color: var(--fg-soft);
925
988
  cursor: pointer;
989
+ }
990
+ .loomcycle-explorer .doc-chunk-bar button.doc-chunk-icon {
991
+ width: 24px;
926
992
  padding: 0;
927
- font: inherit;
928
- text-align: left;
929
- min-width: 0;
930
993
  }
931
- .loomcycle-explorer .chunk-link:hover .chunk-title {
994
+ .loomcycle-explorer .doc-chunk-bar button:hover:not(:disabled) {
995
+ background: var(--bg-soft);
996
+ color: var(--fg);
997
+ }
998
+ .loomcycle-explorer .doc-chunk-bar button[aria-pressed="true"] {
932
999
  color: var(--accent);
933
1000
  }
934
- .loomcycle-explorer .chunk-title {
935
- overflow: hidden;
936
- text-overflow: ellipsis;
937
- white-space: nowrap;
1001
+ .loomcycle-explorer .doc-chunk-bar button:disabled {
1002
+ opacity: 0.4;
1003
+ cursor: default;
938
1004
  }
939
- .loomcycle-explorer .chunk-badge {
940
- font-size: var(--lc-text-xs);
941
- padding: 1px 6px;
942
- border-radius: 999px;
943
- background: var(--bg);
944
- border: 1px solid var(--border);
945
- color: var(--fg-soft);
1005
+ .loomcycle-explorer .doc-chunk-bar button:focus-visible {
1006
+ outline: 2px solid var(--accent);
1007
+ outline-offset: 1px;
946
1008
  }
947
- .loomcycle-explorer .chunk-badge.chunk-status {
948
- border-style: dashed;
1009
+
1010
+ /* The page's Markdown on the reading scale: the body's size and line, then
1011
+ two heading sizes and code a step down. */
1012
+ .loomcycle-explorer .doc-article .md {
1013
+ font-size: inherit;
1014
+ line-height: inherit;
1015
+ }
1016
+ .loomcycle-explorer .doc-article .md h1,
1017
+ .loomcycle-explorer .doc-article .md h2 {
1018
+ font-size: var(--ex-text-h2);
1019
+ }
1020
+ .loomcycle-explorer .doc-article .md h3 {
1021
+ font-size: var(--ex-text-h3);
1022
+ }
1023
+ .loomcycle-explorer .doc-article .md h4,
1024
+ .loomcycle-explorer .doc-article .md h5,
1025
+ .loomcycle-explorer .doc-article .md h6 {
1026
+ font-size: var(--ex-text-body);
1027
+ }
1028
+ .loomcycle-explorer .doc-article .md code,
1029
+ .loomcycle-explorer .doc-article .md table {
1030
+ font-size: var(--ex-text-ui);
1031
+ }
1032
+ .loomcycle-explorer .doc-article .md-pre {
1033
+ line-height: 20px;
1034
+ /* Code keeps its lines (a diagram drawn in text); a long one scrolls. */
1035
+ white-space: pre;
949
1036
  }
950
1037
 
951
- /* Chunk editor modal extras. */
1038
+ /* Chunk editor: the dialog takes the window; the body editor takes what is
1039
+ left of it, the fields editor a fixed share. */
952
1040
  .loomcycle-explorer .modal.chunk-editor {
953
- max-width: 720px;
954
- width: 92vw;
1041
+ max-width: 960px;
1042
+ width: 94vw;
1043
+ height: 90vh;
1044
+ max-height: 90vh;
1045
+ display: flex;
1046
+ flex-direction: column;
1047
+ overflow: hidden;
955
1048
  }
956
1049
  .loomcycle-explorer .chunk-editor-row {
957
1050
  display: flex;
@@ -959,9 +1052,47 @@
959
1052
  }
960
1053
  .loomcycle-explorer .chunk-editor-row .path-field {
961
1054
  flex: 1;
1055
+ min-width: 0;
962
1056
  }
963
- .loomcycle-explorer .chunk-body-input {
964
- font-family: var(--lc-font-mono);
1057
+ .loomcycle-explorer .chunk-editor-main {
1058
+ flex: 1;
1059
+ min-height: 0;
1060
+ display: flex;
1061
+ gap: 12px;
1062
+ }
1063
+ .loomcycle-explorer .chunk-editor-body,
1064
+ .loomcycle-explorer .chunk-editor-preview {
1065
+ flex: 1;
1066
+ min-width: 0;
1067
+ min-height: 0;
1068
+ margin-bottom: 12px;
1069
+ }
1070
+ .loomcycle-explorer .chunk-editor-preview .chunk-mermaid-preview {
1071
+ flex: 1;
1072
+ min-height: 0;
1073
+ overflow: auto;
1074
+ }
1075
+ .loomcycle-explorer .chunk-editor-body > .loomcycle-code-editor {
1076
+ flex: 1;
1077
+ min-height: 160px;
1078
+ }
1079
+ .loomcycle-explorer .chunk-editor-fields {
1080
+ flex: 0 0 auto;
1081
+ margin-bottom: 0;
1082
+ }
1083
+ .loomcycle-explorer .chunk-editor-fields > .loomcycle-code-editor {
1084
+ height: 110px;
1085
+ }
1086
+ .loomcycle-explorer .chunk-fields-error {
1087
+ color: var(--danger);
1088
+ font-size: var(--ex-text-meta);
1089
+ }
1090
+ .loomcycle-explorer .chunk-editor .loomcycle-code-editor {
1091
+ --lc-ce-font-size: var(--ex-text-ui);
1092
+ }
1093
+ .loomcycle-explorer .doc-empty-body {
1094
+ color: var(--fg-soft);
1095
+ font-style: italic;
965
1096
  }
966
1097
 
967
1098
  /* Minimal Markdown renderer output. */
@@ -1185,11 +1316,6 @@
1185
1316
  /* ============================================================
1186
1317
  RFC BN P4 — cross-reference links + relationship graph
1187
1318
  ============================================================ */
1188
- .loomcycle-explorer .chunk-link-badge {
1189
- font-size: 0.85em;
1190
- line-height: 1;
1191
- opacity: 0.85;
1192
- }
1193
1319
  .loomcycle-explorer .doc-refs {
1194
1320
  margin-top: 14px;
1195
1321
  padding-top: 12px;
@@ -1779,11 +1905,6 @@
1779
1905
  /* ============================================================
1780
1906
  RFC BO — image & diagram chunks
1781
1907
  ============================================================ */
1782
- .loomcycle-explorer .chunk-type-icon {
1783
- font-size: 0.9em;
1784
- line-height: 1;
1785
- margin-right: 2px;
1786
- }
1787
1908
  .loomcycle-explorer .doc-image {
1788
1909
  margin: 0;
1789
1910
  text-align: center;
@@ -2012,18 +2133,502 @@
2012
2133
  color: var(--failed);
2013
2134
  font-size: var(--lc-text-xs);
2014
2135
  }
2015
- /* A Path row with a brief wraps it onto a second line inside the row box,
2016
- indented past the caret. */
2017
- .loomcycle-explorer .path-row:has(.path-brief) {
2136
+
2137
+ /* ============================================================
2138
+ RFC GZ phase 3 — collapsible panes, the side panels and their rail, the
2139
+ annotation card, the breadcrumb, and the Path tree's search and filter.
2140
+ Kept in step with the other sheet (web/src/styles.css and the package's
2141
+ scoped styles.css).
2142
+ ============================================================ */
2143
+ /* A hidden pane leaves the grid (the Splitter keeps it mounted), so a
2144
+ collapsed pane's rail takes its column. */
2145
+ .loomcycle-explorer .splitter > .splitter-pane[hidden],
2146
+ .loomcycle-explorer .splitter > .splitter-handle[hidden] {
2147
+ display: none;
2148
+ }
2149
+ .loomcycle-explorer .paths-console {
2150
+ flex: 1;
2151
+ display: flex;
2152
+ flex-direction: column;
2153
+ min-width: 0;
2154
+ min-height: 0;
2155
+ height: 100%;
2156
+ }
2157
+ /* A collapsed pane: one button with the pane's icon and its count. */
2158
+ .loomcycle-explorer .pane-rail {
2159
+ display: flex;
2160
+ flex-direction: column;
2161
+ align-items: center;
2162
+ width: 32px;
2163
+ padding: 6px 0;
2164
+ min-height: 0;
2165
+ }
2166
+ .loomcycle-explorer .paths-view > .pane-rail {
2167
+ border: 1px solid var(--border);
2168
+ border-radius: 6px;
2169
+ background: var(--bg-soft);
2170
+ margin-right: 6px;
2171
+ }
2172
+ .loomcycle-explorer .doc-split > .pane-rail {
2173
+ border-right: 1px solid var(--border);
2174
+ }
2175
+ .loomcycle-explorer .pane-rail-button,
2176
+ .loomcycle-explorer .doc-rail-button {
2177
+ position: relative;
2178
+ display: flex;
2179
+ flex-direction: column;
2180
+ align-items: center;
2181
+ gap: 2px;
2182
+ width: 28px;
2183
+ padding: 6px 0;
2184
+ border: none;
2185
+ border-radius: 4px;
2186
+ background: transparent;
2187
+ color: var(--fg-soft);
2188
+ cursor: pointer;
2189
+ }
2190
+ .loomcycle-explorer .pane-rail-button:hover,
2191
+ .loomcycle-explorer .doc-rail-button:hover {
2192
+ color: var(--fg);
2193
+ background: color-mix(in srgb, var(--fg) 7%, transparent);
2194
+ }
2195
+ .loomcycle-explorer .pane-rail-count,
2196
+ .loomcycle-explorer .doc-rail-count {
2197
+ font-size: var(--ex-text-meta);
2198
+ line-height: 1;
2199
+ }
2200
+ /* A pane's head: its name, its count, and the control that folds it. */
2201
+ .loomcycle-explorer .pane-head {
2202
+ display: flex;
2203
+ align-items: center;
2204
+ gap: 6px;
2205
+ height: 28px;
2206
+ flex: none;
2207
+ padding: 0 2px 0 8px;
2208
+ color: var(--fg-soft);
2209
+ font-size: var(--ex-text-meta);
2210
+ font-weight: 600;
2211
+ }
2212
+ .loomcycle-explorer .pane-head-label {
2213
+ min-width: 0;
2214
+ overflow: hidden;
2215
+ text-overflow: ellipsis;
2216
+ white-space: nowrap;
2217
+ text-transform: capitalize;
2218
+ }
2219
+ .loomcycle-explorer .pane-head-count {
2220
+ font-weight: 400;
2221
+ }
2222
+ .loomcycle-explorer .pane-head .pane-collapse {
2223
+ margin-left: auto;
2224
+ }
2225
+ .loomcycle-explorer .pane-collapse,
2226
+ .loomcycle-explorer .paths-find-close {
2227
+ display: inline-flex;
2228
+ align-items: center;
2229
+ justify-content: center;
2230
+ width: 24px;
2231
+ height: 24px;
2232
+ padding: 0;
2233
+ border: none;
2234
+ border-radius: 4px;
2235
+ background: transparent;
2236
+ color: var(--fg-soft);
2237
+ cursor: pointer;
2238
+ }
2239
+ .loomcycle-explorer .pane-collapse:hover,
2240
+ .loomcycle-explorer .paths-find-close:hover {
2241
+ color: var(--fg);
2242
+ background: color-mix(in srgb, var(--fg) 7%, transparent);
2243
+ }
2244
+ .loomcycle-explorer .paths-toolbar-actions button.pane-collapse,
2245
+ .loomcycle-explorer .paths-toolbar-actions button.paths-find-toggle {
2246
+ display: inline-flex;
2247
+ align-items: center;
2248
+ justify-content: center;
2249
+ width: 28px;
2250
+ padding: 0;
2251
+ }
2252
+ .loomcycle-explorer .paths-toolbar-actions button.pane-collapse {
2253
+ border-color: transparent;
2254
+ background: transparent;
2255
+ }
2256
+ .loomcycle-explorer .paths-toolbar-actions button.paths-find-toggle[aria-pressed="true"] {
2257
+ border-color: var(--accent);
2258
+ }
2259
+ .loomcycle-explorer .pane-rail-button:focus-visible,
2260
+ .loomcycle-explorer .doc-rail-button:focus-visible,
2261
+ .loomcycle-explorer .pane-collapse:focus-visible,
2262
+ .loomcycle-explorer .paths-find-close:focus-visible,
2263
+ .loomcycle-explorer .doc-crumbs-folder:focus-visible,
2264
+ .loomcycle-explorer .doc-crumbs-current:focus-visible,
2265
+ .loomcycle-explorer .doc-ref-target:focus-visible {
2266
+ outline: 2px solid var(--accent);
2267
+ outline-offset: 1px;
2268
+ }
2269
+ .loomcycle-explorer .paths-view .left > .paths-tree-box {
2270
+ flex: 1;
2271
+ overflow: auto;
2272
+ min-height: 0;
2273
+ padding: 8px 10px;
2274
+ }
2275
+
2276
+ /* The Path tree's search and filter line, under the header. */
2277
+ .loomcycle-explorer .paths-find {
2278
+ display: flex;
2018
2279
  flex-wrap: wrap;
2019
- row-gap: 2px;
2280
+ align-items: center;
2281
+ gap: 6px;
2282
+ padding: 6px 10px;
2283
+ border-bottom: 1px solid var(--border);
2020
2284
  }
2021
- .loomcycle-explorer .path-brief {
2022
- flex-basis: 100%;
2023
- padding-left: 22px;
2285
+ .loomcycle-explorer .paths-find-mode {
2286
+ display: inline-flex;
2287
+ border: 1px solid var(--border);
2288
+ border-radius: 4px;
2289
+ overflow: hidden;
2290
+ }
2291
+ .loomcycle-explorer .paths-find-mode button {
2292
+ padding: 2px 8px;
2293
+ border: none;
2294
+ background: var(--bg);
2295
+ color: var(--fg-soft);
2296
+ cursor: pointer;
2297
+ }
2298
+ .loomcycle-explorer .paths-find-mode button + button {
2299
+ border-left: 1px solid var(--border);
2300
+ }
2301
+ .loomcycle-explorer .paths-find-mode button.active {
2302
+ background: var(--bg-soft);
2303
+ color: var(--fg);
2304
+ box-shadow: inset 0 -2px 0 var(--accent);
2305
+ }
2306
+ .loomcycle-explorer .paths-find .paths-find-input {
2307
+ flex: 1 1 120px;
2308
+ min-width: 0;
2309
+ height: 26px;
2310
+ padding: 2px 8px;
2311
+ }
2312
+ /* The filter's type and status: free text with suggestions, narrower than
2313
+ the name, the placeholder ("any type") reading as the unset value. */
2314
+ .loomcycle-explorer .paths-find .paths-find-field {
2315
+ flex: 0 1 112px;
2316
+ min-width: 72px;
2317
+ max-width: 140px;
2318
+ height: 26px;
2319
+ padding: 2px 8px;
2320
+ }
2321
+ .loomcycle-explorer .paths-find .paths-find-field::placeholder {
2322
+ color: var(--fg-soft);
2323
+ }
2324
+ .loomcycle-explorer .paths-find-note {
2325
+ order: 10;
2326
+ flex: 1 0 100%;
2327
+ color: var(--fg-soft);
2328
+ font-size: var(--ex-text-meta);
2329
+ }
2330
+ .loomcycle-explorer .paths-find-count {
2331
+ color: var(--fg);
2332
+ margin-right: 8px;
2333
+ }
2334
+ .loomcycle-explorer .etree-row.search-hit {
2335
+ box-shadow: inset 2px 0 0 var(--running);
2336
+ }
2337
+ .loomcycle-explorer .etree-row.search-current {
2338
+ outline: 1px solid var(--running);
2339
+ outline-offset: -1px;
2340
+ }
2341
+ /* The runtime's filter (RFC HA): a document that matched itself carries the
2342
+ search's edge mark, so "marked" reads the same in both modes; a document
2343
+ kept only for the names below it steps back. Folders never match
2344
+ themselves and stay as they are — their count is of matches. */
2345
+ .loomcycle-explorer .etree-row.filter-match {
2346
+ box-shadow: inset 2px 0 0 var(--running);
2347
+ }
2348
+ .loomcycle-explorer .etree-row.filter-kept .etree-name,
2349
+ .loomcycle-explorer .etree-row.filter-kept .etree-icon {
2350
+ color: var(--fg-soft);
2351
+ }
2352
+ .loomcycle-explorer .etree-row.filter-kept .etree-name {
2353
+ font-style: italic;
2354
+ }
2355
+ /* A folder's document count (RFC HA): empty until the runtime sends one.
2356
+ Figures are tabular so counts line up down the tree; a capped count
2357
+ ("10k+") is a floor, set a touch lighter. */
2358
+ .loomcycle-explorer .etree-count {
2359
+ margin-left: 6px;
2360
+ color: var(--fg-soft);
2361
+ font-size: var(--ex-text-meta);
2362
+ font-weight: 400;
2363
+ font-variant-numeric: tabular-nums;
2364
+ white-space: nowrap;
2365
+ }
2366
+ .loomcycle-explorer .etree-count.capped {
2367
+ letter-spacing: 0.01em;
2368
+ opacity: 0.85;
2369
+ }
2370
+ .loomcycle-explorer .etree-count:empty {
2371
+ display: none;
2372
+ }
2373
+
2374
+ /* The folder's detail pane: its card, in place. */
2375
+ .loomcycle-explorer .paths-detail-card {
2376
+ margin: 0 0 14px;
2377
+ padding: 10px 12px;
2378
+ border: 1px solid var(--border);
2379
+ border-radius: 6px;
2380
+ background: var(--bg);
2381
+ max-width: 70ch;
2382
+ }
2383
+
2384
+ /* The document body: the outline | page split, the open side panel, and the
2385
+ rail of panel icons at the right edge. */
2386
+ .loomcycle-explorer .doc-body {
2387
+ position: relative;
2388
+ flex: 1;
2389
+ display: flex;
2390
+ min-height: 0;
2391
+ min-width: 0;
2392
+ }
2393
+ .loomcycle-explorer .doc-body > .doc-split {
2394
+ flex: 1 1 auto;
2395
+ min-width: 0;
2396
+ height: auto;
2397
+ }
2398
+ .loomcycle-explorer .doc-side {
2399
+ flex: 0 0 360px;
2400
+ max-width: 45%;
2401
+ display: flex;
2402
+ flex-direction: column;
2403
+ min-height: 0;
2404
+ border-left: 1px solid var(--border);
2405
+ background: var(--bg-soft);
2406
+ }
2407
+ .loomcycle-explorer .doc-side-body {
2408
+ flex: 1;
2409
+ min-height: 0;
2410
+ overflow: auto;
2411
+ padding: 0 12px 12px;
2412
+ }
2413
+ .loomcycle-explorer .doc-rail {
2414
+ flex: 0 0 36px;
2415
+ display: flex;
2416
+ flex-direction: column;
2417
+ align-items: center;
2418
+ gap: 4px;
2419
+ padding: 6px 0;
2420
+ border-left: 1px solid var(--border);
2421
+ }
2422
+ .loomcycle-explorer .doc-rail-button {
2423
+ border: 1px solid transparent;
2424
+ }
2425
+ .loomcycle-explorer .doc-rail-button[aria-pressed="true"] {
2426
+ color: var(--fg);
2427
+ background: color-mix(in srgb, var(--accent) 18%, transparent);
2428
+ border-color: color-mix(in srgb, var(--accent) 40%, transparent);
2429
+ }
2430
+ .loomcycle-explorer .doc-rail-dot {
2431
+ position: absolute;
2432
+ top: 4px;
2433
+ right: 4px;
2434
+ width: 6px;
2435
+ height: 6px;
2436
+ border-radius: 50%;
2437
+ background: var(--running);
2438
+ }
2439
+ .loomcycle-explorer .doc-chunktree > .pane-head {
2440
+ margin: 0 0 4px;
2441
+ }
2442
+ /* Connections and the relationship graph are sections of the references
2443
+ panel: each opens from a heading-like toggle, not a browser button. */
2444
+ .loomcycle-explorer .doc-graph-toggle,
2445
+ .loomcycle-explorer .doc-conn-toggle {
2446
+ display: flex;
2447
+ align-items: center;
2448
+ gap: 6px;
2449
+ width: 100%;
2450
+ padding: 4px 0;
2451
+ border: none;
2452
+ background: none;
2453
+ color: var(--fg-soft);
2454
+ font: inherit;
2455
+ font-size: var(--ex-text-meta);
2456
+ font-weight: 600;
2457
+ text-align: left;
2458
+ cursor: pointer;
2459
+ }
2460
+ .loomcycle-explorer .doc-graph-toggle:hover,
2461
+ .loomcycle-explorer .doc-conn-toggle:hover {
2462
+ color: var(--accent);
2463
+ }
2464
+ .loomcycle-explorer .doc-graph-toggle:focus-visible,
2465
+ .loomcycle-explorer .doc-conn-toggle:focus-visible {
2466
+ outline: 2px solid var(--accent);
2467
+ outline-offset: 1px;
2468
+ }
2469
+
2470
+ /* The breadcrumb: where the document is filed, each folder a button. */
2471
+ .loomcycle-explorer .doc-crumbs {
2472
+ min-width: 0;
2473
+ }
2474
+ .loomcycle-explorer .doc-crumbs-list {
2475
+ display: flex;
2476
+ align-items: center;
2477
+ min-width: 0;
2478
+ margin: 0;
2479
+ padding: 0;
2480
+ list-style: none;
2481
+ overflow: hidden;
2482
+ }
2483
+ .loomcycle-explorer .doc-crumbs-item {
2484
+ display: flex;
2485
+ align-items: center;
2486
+ min-width: 0;
2487
+ flex: 0 1 auto;
2488
+ }
2489
+ .loomcycle-explorer .doc-crumbs-item:last-child {
2490
+ flex-shrink: 0;
2491
+ max-width: 60%;
2492
+ }
2493
+ .loomcycle-explorer .doc-crumbs-item + .doc-crumbs-item::before {
2494
+ content: "/";
2495
+ margin: 0 3px;
2024
2496
  color: var(--fg-muted);
2025
- font-size: var(--lc-text-xs);
2497
+ }
2498
+ .loomcycle-explorer .doc-crumbs-folder,
2499
+ .loomcycle-explorer .doc-crumbs-current {
2500
+ min-width: 0;
2026
2501
  overflow: hidden;
2027
2502
  text-overflow: ellipsis;
2028
2503
  white-space: nowrap;
2504
+ border-radius: 3px;
2505
+ }
2506
+ .loomcycle-explorer .doc-crumbs-folder {
2507
+ padding: 0 2px;
2508
+ border: none;
2509
+ background: none;
2510
+ color: var(--fg-soft);
2511
+ font: inherit;
2512
+ cursor: pointer;
2513
+ }
2514
+ .loomcycle-explorer .doc-crumbs-folder:hover {
2515
+ color: var(--accent);
2516
+ text-decoration: underline;
2517
+ }
2518
+ .loomcycle-explorer .doc-crumbs-current {
2519
+ color: var(--fg);
2520
+ }
2521
+
2522
+ /* The annotation card. Fixed, so a scrolling pane never clips it; placed by
2523
+ the component under (or over) what it describes. */
2524
+ .loomcycle-explorer .ex-card {
2525
+ position: fixed;
2526
+ top: 0;
2527
+ left: 0;
2528
+ z-index: 200;
2529
+ min-width: 180px;
2530
+ max-width: min(320px, calc(100vw - 16px));
2531
+ padding: 8px 10px;
2532
+ border: 1px solid var(--border);
2533
+ border-radius: 6px;
2534
+ background: var(--bg);
2535
+ color: var(--fg);
2536
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
2537
+ font-size: var(--ex-text-ui);
2538
+ line-height: 1.45;
2539
+ pointer-events: none;
2540
+ animation: ex-card-in 100ms ease-out;
2541
+ }
2542
+ @keyframes ex-card-in {
2543
+ from {
2544
+ opacity: 0;
2545
+ }
2546
+ to {
2547
+ opacity: 1;
2548
+ }
2549
+ }
2550
+ .loomcycle-explorer .ex-card-title {
2551
+ font-weight: 600;
2552
+ overflow-wrap: anywhere;
2553
+ }
2554
+ .loomcycle-explorer .ex-card-meta,
2555
+ .loomcycle-explorer .ex-card-path,
2556
+ .loomcycle-explorer .ex-card-loading {
2557
+ color: var(--fg-soft);
2558
+ font-size: var(--ex-text-meta);
2559
+ }
2560
+ .loomcycle-explorer .ex-card-path {
2561
+ overflow-wrap: anywhere;
2562
+ }
2563
+ .loomcycle-explorer .ex-card-stale {
2564
+ color: var(--running);
2565
+ }
2566
+ .loomcycle-explorer .ex-card-brief,
2567
+ .loomcycle-explorer .ex-card-abstract,
2568
+ .loomcycle-explorer .ex-card-loading {
2569
+ margin: 6px 0 0;
2570
+ }
2571
+ .loomcycle-explorer .ex-card-abstract {
2572
+ color: var(--fg-soft);
2573
+ display: -webkit-box;
2574
+ -webkit-line-clamp: 6;
2575
+ -webkit-box-orient: vertical;
2576
+ overflow: hidden;
2577
+ }
2578
+
2579
+ /* Narrow: one pane at a time in the console, the side panel over the body
2580
+ (below 960px of document, panel-over),
2581
+ the header on two lines (where the document is, then what it is). */
2582
+ .loomcycle-explorer .paths-console.narrow .paths-toolbar {
2583
+ flex-wrap: wrap;
2584
+ row-gap: 6px;
2585
+ }
2586
+ .loomcycle-explorer .paths-console.narrow .paths-view > .pane-rail {
2587
+ margin-right: 4px;
2588
+ }
2589
+ .loomcycle-explorer .doc-viewer.panel-over .doc-side {
2590
+ position: absolute;
2591
+ top: 0;
2592
+ bottom: 0;
2593
+ right: 36px;
2594
+ z-index: 20;
2595
+ width: min(360px, calc(100% - 36px));
2596
+ max-width: none;
2597
+ box-shadow: -6px 0 16px rgba(0, 0, 0, 0.2);
2598
+ }
2599
+ .loomcycle-explorer .doc-viewer.narrow .doc-header {
2600
+ flex-wrap: wrap;
2601
+ row-gap: 2px;
2602
+ }
2603
+ .loomcycle-explorer .doc-viewer.narrow .doc-header-path {
2604
+ flex: 1 0 100%;
2605
+ max-width: 100%;
2606
+ }
2607
+ .loomcycle-explorer .doc-viewer.narrow .doc-header-path::after {
2608
+ content: none;
2609
+ }
2610
+ .loomcycle-explorer .doc-viewer.narrow .doc-edit-label {
2611
+ position: absolute;
2612
+ width: 1px;
2613
+ height: 1px;
2614
+ overflow: hidden;
2615
+ clip: rect(0 0 0 0);
2616
+ white-space: nowrap;
2617
+ }
2618
+ .loomcycle-explorer .doc-viewer.narrow .doc-page {
2619
+ padding: 12px 14px 40vh;
2620
+ }
2621
+ .loomcycle-explorer .doc-viewer.narrow .doc-chunk-bar {
2622
+ right: 0;
2623
+ }
2624
+
2625
+ @media (prefers-reduced-motion: reduce) {
2626
+ .loomcycle-explorer .ex-card {
2627
+ animation: none;
2628
+ }
2629
+ .loomcycle-explorer .etree-caret svg,
2630
+ .loomcycle-explorer .doc-chunk-bar,
2631
+ .loomcycle-explorer .splitter > .splitter-handle::before {
2632
+ transition: none;
2633
+ }
2029
2634
  }