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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ef68ae0
56e1f2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7127075
 
 
 
 
 
 
 
 
56e1f2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
/* shell/navExtras.css β€” C-SCHEMA (2026-08-02): nav folders, three-dots, schema drawer.
   New classes only; the shell's own rail classes stay in index.css untouched. */

.shell-nav-row {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  /* wave17 SHELL (item 12) β€” the row is the painted surface now, so it needs
     the shape the `<a>` used to draw. `--lp-r-sm` and not the Views rail's
     `--lp-r-md`: the tint must land exactly where the item's hover pill lands
     today, and every other pill in this rail is 4px. Item 12 asks the highlight
     to reach the β‹―; it does not ask the nav to change shape. */
  border-radius: var(--lp-r-sm);
}

/* The ROW carries hover and current-state, exactly as `.cg-view-row` does in
   the Views rail β€” which is the whole of item 12. Hovering the three-dots now
   lights the row it belongs to instead of leaving the link beside it cold. */
.shell-nav-row:hover {
  background: var(--lp-surface-2);
}

.shell-nav-row.is-active {
  background: var(--lp-blue-tint);
}

.shell-nav-row > .shell-nav-item {
  flex: 1 1 auto;
  min-width: 0;
}

/* ⚠ LOAD-BEARING, not tidiness. `.shell-nav-item:hover` still paints its own
   grey β€” it must, because the AI-assistant row is a bare `.shell-nav-item`
   with no row around it. Left alone inside a row it would paint that grey
   OVER the blue of the current database the moment the pointer crossed the
   label: the link half would go grey while the β‹― half stayed blue. The child
   selector outranks it (0,3,0 over 0,2,0), so this holds no matter which
   stylesheet the bundler emits first β€” the nav has lost a rule to source
   order before ([[loopable-nav-logo-toggle]]) and specificity is the fix that
   does not depend on being lucky. */
.shell-nav-row > .shell-nav-item:hover {
  background: transparent;
}

.shell-nav-row > .shell-dots,
.shell-nav-folder > .shell-dots {
  flex: 0 0 auto;
  width: 24px;
  border: 0;
  padding: 0;
  margin: 2px 2px 2px 0;
  border-radius: 6px;
  background: transparent;
  color: var(--lp-muted);
  cursor: pointer;
  opacity: 0;
  display: grid;
  place-items: center;
}

.shell-nav-row:hover > .shell-dots,
.shell-nav-row:focus-within > .shell-dots,
.shell-nav-folder:hover > .shell-dots,
.shell-nav-folder:focus-within > .shell-dots {
  opacity: 1;
}

.shell-nav-row > .shell-dots:hover,
.shell-nav-folder > .shell-dots:hover {
  background: var(--lp-wash);
  color: var(--lp-ink);
}

.shell-dots-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.shell-nav-row.is-foldered > .shell-nav-item {
  padding-left: 30px;
}

/* ── folder heads ─────────────────────────────────────────────────────────── */

.shell-nav-folder {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.shell-nav-folderbtn {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--lp-ink);
  font: inherit;
  font-size: var(--lp-fs-xs);
  /* Wave 14 R3 β€” the Views-rail folder look: BOLD label, no chevron. */
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.shell-nav-folderbtn:hover {
  background: var(--lp-wash);
}

.shell-nav-foldercount {
  margin-left: auto;
  /* Wave 14 item 7 β€” the count wears the LABEL's size, muted; nothing "all over the
     place with regards to symmetry".
     ⚠ wave17 SHELL (item 11b) SUPERSEDES THE SIZE HALF. Wave 14 matched the count
     to the label so the row would not look ragged; at the label's own size, next
     to a 600-weight name, it stopped reading as an annotation and started reading
     as a second piece of the title. Smaller is what makes it recede.
     The COLOUR TOKEN IS UNCHANGED on purpose: `--lp-muted` already IS the grey,
     and the same owner item asks the Views rail's `cg-fold-count` for the same
     treatment. A lighter grey invented here would need a literal that has nowhere
     legal to live, and would put the two rails' counts a shade apart β€” which is
     the exact symmetry complaint wave 14 was answering. Shrinking the type does
     the lightening. */
  font-size: var(--lp-fs-3xs);
  font-weight: 400;
  color: var(--lp-muted);
  /* Counts line up column-wise as folders open and close, in both rails. */
  font-variant-numeric: tabular-nums;
}

/* ── wave 14 C-NAVFOLD: drag placement (items 4/6) ───────────────────────── */

.shell-nav-row.is-dragging {
  opacity: 0.45;
}

.shell-nav-folder.is-drop {
  background: var(--lp-blue-tint);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px var(--lp-blue-deep);
}

.shell-nav-list.is-drop-root {
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--lp-line);
}

.shell-newfolder {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  margin-top: 2px;
  border-radius: 7px;
  font: inherit;
  font-size: var(--lp-fs-2xs);
  color: var(--lp-muted);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.shell-newfolder:hover {
  background: var(--lp-wash);
  color: var(--lp-ink);
}

/* WAVE 19 R11 β€” the same row in the folded rail: the "+" alone, centred in the
   56px strip, opening the rail rather than a popover it has no room for. */
.shell-newfolder.is-collapsed {
  display: grid;
  place-items: center;
  padding: 6px 0;
}

.shell-newthing-plus {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.shell-newfolder-form {
  padding: 4px 2px 2px;
}

/* ── the fixed popover menu ───────────────────────────────────────────────── */

.shell-navmenu {
  position: fixed;
  z-index: 80;
  min-width: 196px;
  max-width: 240px;
  padding: 5px;
  border: 1px solid var(--lp-line);
  border-radius: 9px;
  background: var(--lp-surface);
  box-shadow: 0 10px 34px rgba(20, 30, 43, 0.16);
  font-size: var(--lp-fs-xs);
}

.shell-navmenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  font: inherit;
  color: var(--lp-ink);
  cursor: pointer;
  text-align: left;
  /* Wave 14 R7 β€” every menu action occupies ONE line, app-wide. */
  white-space: nowrap;
}

.shell-navmenu-item:hover {
  background: var(--lp-wash);
}

.shell-navmenu-item.is-current {
  color: var(--lp-muted);
  cursor: default;
}

.shell-navmenu-item.is-danger {
  color: var(--lp-red-deep);
}

/* A secondary action inside a picker, not a menu row in its own right. */
.shell-navmenu-item.is-quiet {
  margin-top: 2px;
  font-size: var(--lp-fs-3xs);
  color: var(--lp-muted);
}

/* ── WAVE 19 R8 / C1: the database icon picker ─────────────────────────────── */

.shell-navmenu-pick {
  padding: 4px 3px 3px;
}

/* WRAPS on purpose: twelve 26px swatches is ~312px and the menu is capped at
   240 (a popover wider than the rail it hangs off reads as a panel that has
   come loose). Two rows of six is the shape that falls out of the cap, and the
   tone row below it is five β€” so the block reads as "shape, then colour"
   without a heading having to say so. */
.shell-navmenu-pickrow {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.shell-navmenu-pickrow + .shell-navmenu-pickrow {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid color-mix(in srgb, var(--lp-line) 55%, transparent);
}

.shell-navmenu-swatch {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.shell-navmenu-swatch:hover {
  background: var(--lp-wash);
}

/* The current choice is marked by its OUTLINE, never by a fill: the swatch's
   whole job is to show the mark in its real colours, and a tinted plate behind
   a pastel glyph changes the thing it is previewing. */
.shell-navmenu-swatch.is-on {
  border-color: var(--lp-blue-deep);
}

.shell-navmenu-swatch:focus-visible {
  outline: 2px solid var(--lp-blue-deep);
  outline-offset: -2px;
}

.shell-navmenu-tick {
  margin-left: auto;
  font-size: var(--lp-fs-3xs);
  color: var(--lp-muted);
}

.shell-navmenu-kicker {
  padding: 7px 8px 3px;
  font-size: var(--lp-fs-3xs);
  font-weight: 600;
  color: var(--lp-muted);
}

.shell-navmenu-note {
  padding: 4px 8px 6px;
  font-size: var(--lp-fs-3xs);
  color: var(--lp-muted);
}

.shell-navmenu-form {
  display: flex;
  gap: 5px;
  padding: 5px 6px 6px;
}

.shell-navmenu-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--lp-line);
  border-radius: 6px;
  padding: 4px 7px;
  font: inherit;
  font-size: var(--lp-fs-xs);
  background: var(--lp-surface);
  color: var(--lp-ink);
}

.shell-navmenu-input:focus {
  outline: none;
  border-color: var(--lp-blue-deep);
}

.shell-navmenu-go {
  flex: 0 0 auto;
  border: 1px solid var(--lp-line);
  border-radius: 6px;
  background: var(--lp-surface);
  padding: 4px 9px;
  font: inherit;
  font-size: var(--lp-fs-xs);
  color: var(--lp-ink);
  cursor: pointer;
}

.shell-navmenu-go:disabled {
  color: var(--lp-muted);
  cursor: default;
}

/* ── WAVE 21 item 6 (R3 / C3): the delete-database confirm face ─────────────
   Wider than the action menu, and only while it is showing: the panel's job
   changes from "pick one of four one-line verbs" to "read what is about to be
   destroyed", and R7's one-line law is about MENU ROWS, not about prose. The
   width is matched in `MenuShell`'s viewport clamp β€” a wider panel clamped at
   the narrow number spills off the right edge on precisely the rows nearest
   it. */
.shell-navmenu.is-wide {
  max-width: 312px;
}

.shell-navconfirm {
  padding: 3px 2px 2px;
}

.shell-navconfirm-h {
  margin: 0;
  padding: 5px 8px 2px;
  font-size: var(--lp-fs-xs);
  font-weight: 600;
  color: var(--lp-ink);
}

/* The footprint. `disc` rather than the app's usual bare rows because these ARE
   a list of things and reading them as one takes a mark β€” this is the one place
   in the nav chrome where the user is counting. */
.shell-navconfirm-list {
  margin: 0;
  padding: 0 8px 4px 24px;
  font-size: var(--lp-fs-3xs);
  color: var(--lp-ink);
  line-height: 1.55;
}

.shell-navconfirm-err {
  margin: 0;
  padding: 2px 8px 4px;
  font-size: var(--lp-fs-3xs);
  color: var(--lp-red-deep);
}

.shell-navconfirm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px;
}

/* ⚠ THE DESTRUCTIVE BUTTON IS FILLED, and the way back is the quiet one. The
   opposite arrangement (a quiet Delete beside a filled Cancel) is the pattern
   that makes people click twice: the eye lands on the filled control, and if
   that control is the one that does nothing the second click goes to the one
   that does. Weight follows CONSEQUENCE here, not safety β€” the safety is the
   sentence above it. */
.shell-navconfirm-go {
  flex: 0 0 auto;
  border: 1px solid var(--lp-red-deep);
  border-radius: 6px;
  background: var(--lp-red-deep);
  padding: 4px 11px;
  font: inherit;
  font-size: var(--lp-fs-xs);
  color: var(--lp-surface);
  cursor: pointer;
}

.shell-navconfirm-go:disabled {
  border-color: var(--lp-line);
  background: var(--lp-wash);
  color: var(--lp-muted);
  cursor: default;
}

.shell-navconfirm-actions .shell-navmenu-item.is-quiet {
  width: auto;
  margin-top: 0;
}

/* ── the schema drawer ────────────────────────────────────────────────────── */

.shell-schema-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(25, 34, 46, 0.28);
}

.shell-schema {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--lp-surface);
  border-left: 1px solid var(--lp-line);
  box-shadow: -18px 0 48px rgba(20, 30, 43, 0.16);
  animation: shell-schema-in 160ms cubic-bezier(0.2, 0, 0, 1);
}

@keyframes shell-schema-in {
  from {
    transform: translateX(14px);
    opacity: 0;
  }
}

.shell-schema-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--lp-line);
}

.shell-schema-title {
  font-size: var(--lp-fs-md);
  font-weight: 600;
  color: var(--lp-ink);
}

.shell-schema-sub {
  margin-top: 2px;
  font-size: var(--lp-fs-2xs);
  color: var(--lp-muted);
}

.shell-schema-close {
  border: 0;
  background: transparent;
  font-size: var(--lp-fs-md);
  line-height: 1;
  color: var(--lp-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.shell-schema-close:hover {
  background: var(--lp-wash);
  color: var(--lp-ink);
}

.shell-schema-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 18px 22px;
}

.shell-schema-empty {
  padding: 26px 18px;
  color: var(--lp-muted);
  font-size: var(--lp-fs-xs);
}

/* wave17 SHELL (item 3/R6) β€” the same box, carrying the mark instead of a
   sentence. Centred, because a drawer that has not loaded yet has no left edge
   of content for it to hang off. */
.shell-schema-empty.is-spin {
  display: flex;
  justify-content: center;
  padding: 40px 18px;
}

.shell-schema-note {
  padding: 9px 11px;
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  background: var(--lp-wash);
  color: var(--lp-muted);
  font-size: var(--lp-fs-xs);
  margin-bottom: 12px;
}

.shell-schema-kicker {
  margin: 14px 0 7px;
  font-size: var(--lp-fs-2xs);
  font-weight: 600;
  color: var(--lp-muted);
}

.shell-schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--lp-fs-xs);
}

.shell-schema-table th {
  text-align: left;
  font-weight: 600;
  font-size: var(--lp-fs-3xs);
  color: var(--lp-muted);
  padding: 4px 8px 4px 0;
  border-bottom: 1px solid var(--lp-line);
}

.shell-schema-table td {
  vertical-align: top;
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--lp-line) 55%, transparent);
}

.shell-schema-fname {
  color: var(--lp-ink);
}

.shell-schema-fdesc {
  margin-top: 2px;
  font-size: var(--lp-fs-2xs);
  color: var(--lp-muted);
  line-height: 1.4;
}

.shell-schema-type {
  white-space: nowrap;
  color: var(--lp-muted);
  font-size: var(--lp-fs-2xs);
}

.shell-schema-measures {
  display: flex;
  flex-direction: column;
}

.shell-schema-measure {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--lp-line) 55%, transparent);
  font-size: var(--lp-fs-xs);
}