@floless/app 0.140.0 → 0.141.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/web/chat.css CHANGED
@@ -22,11 +22,17 @@
22
22
  /* Row 2 is the ⚙ settings strip. It is minmax(0, auto), not a plain auto, so that in a short
23
23
  panel it gives height back instead of pushing the feed to 0 and the composer out through the
24
24
  host's overflow: hidden edge (#1492). The composer keeps its rigid auto row — it is the one
25
- thing that must never leave the shell. */
26
- grid-template-rows: auto minmax(0, auto) minmax(0, 1fr) auto auto auto 0;
27
- /* Size container so the strip's 50cqh cap below measures the shell's own height. Without it the
28
- cap does not vanish, it silently mis-measures: cqh then falls back to the small viewport, which
29
- is far taller than a short panel and leaves the strip effectively uncapped. Note this also
25
+ thing that must never leave the shell.
26
+ Row 5, the attachments about to be sent, is min-content rather than auto: that row scrolls
27
+ sideways, and a scroll container's automatic minimum height in a grid is 0, so an auto row gave
28
+ its chips up to the 6px padding whenever the shell ran short. The AI Chat floor (#1515), which
29
+ keeps every row that does not shrink in view, would then have measured and kept that. A
30
+ min-height: min-content on the row itself does not do it — Chromium still sized the track from
31
+ the padding alone; the track's own min-content sizing does. */
32
+ grid-template-rows: auto minmax(0, auto) minmax(0, 1fr) auto min-content minmax(0, auto) auto 0;
33
+ /* Size container so the approval tray's 50cqh cap below measures the shell's own height. Without
34
+ it the cap does not vanish, it silently mis-measures: cqh then falls back to the small viewport,
35
+ which is far taller than a short panel and leaves the tray effectively uncapped. Note this also
30
36
  applies layout/size containment, so a position: fixed descendant would be trapped in the shell
31
37
  — there are none today. */
32
38
  container-type: size;
@@ -43,19 +49,20 @@
43
49
  min-height: 43px;
44
50
  padding: 7px 8px 7px 10px;
45
51
  display: grid;
46
- grid-template-columns: minmax(0, 1fr);
52
+ grid-template-columns: minmax(0, 1fr) auto;
47
53
  align-items: center;
48
54
  gap: 7px;
49
55
  border-bottom: 1px solid var(--border);
50
56
  }
51
57
 
58
+ /* Holds only the screen-reader tab now; the history / new / refresh / settings controls sit in the
59
+ header row beside the conversation's name, so this row takes no room. */
52
60
  .ai-chat-controls {
53
- min-height: 31px;
54
- padding: 3px 8px;
61
+ min-height: 0;
62
+ padding: 0;
55
63
  display: flex;
56
64
  align-items: center;
57
65
  justify-content: flex-end;
58
- border-bottom: 1px solid var(--border);
59
66
  background: var(--surface);
60
67
  --text-muted: #c3ccd9;
61
68
  --text-dim: #8996a8;
@@ -79,7 +86,7 @@
79
86
  padding: 0;
80
87
  background: transparent;
81
88
  color: var(--text-muted);
82
- font: 14px/1 var(--sans);
89
+ font: 14px/1 var(--ui);
83
90
  cursor: pointer;
84
91
  opacity: 0;
85
92
  transition: opacity .12s ease, background .12s ease, color .12s ease;
@@ -137,17 +144,20 @@
137
144
  padding: 1px 8px;
138
145
  border-bottom: 1px solid var(--border);
139
146
  background: var(--border);
140
- /* In a short panel the strip scrolls rather than shoving the feed and the composer out of the
141
- shell, and it never claims more than half the chat's height, so the conversation stays in
142
- view when there is room for it (#1492). */
147
+ /* Open, Settings is its own view in the conversation's place (below), so it scrolls within that
148
+ space; with the feed and composer hidden it cannot push the composer out of the shell (#1492). */
143
149
  min-height: 0;
144
- max-height: 50cqh;
145
150
  overflow-y: auto;
146
151
  overscroll-behavior: contain;
147
152
  scrollbar-width: thin;
148
153
  scrollbar-color: var(--border-strong) var(--surface);
149
154
  }
150
155
  .ai-chat-settings[hidden] { display: none; }
156
+ /* Settings is its own view, like History: open, it takes the conversation's place rather than
157
+ sitting above it, and the pressed ⚙ closes it again. */
158
+ .ai-chat-shell:has(> .ai-chat-settings:not([hidden])) > .ai-chat-settings { grid-row: 2 / 8; align-self: start; max-height: 100%; }
159
+ .ai-chat-shell:has(> .ai-chat-settings:not([hidden])) > :is(.ai-chat-feed, .ai-chat-offscreen-activity, .ai-chat-approval-tray, .ai-chat-runtime, .ai-chat-recovery, .ai-chat-attachments, .ai-chat-skills, .ai-chat-composer) { display: none; }
160
+ .ai-chat-tab-actions .ai-chat-icon[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
151
161
  .ai-chat-setting {
152
162
  appearance: none;
153
163
  min-width: 0;
@@ -162,7 +172,9 @@
162
172
  .ai-chat-setting:hover { background: var(--surface-2); }
163
173
  /* When the strip scrolls, keyboard focus must not land flush under the toolbar's hairline. */
164
174
  .ai-chat-setting, .ai-chat-provider { scroll-margin-block: 4px; }
165
- .ai-chat-setting > span { display: block; color: var(--text); font: 8px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
175
+ /* Settings text has three tiers, used the same way everywhere: dim uppercase labels, bright values,
176
+ and readable muted prose for the notes. */
177
+ .ai-chat-setting > span { display: block; color: var(--text-dim); font: 8px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
166
178
  .ai-chat-setting > strong { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font: 10px/1.25 var(--mono); font-weight: 500; }
167
179
  .ai-chat-setting:disabled { cursor: default; opacity: 1; }
168
180
  .ai-chat-setting:disabled > strong { color: var(--text-dim); }
@@ -192,7 +204,10 @@
192
204
  white-space: nowrap;
193
205
  }
194
206
  .ai-chat-provider-switch:hover { color: var(--text); border-color: var(--accent-dim); background: var(--surface-2); }
195
- .ai-chat-provider-switch:disabled { cursor: default; color: var(--text-dim); border-color: var(--border); background: var(--surface); }
207
+ /* `aria-disabled` is the empty state's pending sign-in (#1514): focusable, but it must read — and
208
+ hover — exactly like a disabled one. After :hover so it wins at equal specificity. */
209
+ .ai-chat-provider-switch:disabled,
210
+ .ai-chat-provider-switch[aria-disabled="true"] { cursor: default; color: var(--text-dim); border-color: var(--border); background: var(--surface); }
196
211
  .ai-chat-provider-switch[hidden] { display: none; }
197
212
  .ai-chat-integration-setting {
198
213
  grid-column: 1 / -1;
@@ -224,14 +239,14 @@
224
239
  letter-spacing: .08em;
225
240
  text-transform: uppercase;
226
241
  }
227
- .ai-chat-desktop-status strong { color: var(--text-muted); font: 10px/1.25 var(--mono); font-weight: 500; }
228
- .ai-chat-desktop-status small { display: block; margin-top: 4px; color: var(--text-dim); font: 9px/1.35 var(--sans); }
242
+ .ai-chat-desktop-status strong { color: var(--text); font: 10px/1.25 var(--mono); font-weight: 500; }
243
+ .ai-chat-desktop-status small { display: block; margin-top: 4px; color: var(--text-muted); font: 9px/1.35 var(--ui); }
229
244
  .ai-chat-desktop-status p {
230
245
  margin: 7px 0 0;
231
246
  padding-top: 7px;
232
247
  border-top: 1px solid var(--border);
233
- color: var(--text-dim);
234
- font: 9px/1.4 var(--sans);
248
+ color: var(--text-muted);
249
+ font: 9px/1.4 var(--ui);
235
250
  }
236
251
 
237
252
  .ai-chat-picker {
@@ -310,7 +325,7 @@
310
325
  .ai-chat-history[hidden] { display: none; }
311
326
  .ai-chat-shell.history-open .ai-chat-history { display: block; grid-row: 3 / 8; }
312
327
  .ai-chat-shell.history-open .ai-chat-feed,
313
- .ai-chat-shell.history-open .ai-chat-approval,
328
+ .ai-chat-shell.history-open .ai-chat-approval-tray,
314
329
  .ai-chat-shell.history-open .ai-chat-runtime,
315
330
  .ai-chat-shell.history-open .ai-chat-recovery,
316
331
  .ai-chat-shell.history-open .ai-chat-attachments,
@@ -396,7 +411,7 @@
396
411
  place-items: center;
397
412
  background: transparent;
398
413
  color: var(--text-muted);
399
- font: 13px/1 var(--sans);
414
+ font: 13px/1 var(--ui);
400
415
  cursor: pointer;
401
416
  transition: border-color .12s ease, color .12s ease, background .12s ease;
402
417
  }
@@ -427,7 +442,7 @@
427
442
  border: 1px solid var(--accent);
428
443
  border-radius: 3px;
429
444
  padding: 1px 4px;
430
- background: var(--surface-1);
445
+ background: var(--surface-2);
431
446
  color: var(--text);
432
447
  font: inherit;
433
448
  line-height: 1.25;
@@ -446,6 +461,7 @@
446
461
 
447
462
  .ai-chat-feed {
448
463
  grid-row: 3;
464
+ grid-column: 1;
449
465
  box-sizing: border-box;
450
466
  min-height: 0;
451
467
  min-width: 0;
@@ -462,6 +478,14 @@
462
478
  scrollbar-width: thin;
463
479
  scrollbar-color: var(--border-strong) var(--surface);
464
480
  overscroll-behavior: contain;
481
+ /* A named size container so the empty state can ask how tall the conversation area ACTUALLY is
482
+ (#1501). The shell's own container is no use here: it stays 250px whether the ⚙ strip is open
483
+ or closed, while the feed underneath it goes from 85px to nothing. Size containment costs
484
+ nothing — this row is minmax(0, 1fr), so the grid already sets the feed's height and its
485
+ content never did — and the one overlay that could have been trapped by it, .ai-chat-picker,
486
+ is a sibling of the feed, not a descendant. The name is required: a @container rule can only
487
+ match DESCENDANTS of its container, so the rules below target .ai-chat-empty, never the feed. */
488
+ container: aiChatFeed / size;
465
489
  }
466
490
  /* The spacers reproduce the old 12px top / 28px bottom gutters exactly: the 12px flex gap sits
467
491
  between each spacer and the nearest row, so the top one needs no height of its own and the
@@ -470,6 +494,40 @@
470
494
  .ai-chat-feed::after { content: ''; flex: none; }
471
495
  .ai-chat-feed::before { height: 0; }
472
496
  .ai-chat-feed::after { height: 16px; }
497
+ .ai-chat-offscreen-activity {
498
+ grid-row: 4;
499
+ grid-column: 1;
500
+ justify-self: center;
501
+ align-self: end;
502
+ z-index: 2;
503
+ display: inline-flex;
504
+ align-items: center;
505
+ justify-content: center;
506
+ min-width: 38px;
507
+ min-height: 26px;
508
+ margin-bottom: 7px;
509
+ padding: 5px 9px;
510
+ border: 1px solid var(--border-strong);
511
+ border-radius: 14px;
512
+ background: var(--surface-2);
513
+ box-shadow: 0 2px 8px color-mix(in srgb, #000 20%, transparent);
514
+ color: var(--accent);
515
+ pointer-events: none;
516
+ }
517
+ .ai-chat-offscreen-activity[hidden],
518
+ .ai-chat-shell.history-open .ai-chat-offscreen-activity { display: none; }
519
+ /* Those gutters exist to keep MESSAGES clear of the toolbar and the composer. When the feed's
520
+ content is the empty-state card instead, they buy nothing and cost 40px — 12px of gap above the
521
+ card, 12px of gap plus the 16px spacer below it — which is subtracted from the card's budget at
522
+ every height. At a very short panel that is more than the whole conversation area, so the card
523
+ began below the visible edge and the user saw a blank strip with the action nowhere (#1501).
524
+ The card centres itself with `margin: auto 0` whenever there is free space, so dropping the
525
+ gutters is invisible at a tall panel and is the difference between fitting and not at a short
526
+ one. Not a container query: a @container rule cannot style its own container's pseudo-elements,
527
+ and this has to reach the feed's own ::after. */
528
+ .ai-chat-feed:has(> .ai-chat-empty) { gap: 0; }
529
+ .ai-chat-feed:has(> .ai-chat-empty)::before,
530
+ .ai-chat-feed:has(> .ai-chat-empty)::after { height: 0; }
473
531
  .ai-chat-empty {
474
532
  margin: auto 0;
475
533
  padding: 22px 14px;
@@ -489,9 +547,77 @@
489
547
  .ai-chat-provider-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; color: var(--text-dim); font: 9.5px/1.4 var(--mono); }
490
548
  .ai-chat-provider-accounts > span { min-width: 0; overflow-wrap: anywhere; }
491
549
  .ai-chat-start-provider { min-width: 0; padding: 7px 8px; font-size: 11px; }
550
+ /* In a short panel the card is TALLER than the conversation area it is centred in, so the control
551
+ the empty state exists for — the Sign in… button of #1484, or the provider choice — is painted
552
+ below the feed's visible edge and only scrolling reveals it (#1501). The card therefore gives up
553
+ its explanation, which is the expendable part, before it gives up its action.
554
+
555
+ Because the gutters above are dropped for this card, its budget IS the feed's height. Every
556
+ threshold below is the TALLEST form of that tier measured in the browser at 1280x720, rounded up
557
+ a few px for sub-pixel and border rounding. The tallest is what sets them: one threshold serves
558
+ four empty states, so sizing it to the signed-out card alone would leave the provider chooser —
559
+ the tallest of them — overflowing in the band just above it. Measured full cards, for the record:
560
+ chooser 202.48px, pending sign-in 156.57px, signed-out 120.93px.
561
+
562
+ ≤ 208px: the full card no longer fits. Tallest is the chooser at 202.48px, so the prose and the
563
+ signed-in account line go and the padding tightens, leaving title over action.
564
+ ≤ 94px: that stacked form no longer fits either — tallest is again the chooser, at 88.4px — so
565
+ the card collapses to a single centred row.
566
+ ≤ 52px: the row no longer fits; tallest is the chooser's at 48.25px.
567
+ ≤ 44px: not even the bare action fits; tallest is the chooser's at 40.25px.
568
+
569
+ Do NOT scale the 7px radius or drop the dashed border on the way down — the box is baseline
570
+ chrome at every size; only the padding compresses. */
571
+ @container aiChatFeed (max-height: 208px) {
572
+ .ai-chat-empty { padding: 11px 14px; }
573
+ .ai-chat-empty-copy, .ai-chat-provider-accounts { display: none; }
574
+ .ai-chat-empty-signin { margin-top: 8px; }
575
+ }
576
+ @container aiChatFeed (max-height: 94px) {
577
+ /* One row of "title, plus a trailing control if this state has one" — two of the four empty
578
+ states carry no button at all, so this must read correctly with the control absent. */
579
+ .ai-chat-empty {
580
+ display: flex;
581
+ flex-wrap: wrap;
582
+ align-items: center;
583
+ justify-content: center;
584
+ gap: 4px 8px;
585
+ padding: 7px 10px;
586
+ }
587
+ .ai-chat-empty strong { margin-bottom: 0; font-size: 12px; }
588
+ .ai-chat-empty-signin { margin-top: 0; }
589
+ .ai-chat-provider-row { margin-top: 0; }
590
+ /* No title-hiding rule for the pending sign-in here any more: its title ("Waiting for sign-in…")
591
+ and its button ("Sign-in window open") no longer carry the same words (#1516), so side by side
592
+ they read as state + object, and the title keeps naming the state in this band. */
593
+ }
594
+ /* Below the height where even that row fits — the tallest is the chooser's at 48.25px, so 52px
595
+ with the same rounding — the priority order takes its last step: the title goes, the action
596
+ stays. Gated on there BEING a live action: two of the four empty states carry no button at all,
597
+ and dropping their title would leave an empty dashed box, which is worse than a clipped one.
598
+ The pending sign-in's button is `aria-disabled`, not `:disabled`, so it is kept here too, on
599
+ purpose (#1514): it is focusable, its name says a sign-in window is open and its description
600
+ carries the prose, so it is the part of that card that still tells every user the state. */
601
+ @container aiChatFeed (max-height: 52px) {
602
+ .ai-chat-empty:has(button:not(:disabled)) strong { display: none; }
603
+ .ai-chat-empty { padding: 3px 8px; }
604
+ }
605
+ /* And below the height where the bare action itself fits, nothing does. A partly visible button is
606
+ worse than no button: it offers an affordance it cannot deliver, and because negative free space
607
+ collapses the card's `margin: auto 0` to 0 and start-aligns it, what gets clipped is the BOTTOM
608
+ — the button — not the box around it. So the card goes. Tallest bare-action card measured is
609
+ again the chooser's, at 40.25px, hence 44px.
610
+
611
+ This is not a new idea: #1492 already accepts "too short shows nothing" for the feed's own grid
612
+ track. This extends that floor up to where the ACTIONABLE states stop fitting, instead of
613
+ starting below them. It needs no new copy — the composer's hint line still names the state. */
614
+ @container aiChatFeed (max-height: 44px) {
615
+ .ai-chat-empty { display: none; }
616
+ }
492
617
 
493
618
  .ai-chat-message { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
494
- .ai-chat-message-head { display: flex; justify-content: space-between; gap: 8px; color: var(--text); font: 8.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
619
+ /* Speaker and time sit together, as on the person's own messages, not pinned to opposite edges. */
620
+ .ai-chat-message-head { display: flex; justify-content: flex-start; gap: 8px; color: var(--text); font: 8.5px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
495
621
  .ai-chat-message.user .ai-chat-message-head { color: var(--accent); }
496
622
  .ai-chat-message-body {
497
623
  max-width: 92%;
@@ -516,6 +642,12 @@
516
642
  .ai-chat-message-body a { color: var(--accent); text-decoration: underline; }
517
643
  .ai-chat-message.user { align-items: flex-end; }
518
644
  .ai-chat-message.user .ai-chat-message-head { align-self: flex-end; width: auto; justify-content: flex-end; }
645
+ .ai-chat-message-delivery { align-self: flex-end; color: var(--text-dim); font: 10px/1.35 var(--mono); }
646
+ .ai-chat-message-delivery-detail { max-width: min(100%, 360px); text-align: right; font: 11px/1.4 var(--ui); }
647
+ .ai-chat-followup-resolve { align-self: flex-end; min-height: 24px; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font: 10px/1.35 var(--ui); cursor: pointer; }
648
+ .ai-chat-followup-resolve:hover { color: var(--text); background: var(--surface-3); }
649
+ .ai-chat-followup-resolve:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
650
+ .ai-chat-followup-resolve:disabled { opacity: .55; cursor: wait; }
519
651
  .ai-chat-message.user .ai-chat-message-body { border-left: 0; border-right: 2px solid var(--accent); background: var(--accent-soft); color: var(--text); }
520
652
  .ai-chat-message.answer-jump {
521
653
  outline: 2px solid var(--accent);
@@ -572,6 +704,47 @@
572
704
  .ai-chat-request-actions button:hover { color: var(--text); background: var(--surface-3); }
573
705
  .ai-chat-request-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
574
706
 
707
+ .ai-chat-filter-card {
708
+ margin-top: 6px;
709
+ padding: 10px;
710
+ border: 1px solid var(--border-strong);
711
+ border-left: 2px solid var(--accent);
712
+ border-radius: 6px;
713
+ background: var(--surface-2);
714
+ color: var(--text);
715
+ }
716
+ .ai-chat-filter-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 15px; }
717
+ .ai-chat-filter-card-head strong { font-weight: 600; }
718
+ .ai-chat-filter-state { color: var(--text-dim); font: 600 8px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
719
+ .ai-chat-filter-changes { display: flex; flex-direction: column; gap: 4px; max-height: 180px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none;
720
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) var(--surface-2); }
721
+ .ai-chat-filter-changes::-webkit-scrollbar { width: 8px; }
722
+ .ai-chat-filter-changes::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--border-strong); }
723
+ .ai-chat-filter-changes::-webkit-scrollbar-track { background: var(--surface-2); }
724
+ .ai-chat-filter-change { display: flex; gap: 6px; color: var(--text); font-size: 11px; line-height: 15px; overflow-wrap: anywhere; }
725
+ .ai-chat-filter-change-glyph { flex: none; width: 1em; color: var(--text-muted); font: 11px/15px var(--mono); text-align: center; }
726
+ .ai-chat-filter-change.include .ai-chat-filter-change-glyph::before { content: '+'; }
727
+ .ai-chat-filter-change.exclude .ai-chat-filter-change-glyph::before { content: '\2212'; }
728
+ .ai-chat-filter-change.match .ai-chat-filter-change-glyph::before { content: '\2022'; }
729
+ .ai-chat-filter-note { margin: 8px 0 0; color: var(--text-muted); font-size: 10.5px; line-height: 14px; overflow-wrap: anywhere; }
730
+ .ai-chat-filter-note:empty { display: none; }
731
+ .ai-chat-filter-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
732
+ .ai-chat-filter-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 8px; }
733
+ .ai-chat-filter-actions[hidden] { display: none; }
734
+ .ai-chat-filter-actions button { min-height: 26px; padding: 4px 9px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; }
735
+ .ai-chat-filter-actions button:hover { color: var(--text); background: var(--surface-3); }
736
+ .ai-chat-filter-actions .ai-chat-filter-apply { border-color: var(--accent); background: var(--accent); color: #fff; }
737
+ .ai-chat-filter-actions .ai-chat-filter-apply:hover { background: var(--accent); filter: brightness(1.08); }
738
+ .ai-chat-filter-actions button[aria-disabled="true"] { cursor: default; opacity: .45; filter: none; }
739
+ .ai-chat-filter-actions .ai-chat-filter-apply[aria-disabled="true"] { border-color: var(--border-strong); background: var(--surface); color: var(--text-dim); }
740
+ .ai-chat-filter-actions button[aria-disabled="true"]:hover { background: var(--surface); color: var(--text-dim); filter: none; }
741
+ .ai-chat-filter-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
742
+ /* Status under the person's own (right-aligned) message. Outranks the shared left-aligned, one-line
743
+ live status, so a longer note wraps under the message instead of being cut off at the left edge. */
744
+ .ai-chat-live-status.ai-chat-filter-pending { align-self: flex-end; gap: 6px; height: auto; max-width: min(100%, 360px); margin: 2px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
745
+ .ai-chat-filter-pending .ai-chat-live-label { white-space: normal; text-align: right; overflow-wrap: anywhere; }
746
+ .ai-chat-filter-notice { align-self: flex-end; max-width: min(100%, 360px); margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
747
+
575
748
  .ai-chat-event {
576
749
  border: 1px solid var(--border);
577
750
  border-radius: 5px;
@@ -621,16 +794,42 @@
621
794
  @keyframes ai-chat-history-spin { to { transform: translateY(-50%) rotate(360deg); } }
622
795
 
623
796
  .ai-chat-approval {
797
+ flex: none;
624
798
  border: 1px solid color-mix(in srgb, var(--warn) 50%, var(--border));
625
799
  border-radius: 6px;
626
800
  padding: 9px;
627
801
  background: color-mix(in srgb, var(--warn) 7%, var(--surface-2));
628
802
  }
803
+ .ai-chat-approval-tray {
804
+ grid-row: 6;
805
+ min-height: 0;
806
+ /* A pending decision and the compact request grant fit together in ordinary short panels;
807
+ the feed yields space while the composer keeps its fixed row. */
808
+ max-height: 50cqh;
809
+ overflow-y: auto;
810
+ overscroll-behavior: contain;
811
+ display: flex;
812
+ flex-direction: column;
813
+ gap: 6px;
814
+ margin: 8px 8px 0;
815
+ scrollbar-width: thin;
816
+ scrollbar-color: var(--border-strong) var(--surface);
817
+ }
818
+ .ai-chat-approval-tray:empty { display: none; }
629
819
  .ai-chat-approval strong { display: block; color: var(--text); font-size: 11px; }
630
820
  .ai-chat-approval p { margin: 5px 0 8px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
631
821
  .ai-chat-approval-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
632
822
  .ai-chat-approval button { padding: 5px 9px; font-size: 10px; }
633
- .ai-chat-approval-scope { border-color: var(--border-strong); background: var(--surface-2); }
823
+ .ai-chat-approval-scope {
824
+ display: grid;
825
+ grid-template-columns: minmax(0, 1fr) auto;
826
+ align-items: center;
827
+ gap: 8px;
828
+ padding: 6px 8px;
829
+ border-color: var(--border-strong);
830
+ background: var(--surface-2);
831
+ }
832
+ .ai-chat-approval-scope strong { min-width: 0; line-height: 1.3; }
634
833
  .ai-chat-approval .allow { border-color: var(--accent); color: var(--text); }
635
834
  /* Managed runtime setup (FloLess installing its tested Claude Code / Codex). Neutral while setting up —
636
835
  nothing has gone wrong — with the approval card's warn tint only once setup failed. There is no byte
@@ -697,6 +896,77 @@
697
896
  .ai-chat-attachment img { width: 24px; height: 24px; object-fit: cover; border-radius: 3px; background: var(--surface-3); }
698
897
  .ai-chat-attachment button { width: 18px; height: 18px; padding: 0; flex: none; }
699
898
 
899
+ /* The Tekla model library carried over from a Graft receipt. It sits in the composer's rigid row,
900
+ above the input, and wraps rather than ellipsising: it states exactly what the binding permits,
901
+ so a cut-off line would hide the permission. Deliberately neutral — no success colour or icon —
902
+ because it is not a verification claim; each approved read gets its own receipt card. */
903
+ .ai-chat-tekla-context { margin-bottom: 6px; }
904
+ .ai-chat-tekla-context[hidden] { display: none; }
905
+ .ai-chat-tekla-chip {
906
+ display: flex;
907
+ align-items: flex-start;
908
+ gap: 8px;
909
+ padding: 6px 6px 6px 9px;
910
+ border: 1px solid var(--border);
911
+ border-radius: 5px;
912
+ background: var(--surface-2);
913
+ color: var(--text-muted);
914
+ font: 10.5px/1.45 var(--ui);
915
+ }
916
+ .ai-chat-tekla-chip-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
917
+ .ai-chat-tekla-chip-copy strong { color: var(--text); font-weight: 600; }
918
+ .ai-chat-tekla-chip-state { color: var(--text-dim); }
919
+ .ai-chat-tekla-remove {
920
+ flex: none;
921
+ appearance: none;
922
+ padding: 3px 8px;
923
+ border: 1px solid var(--border-strong);
924
+ border-radius: 4px;
925
+ background: var(--surface);
926
+ color: var(--text-muted);
927
+ font: 10px var(--ui);
928
+ cursor: pointer;
929
+ }
930
+ .ai-chat-tekla-remove:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
931
+ .ai-chat-tekla-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
932
+ .ai-chat-tekla-remove:disabled { cursor: wait; opacity: .65; }
933
+ .ai-chat-tekla-context[data-state="error"] .ai-chat-tekla-chip { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); }
934
+ .ai-chat-tekla-context[data-state="removing"] .ai-chat-tekla-chip,
935
+ .ai-chat-tekla-context[data-state="binding"] .ai-chat-tekla-chip { opacity: .75; }
936
+ .ai-chat-tekla-error { margin: 5px 2px 0; color: var(--err); font: 10.5px/1.45 var(--ui); }
937
+
938
+ /* A server-authored receipt of one approved live Tekla read, in the Graft receipt's look. */
939
+ .ai-chat-tekla-read {
940
+ display: flex;
941
+ flex-direction: column;
942
+ gap: 7px;
943
+ padding: 8px 9px;
944
+ border: 1px solid var(--border);
945
+ border-left: 3px solid var(--ok);
946
+ border-radius: 0 5px 5px 0;
947
+ background: color-mix(in srgb, var(--ok) 8%, var(--surface-2));
948
+ color: var(--text);
949
+ font: 11px/1.45 var(--ui);
950
+ }
951
+ .ai-chat-tekla-read.unverified {
952
+ border-left-color: var(--warn);
953
+ background: color-mix(in srgb, var(--warn) 8%, var(--surface-2));
954
+ }
955
+ .ai-chat-tekla-read > strong { font-size: 11px; font-weight: 600; }
956
+ .ai-chat-tekla-read p { margin: 0; color: var(--text-muted); }
957
+ .ai-chat-tekla-read dl {
958
+ margin: 0;
959
+ padding: 7px 9px;
960
+ display: grid;
961
+ grid-template-columns: auto 1fr;
962
+ gap: 4px 10px;
963
+ border: 1px solid var(--border-strong);
964
+ border-radius: 5px;
965
+ background: var(--surface-2);
966
+ }
967
+ .ai-chat-tekla-read dt { margin: 0; align-self: baseline; color: var(--text-muted); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
968
+ .ai-chat-tekla-read dd { margin: 0; min-width: 0; font: 10px/1.45 var(--mono); overflow-wrap: anywhere; }
969
+
700
970
  .ai-chat-skills {
701
971
  position: absolute;
702
972
  z-index: 19;
@@ -717,7 +987,7 @@
717
987
  .ai-chat-skill-origin { color: var(--text-dim); font: 8px/1.3 var(--mono); text-transform: uppercase; }
718
988
 
719
989
  .ai-chat-composer {
720
- grid-row: 6;
990
+ grid-row: 7;
721
991
  margin-top: 8px;
722
992
  padding: 7px 8px 8px;
723
993
  border-top: 1px solid var(--border);
@@ -735,19 +1005,37 @@
735
1005
  border-radius: 6px;
736
1006
  background: var(--surface-2);
737
1007
  color: var(--text);
738
- font: 12px/1.45 var(--sans);
1008
+ font: 12px/1.45 var(--ui);
739
1009
  caret-color: var(--accent);
740
1010
  scrollbar-width: thin;
741
1011
  scrollbar-color: var(--border-strong) var(--surface-2);
742
1012
  }
743
1013
  #chat-input::placeholder { color: var(--text-dim); }
744
1014
  #chat-input:disabled { opacity: .52; cursor: not-allowed; }
745
- .ai-chat-compose-actions { display: flex; align-items: center; gap: 6px; padding-top: 6px; }
746
- .ai-chat-compose-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font: 8px/1.3 var(--mono); }
1015
+ .ai-chat-compose-actions { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
1016
+ /* The data-handling disclosure, in the composer's rigid grid row so no conversation-area height can
1017
+ take it away (#1501, owner ruling 2026-09-23: "I think disclosure line should be guaranteed, we
1018
+ should not make shortcuts and do it right"). Deliberately NOT part of .ai-chat-compose-hint: that
1019
+ is one mutable string chosen by a priority chain, so a capability, runtime or recovery notice
1020
+ would overwrite the disclosure exactly when a new user is most likely to be reading it — the same
1021
+ shortcut the ruling forbids, moved one element over. It is also block-level and wraps rather than
1022
+ ellipsising, because the disclosure must remain readable at the narrowest panel width,
1023
+ and a disclosure that is present but cut off is not a disclosure. Never a data-tip either: a
1024
+ hover-gated line is not disclosed to anyone who does not hover. */
1025
+ .ai-chat-composer-disclosure {
1026
+ margin: 0 0 6px;
1027
+ color: var(--text-dim);
1028
+ font: 9px/1.4 var(--mono);
1029
+ overflow-wrap: anywhere;
1030
+ }
1031
+ .ai-chat-composer-disclosure[hidden] { display: none; }
1032
+ .ai-chat-compose-hint { flex: 1; min-width: 0; color: var(--text-dim); font: 8px/1.4 var(--mono); overflow-wrap: anywhere; }
747
1033
  .ai-chat-compose-hint.working { display: inline-flex; align-items: center; min-height: 16px; padding-left: 4px; }
748
- .ai-chat-compose-context { min-height: 12px; padding: 5px 0 0 30px; color: var(--text-dim); font: 8px/1.3 var(--mono); }
1034
+ .ai-chat-compose-context { min-height: 12px; padding: 5px 0 0 30px; color: var(--text-dim); font: 8px/1.3 var(--mono); overflow-wrap: anywhere; }
749
1035
  .ai-chat-compose-context strong { color: var(--text-muted); font-weight: 600; }
750
- .ai-chat-send, .ai-chat-stop { min-width: 48px; padding: 6px 9px; font-size: 10px; font-weight: 600; }
1036
+ .ai-chat-send, .ai-chat-stop { flex: none; min-width: 48px; padding: 6px 9px; font-size: 10px; font-weight: 600; }
1037
+ .ai-chat-compose-actions .ai-chat-stop { margin-left: auto; }
1038
+ .ai-chat-compose-actions .ai-chat-stop[hidden] + .ai-chat-send { margin-left: auto; }
751
1039
  .ai-chat-send { border-color: var(--accent); background: var(--accent); color: #fff; }
752
1040
  .ai-chat-send:hover { filter: brightness(1.08); }
753
1041
  .ai-chat-send:disabled, .ai-chat-stop:disabled, .ai-chat-icon:disabled, .ai-chat-start-provider:disabled { cursor: default; opacity: .45; filter: none; }