@deep-podder/dsh-remote-mobile 0.0.6 → 0.0.7

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.
Files changed (45) hide show
  1. package/PROTOCOL.md +97 -9
  2. package/README.md +44 -9
  3. package/SECURITY.md +8 -0
  4. package/auth.js +16 -0
  5. package/bridge.js +336 -9
  6. package/docs/api-notes.md +12 -4
  7. package/docs/engineering-audit.md +252 -0
  8. package/docs/reference-chat-demo.md +41 -0
  9. package/docs/screenshots/chat-light.png +0 -0
  10. package/docs/screenshots/commands-dark.png +0 -0
  11. package/docs/screenshots/pairing-light.png +0 -0
  12. package/docs/screenshots/sessions-light.png +0 -0
  13. package/docs/verification.md +40 -4
  14. package/index.js +1 -1
  15. package/mobile/README.md +81 -35
  16. package/mobile/app.js +4268 -906
  17. package/mobile/index.html +28 -17
  18. package/mobile/lib/away.js +45 -0
  19. package/mobile/lib/constants.js +5 -0
  20. package/mobile/lib/errors.js +42 -0
  21. package/mobile/lib/format.js +94 -0
  22. package/mobile/lib/lock.js +21 -0
  23. package/mobile/manifest.webmanifest +24 -0
  24. package/mobile/mock-server.js +442 -17
  25. package/mobile/model/history.js +119 -0
  26. package/mobile/model/question.js +318 -0
  27. package/mobile/model/turns.js +57 -0
  28. package/mobile/styles/base.css +143 -0
  29. package/mobile/{styles.css → styles/components.css} +1170 -826
  30. package/mobile/styles/overrides.css +269 -0
  31. package/mobile/styles/tokens.css +169 -0
  32. package/mobile/sw.js +28 -4
  33. package/package.json +34 -20
  34. package/protocol.js +87 -0
  35. package/push-policy.js +58 -0
  36. package/server/frames/activity.js +110 -0
  37. package/server/frames/connection.js +21 -0
  38. package/server/frames/history.js +23 -0
  39. package/server/frames/interactions.js +77 -0
  40. package/server/frames/prompts.js +29 -0
  41. package/server/frames/queue.js +58 -0
  42. package/server/frames/sessions.js +201 -0
  43. package/server/frames/settings.js +38 -0
  44. package/server/frames/subagents.js +50 -0
  45. package/server.js +341 -423
@@ -1,299 +1,4 @@
1
- /* ==========================================================================
2
- DSH Remote — mobile client styles
3
-
4
- Calm, premium chat surface: warm off-white in light, near-black in dark,
5
- system serif prose for assistant replies, sans UI, pill composer.
6
- No frameworks, no webfonts, no build step, no external resources.
7
-
8
- Theme model
9
- -----------
10
- app.js resolves the persisted preference ("auto" | "light" | "dark") on init
11
- and writes the *effective* theme to <html data-theme="light|dark"> (the Host
12
- CSP forbids an inline head bootstrap). This stylesheet only has to map those
13
- two states to tokens, which keeps the palette in one place.
14
- ========================================================================== */
15
-
16
- /* ---------- Tokens: light (default) ------------------------------------- */
17
- :root {
18
- color-scheme: light;
19
-
20
- --bg: #f7f5f2;
21
- --surface: #ffffff;
22
- --surface-2: #f1eee9;
23
- --surface-3: #eae6df;
24
-
25
- --text: #1a1815;
26
- --text-2: #6e675f;
27
- --text-3: #8b8278;
28
- --text-4: #a79e93;
29
-
30
- --border: #e6e1d8;
31
- --border-strong: #d6cfc3;
32
-
33
- --bubble: #ede8e1;
34
- --bubble-border: #e3dcd1;
35
-
36
- --pill: #141210;
37
- --pill-ink: #ffffff;
38
- --pill-soft: rgba(20, 18, 16, 0.06);
39
-
40
- --code-bg: #f1ede7;
41
- --code-border: #e2dcd1;
42
- --inline-code-bg: #f1eee9;
43
-
44
- --link: #1a1815;
45
- --link-underline: #b9aea0;
46
-
47
- --ok: #2f6b4f;
48
- --ok-soft: rgba(47, 107, 79, 0.09);
49
- --warn: #8a5a1f;
50
- --warn-soft: rgba(138, 90, 31, 0.09);
51
- --warn-line: rgba(138, 90, 31, 0.28);
52
- --danger: #a63a33;
53
- --danger-ink: #8f2f29;
54
- --danger-soft: rgba(166, 58, 51, 0.08);
55
- --danger-line: rgba(166, 58, 51, 0.26);
56
-
57
- --scrim: rgba(26, 24, 21, 0.32);
58
- --shadow-soft: 0 1px 2px rgba(26, 24, 21, 0.05),
59
- 0 8px 24px rgba(26, 24, 21, 0.07);
60
- --shadow-lift: 0 2px 6px rgba(26, 24, 21, 0.06),
61
- 0 16px 40px rgba(26, 24, 21, 0.12);
62
- --shadow-sheet: 0 -20px 60px rgba(26, 24, 21, 0.18);
63
-
64
- --focus: #141210;
65
- --selection: rgba(20, 18, 16, 0.14);
66
-
67
- --radius-s: 12px;
68
- --radius-m: 16px;
69
- --radius-xl: 24px;
70
- --radius-pill: 999px;
71
-
72
- --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
73
- "Helvetica Neue", Arial, "Noto Sans", sans-serif;
74
- --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
75
- "Book Antiqua", Georgia, "Times New Roman", serif;
76
- --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
77
- "Liberation Mono", monospace;
78
-
79
- --prose-size: 17.5px;
80
- --prose-line: 1.55;
81
-
82
- --ease: cubic-bezier(0.22, 1, 0.36, 1);
83
- --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
84
- --dur-1: 130ms;
85
- --dur-2: 220ms;
86
- --dur-3: 320ms;
87
-
88
- --safe-t: env(safe-area-inset-top, 0px);
89
- --safe-r: env(safe-area-inset-right, 0px);
90
- --safe-b: env(safe-area-inset-bottom, 0px);
91
- --safe-l: env(safe-area-inset-left, 0px);
92
-
93
- --app-h: 100dvh;
94
-
95
- /* Syntax tokens (light) */
96
- --tok-com: #9a9084;
97
- --tok-kw: #8a4b2f;
98
- --tok-str: #3f6b4f;
99
- --tok-num: #8a5a1f;
100
- --tok-fn: #3b5c7a;
101
- --tok-var: #6b4a7a;
102
- --tok-tag: #a63a33;
103
- --tok-attr: #5a6b3f;
104
- --tok-prop: #6e4a2f;
105
- }
106
-
107
- /* ---------- Tokens: dark ------------------------------------------------ */
108
- :root[data-theme="dark"] {
109
- color-scheme: dark;
110
-
111
- --bg: #161616;
112
- --surface: #1f1f1f;
113
- --surface-2: #262626;
114
- --surface-3: #2c2c2c;
115
-
116
- --text: #f4f1ec;
117
- --text-2: #a39c93;
118
- --text-3: #8b847a;
119
- --text-4: #6c665e;
120
-
121
- --border: #2e2c29;
122
- --border-strong: #3b3833;
123
-
124
- --bubble: #2a2a2a;
125
- --bubble-border: #343330;
126
-
127
- --pill: #f4f1ec;
128
- --pill-ink: #161616;
129
- --pill-soft: rgba(244, 241, 236, 0.08);
130
-
131
- --code-bg: #1b1b1b;
132
- --code-border: #2c2a27;
133
- --inline-code-bg: #262626;
134
-
135
- --link: #f4f1ec;
136
- --link-underline: #6e675f;
137
-
138
- --ok: #8fc7a8;
139
- --ok-soft: rgba(143, 199, 168, 0.1);
140
- --warn: #e0b57c;
141
- --warn-soft: rgba(224, 181, 124, 0.1);
142
- --warn-line: rgba(224, 181, 124, 0.28);
143
- --danger: #e6928a;
144
- --danger-ink: #e6928a;
145
- --danger-soft: rgba(230, 146, 138, 0.1);
146
- --danger-line: rgba(230, 146, 138, 0.26);
147
-
148
- --scrim: rgba(0, 0, 0, 0.56);
149
- --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3),
150
- 0 10px 30px rgba(0, 0, 0, 0.35);
151
- --shadow-lift: 0 2px 8px rgba(0, 0, 0, 0.35),
152
- 0 22px 50px rgba(0, 0, 0, 0.45);
153
- --shadow-sheet: 0 -20px 60px rgba(0, 0, 0, 0.55);
154
-
155
- --focus: #f4f1ec;
156
- --selection: rgba(244, 241, 236, 0.18);
157
-
158
- --tok-com: #7b756c;
159
- --tok-kw: #e2b592;
160
- --tok-str: #a8c7a8;
161
- --tok-num: #d9b283;
162
- --tok-fn: #a8c0d8;
163
- --tok-var: #c9b3d8;
164
- --tok-tag: #e29a93;
165
- --tok-attr: #bcc9a0;
166
- --tok-prop: #d9bfa3;
167
- }
168
-
169
- /* ---------- Reset / base ------------------------------------------------- */
170
- *,
171
- *::before,
172
- *::after {
173
- box-sizing: border-box;
174
- }
175
-
176
- html {
177
- height: 100%;
178
- background: var(--bg);
179
- -webkit-text-size-adjust: 100%;
180
- text-size-adjust: 100%;
181
- }
182
-
183
- body {
184
- margin: 0;
185
- min-height: 100%;
186
- background: var(--bg);
187
- color: var(--text);
188
- font-family: var(--font-ui);
189
- font-size: 15px;
190
- line-height: 1.5;
191
- letter-spacing: -0.005em;
192
- overflow: hidden;
193
- overscroll-behavior: none;
194
- -webkit-font-smoothing: antialiased;
195
- -moz-osx-font-smoothing: grayscale;
196
- -webkit-tap-highlight-color: transparent;
197
- }
198
-
199
- button,
200
- input,
201
- textarea {
202
- font: inherit;
203
- color: inherit;
204
- letter-spacing: inherit;
205
- }
206
-
207
- button {
208
- margin: 0;
209
- padding: 0;
210
- border: 0;
211
- background: none;
212
- cursor: pointer;
213
- touch-action: manipulation;
214
- }
215
-
216
- [hidden] {
217
- display: none !important;
218
- }
219
-
220
- .mono {
221
- font-family: var(--font-mono);
222
- font-size: 0.92em;
223
- letter-spacing: -0.01em;
224
- }
225
-
226
- :focus-visible {
227
- outline: 2px solid var(--focus);
228
- outline-offset: 2px;
229
- }
230
-
231
- ::selection {
232
- background: var(--selection);
233
- }
234
-
235
- .sprite {
236
- position: absolute;
237
- width: 0;
238
- height: 0;
239
- overflow: hidden;
240
- }
241
-
242
- .icon {
243
- display: block;
244
- width: 22px;
245
- height: 22px;
246
- fill: none;
247
- stroke: currentColor;
248
- stroke-width: 1.7;
249
- stroke-linecap: round;
250
- stroke-linejoin: round;
251
- flex: none;
252
- }
253
-
254
- .logo-mark {
255
- display: grid;
256
- place-items: center;
257
- width: 52px;
258
- height: 52px;
259
- border-radius: 17px;
260
- background: var(--pill);
261
- color: var(--pill-ink);
262
- box-shadow: var(--shadow-soft);
263
- }
264
-
265
- .logo-mark-lg {
266
- width: 66px;
267
- height: 66px;
268
- border-radius: 21px;
269
- }
270
-
271
- .logo-glyph {
272
- width: 28px;
273
- height: 28px;
274
- fill: none;
275
- stroke: currentColor;
276
- stroke-width: 1.9;
277
- stroke-linecap: round;
278
- stroke-linejoin: round;
279
- }
280
-
281
- .logo-mark-lg .logo-glyph {
282
- width: 34px;
283
- height: 34px;
284
- }
285
-
286
- .noscript {
287
- position: fixed;
288
- inset: auto 0 0;
289
- z-index: 100;
290
- margin: 0;
291
- padding: 16px;
292
- background: var(--danger);
293
- color: #fff;
294
- text-align: center;
295
- font-weight: 600;
296
- }
1
+ /* App shell, chat, sheets, attachments and dialogs. */
297
2
 
298
3
  /* ---------- Buttons / shared --------------------------------------------- */
299
4
  .btn {
@@ -678,16 +383,17 @@ button {
678
383
  display: flex;
679
384
  align-items: center;
680
385
  gap: 2px;
681
- padding: calc(6px + var(--safe-t)) calc(10px + var(--safe-r)) 2px
682
- calc(10px + var(--safe-l));
683
- min-height: 52px;
386
+ /* Roomier than a tabbed header: the title + status block needs air above and
387
+ below now that the second row is gone. */
388
+ padding: calc(8px + var(--safe-t)) calc(12px + var(--safe-r)) 10px
389
+ calc(12px + var(--safe-l));
390
+ min-height: 56px;
684
391
  }
685
392
 
686
- /* The header is a symmetric three-part row: [left cluster] [title] [right
687
- cluster]. The left cluster carries a non-interactive spacer exactly one icon
688
- button wide, so both side clusters measure the same and the title block — and
689
- the status line under it — sits on the viewport centre line without absolute
690
- positioning over the buttons. */
393
+ /* The header is a symmetric three-part row: [navigation: drawer + activity]
394
+ [title] [actions: new + overflow]. Both clusters hold exactly two 44px
395
+ buttons, so the title block — and the status line under it — sits on the
396
+ viewport centre line without absolute positioning. */
691
397
  .topbar-side {
692
398
  display: flex;
693
399
  align-items: center;
@@ -699,13 +405,6 @@ button {
699
405
  width: var(--topbar-btn);
700
406
  }
701
407
 
702
- .topbar-spacer {
703
- display: block;
704
- width: var(--topbar-btn);
705
- height: 1px;
706
- flex: none;
707
- }
708
-
709
408
  .titleblock {
710
409
  flex: 1 1 0;
711
410
  min-width: 0;
@@ -772,60 +471,22 @@ button {
772
471
  gap: 0;
773
472
  flex: none;
774
473
  }
775
- .tabs {
776
- grid-row: 2;
777
- display: flex;
778
- align-items: center;
779
- justify-content: center;
780
- gap: 4px;
781
- padding: 2px calc(12px + var(--safe-r)) 10px calc(12px + var(--safe-l));
782
- }
783
-
784
- .tab {
785
- position: relative;
786
- display: inline-flex;
787
- align-items: center;
788
- justify-content: center;
789
- gap: 6px;
790
- min-width: 106px;
791
- height: 38px;
792
- padding: 0 16px;
793
- border-radius: var(--radius-pill);
794
- font-size: 13px;
795
- font-weight: 550;
796
- color: var(--text-3);
797
- letter-spacing: -0.005em;
798
- transition: color var(--dur-1) var(--ease-out),
799
- background var(--dur-2) var(--ease-out),
800
- box-shadow var(--dur-2) var(--ease-out);
801
- }
802
-
803
- .tab::after {
804
- /* invisible vertical hit-area extension */
805
- content: "";
806
- position: absolute;
807
- inset: -4px 0;
808
- }
809
474
 
810
- .tab.is-active {
475
+ /* The Activity view is a header toggle, not a second tab row. */
476
+ .iconbtn.is-active {
477
+ background: var(--surface-2);
811
478
  color: var(--text);
812
- background: var(--surface);
813
- box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgba(0, 0, 0, 0.03);
814
- }
815
-
816
- .tab:active {
817
- color: var(--text-2);
818
479
  }
819
480
 
820
- .tab-badge {
481
+ .activity-badge {
821
482
  position: absolute;
822
- top: 9px;
823
- right: 12px;
824
- width: 5px;
825
- height: 5px;
483
+ top: 8px;
484
+ right: 9px;
485
+ width: 6px;
486
+ height: 6px;
826
487
  border-radius: 50%;
827
488
  background: var(--ok);
828
- box-shadow: 0 0 0 2px var(--surface);
489
+ box-shadow: 0 0 0 2px var(--bg);
829
490
  }
830
491
 
831
492
  /* Connection banner */
@@ -900,6 +561,8 @@ button {
900
561
  overflow-y: auto;
901
562
  overflow-x: hidden;
902
563
  -webkit-overflow-scrolling: touch;
564
+ /* Keep a focused answer above the on-screen keyboard. */
565
+ scroll-padding-block-end: 36vh;
903
566
  overscroll-behavior: contain;
904
567
  scrollbar-width: none;
905
568
  }
@@ -913,12 +576,30 @@ button {
913
576
  .messages {
914
577
  display: flex;
915
578
  flex-direction: column;
916
- gap: 22px;
579
+ gap: 14px;
917
580
  width: 100%;
918
581
  min-height: 100%;
919
582
  max-width: 700px;
920
583
  margin: 0 auto;
921
- padding: 10px calc(20px + var(--safe-r)) 22px calc(20px + var(--safe-l));
584
+ padding: 6px calc(20px + var(--safe-r)) 18px calc(20px + var(--safe-l));
585
+ }
586
+
587
+ .history-more {
588
+ align-self: center;
589
+ min-height: 38px;
590
+ margin: 0 auto 4px;
591
+ padding: 0 16px;
592
+ border: 1px solid var(--border);
593
+ border-radius: var(--radius-pill);
594
+ background: var(--surface);
595
+ color: var(--text-3);
596
+ font-family: var(--font-ui);
597
+ font-size: 12.5px;
598
+ font-weight: 500;
599
+ }
600
+
601
+ .history-more:disabled {
602
+ opacity: 0.6;
922
603
  }
923
604
 
924
605
  /* ---------- Messages ----------------------------------------------------- */
@@ -944,6 +625,48 @@ button {
944
625
  gap: 4px;
945
626
  }
946
627
 
628
+ /* A prompt whose websocket write failed: keep it, mark it, offer retry. */
629
+ .msg-user.is-failed .bubble {
630
+ border-color: var(--danger-line);
631
+ background: var(--danger-soft);
632
+ }
633
+
634
+ .msg-failed {
635
+ display: flex;
636
+ flex-wrap: wrap;
637
+ align-items: center;
638
+ justify-content: flex-end;
639
+ gap: 8px;
640
+ max-width: 84%;
641
+ }
642
+
643
+ .msg-failed-text {
644
+ font-size: 11.5px;
645
+ line-height: 1.4;
646
+ color: var(--danger-ink);
647
+ }
648
+
649
+ .msg-failed-action {
650
+ min-height: 32px;
651
+ padding: 0 12px;
652
+ border: 1px solid var(--danger-line);
653
+ border-radius: var(--radius-pill);
654
+ background: var(--surface);
655
+ color: var(--danger-ink);
656
+ font-family: var(--font-ui);
657
+ font-size: 12px;
658
+ font-weight: 500;
659
+ }
660
+
661
+ .msg-failed-action.is-quiet {
662
+ border-color: var(--border);
663
+ color: var(--text-3);
664
+ }
665
+
666
+ .msg-failed-action:active {
667
+ background: var(--surface-2);
668
+ }
669
+
947
670
  .bubble {
948
671
  max-width: 84%;
949
672
  padding: 10px 15px;
@@ -1180,103 +903,236 @@ button {
1180
903
  }
1181
904
  }
1182
905
 
1183
- /* Reasoning (collapsible) */
1184
- .reasoning {
1185
- margin: 0 0 12px;
1186
- border-left: 2px solid var(--border-strong);
1187
- padding-left: 13px;
1188
- }
1189
-
1190
- .reasoning summary {
906
+ /* ---------- Turn disclosure (one quiet line per turn) ------------------- */
907
+ .turn-activity {
1191
908
  display: flex;
1192
909
  align-items: center;
1193
- gap: 6px;
1194
- min-height: 34px;
910
+ gap: 8px;
911
+ width: 100%;
912
+ margin: 0 0 5px;
913
+ padding: 1px 0;
914
+ text-align: left;
1195
915
  font-family: var(--font-ui);
1196
- font-size: 10.5px;
1197
- font-weight: 500;
1198
- letter-spacing: 0.09em;
1199
- text-transform: uppercase;
916
+ font-size: 12px;
917
+ line-height: 1.35;
1200
918
  color: var(--text-4);
1201
- list-style: none;
1202
- cursor: pointer;
1203
919
  }
1204
920
 
1205
- .reasoning summary::-webkit-details-marker {
921
+ .turn-activity[hidden] {
1206
922
  display: none;
1207
923
  }
1208
924
 
1209
- .reasoning summary::after {
1210
- content: "";
1211
- width: 12px;
1212
- height: 12px;
1213
- margin-left: 1px;
1214
- background: currentColor;
1215
- opacity: 0.7;
1216
- -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
1217
- center / contain no-repeat;
1218
- mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
1219
- center / contain no-repeat;
1220
- transition: transform var(--dur-2) var(--ease);
925
+ .turn-dot {
926
+ flex: none;
927
+ width: 5px;
928
+ height: 5px;
929
+ border-radius: 50%;
930
+ background: var(--text-4);
1221
931
  }
1222
932
 
1223
- .reasoning[open] summary::after {
1224
- transform: rotate(180deg);
933
+ .turn-activity.is-busy .turn-dot {
934
+ background: var(--text-2);
935
+ animation: turn-pulse 1.4s ease-in-out infinite;
1225
936
  }
1226
937
 
1227
- .reasoning-body {
1228
- padding: 2px 0 4px;
1229
- font-size: 13.5px;
1230
- line-height: 1.6;
1231
- color: var(--text-3);
938
+ .turn-text {
939
+ display: flex;
940
+ flex-direction: column;
941
+ min-width: 0;
942
+ flex: 1;
1232
943
  }
1233
944
 
1234
- .reasoning-body .md-p {
1235
- margin: 0 0 0.5em;
945
+ .turn-head {
946
+ display: flex;
947
+ align-items: baseline;
948
+ gap: 5px;
949
+ min-width: 0;
1236
950
  }
1237
951
 
1238
- /* ---------- Assistant prose --------------------------------------------- */
1239
- .md {
1240
- font-family: var(--font-serif);
1241
- font-size: var(--prose-size);
1242
- line-height: var(--prose-line);
1243
- letter-spacing: 0;
1244
- color: var(--text);
1245
- overflow-wrap: break-word;
1246
- word-break: break-word;
952
+ .turn-label {
953
+ overflow: hidden;
954
+ text-overflow: ellipsis;
955
+ white-space: nowrap;
1247
956
  }
1248
957
 
1249
- .md > :first-child {
1250
- margin-top: 0;
958
+ .turn-activity.is-busy .turn-label {
959
+ color: var(--text-3);
1251
960
  }
1252
961
 
1253
- .md > :last-child {
1254
- margin-bottom: 0;
962
+ /* Only the failure count is tinted: a turn that failed one tool out of twenty
963
+ is still a normal turn, not an error state. */
964
+ .turn-fail {
965
+ flex: none;
966
+ color: var(--danger-ink);
967
+ white-space: nowrap;
1255
968
  }
1256
969
 
1257
- .md-p {
1258
- margin: 0 0 0.74em;
970
+ .turn-sub {
971
+ margin-top: 1px;
972
+ font-family: var(--font-mono);
973
+ font-size: 10.5px;
974
+ line-height: 1.3;
975
+ color: var(--text-4);
976
+ overflow: hidden;
977
+ text-overflow: ellipsis;
978
+ white-space: nowrap;
1259
979
  }
1260
980
 
1261
- .md-h {
1262
- margin: 1.08em 0 0.5em;
1263
- font-family: var(--font-serif);
1264
- font-weight: 600;
1265
- letter-spacing: -0.015em;
1266
- color: var(--text);
1267
- line-height: 1.22;
981
+ .turn-chevron {
982
+ display: inline-grid;
983
+ place-items: center;
984
+ flex: none;
985
+ width: 16px;
986
+ height: 16px;
987
+ color: inherit;
988
+ opacity: 0.55;
989
+ transition: transform var(--dur-2) var(--ease);
1268
990
  }
1269
991
 
1270
- .md-h1 {
1271
- font-size: 1.34em;
992
+ .turn-chevron .icon {
993
+ width: 14px;
994
+ height: 14px;
1272
995
  }
1273
996
 
1274
- .md-h2 {
1275
- font-size: 1.2em;
997
+ .turn-activity[aria-expanded="true"] .turn-chevron,
998
+ .card-summary[aria-expanded="true"] .turn-chevron {
999
+ transform: rotate(180deg);
1000
+ }
1001
+
1002
+ .turn-detail {
1003
+ margin: 0 0 10px;
1004
+ padding-left: 13px;
1005
+ border-left: 2px solid var(--border);
1006
+ }
1007
+
1008
+ @keyframes turn-pulse {
1009
+ 0%,
1010
+ 100% {
1011
+ transform: scale(0.8);
1012
+ opacity: 0.55;
1013
+ }
1014
+ 50% {
1015
+ transform: scale(1.3);
1016
+ opacity: 1;
1017
+ }
1018
+ }
1019
+
1020
+ .reasoning-body {
1021
+ padding: 2px 0 4px;
1022
+ font-size: 13px;
1023
+ line-height: 1.55;
1024
+ color: var(--text-3);
1025
+ }
1026
+
1027
+ .reasoning-body .md-p {
1028
+ margin: 0 0 0.5em;
1029
+ }
1030
+
1031
+ /* ---------- Settled interaction cards (one collapsed line) --------------- */
1032
+ .card-summary {
1033
+ display: flex;
1034
+ align-items: center;
1035
+ gap: 10px;
1036
+ width: 100%;
1037
+ min-height: 34px;
1038
+ text-align: left;
1039
+ color: var(--text-2);
1040
+ }
1041
+
1042
+ .card-summary-main {
1043
+ display: flex;
1044
+ flex-direction: column;
1045
+ gap: 2px;
1046
+ min-width: 0;
1047
+ flex: 1;
1048
+ }
1049
+
1050
+ .card-summary-sub {
1051
+ font-size: 11.5px;
1052
+ line-height: 1.35;
1053
+ color: var(--text-4);
1054
+ overflow: hidden;
1055
+ text-overflow: ellipsis;
1056
+ white-space: nowrap;
1057
+ }
1058
+
1059
+ .card-summary .question-outcome,
1060
+ .card-summary .approval-outcome {
1061
+ min-height: 0;
1062
+ margin: 0;
1063
+ padding: 0;
1064
+ border: 0;
1065
+ gap: 6px;
1066
+ font-size: 12.5px;
1067
+ }
1068
+
1069
+ .card-summary .question-outcome .icon,
1070
+ .card-summary .approval-outcome .icon {
1071
+ width: 14px;
1072
+ height: 14px;
1073
+ }
1074
+
1075
+ .question.is-resolved:not(.is-open) .card-body,
1076
+ .approval.is-resolved:not(.is-open) .card-body {
1077
+ display: none;
1078
+ }
1079
+
1080
+ /* Tool calls a turn runs are nested under its thinking block (desktop-style). */
1081
+ .turn-steps {
1082
+ display: flex;
1083
+ flex-direction: column;
1084
+ gap: 10px;
1085
+ margin-top: 10px;
1086
+ padding-top: 10px;
1087
+ border-top: 1px solid var(--border);
1088
+ }
1089
+
1090
+ .turn-steps:empty {
1091
+ display: none;
1092
+ }
1093
+
1094
+ /* ---------- Assistant prose --------------------------------------------- */
1095
+ .md {
1096
+ font-family: var(--font-serif);
1097
+ font-size: var(--prose-size);
1098
+ line-height: var(--prose-line);
1099
+ letter-spacing: 0;
1100
+ color: var(--text);
1101
+ overflow-wrap: break-word;
1102
+ word-break: break-word;
1103
+ }
1104
+
1105
+ .md > :first-child {
1106
+ margin-top: 0;
1107
+ }
1108
+
1109
+ .md > :last-child {
1110
+ margin-bottom: 0;
1111
+ }
1112
+
1113
+ .md-p {
1114
+ margin: 0 0 0.62em;
1115
+ }
1116
+
1117
+ .md-h {
1118
+ margin: 0.9em 0 0.42em;
1119
+ font-family: var(--font-serif);
1120
+ font-weight: 600;
1121
+ letter-spacing: -0.015em;
1122
+ color: var(--text);
1123
+ line-height: 1.22;
1124
+ }
1125
+
1126
+ .md-h1 {
1127
+ font-size: 1.26em;
1128
+ }
1129
+
1130
+ .md-h2 {
1131
+ font-size: 1.14em;
1276
1132
  }
1277
1133
 
1278
1134
  .md-h3 {
1279
- font-size: 1.07em;
1135
+ font-size: 1.03em;
1280
1136
  }
1281
1137
 
1282
1138
  .md-h4,
@@ -1287,8 +1143,8 @@ button {
1287
1143
  }
1288
1144
 
1289
1145
  .md-list {
1290
- margin: 0.4em 0 0.85em;
1291
- padding-left: 1.25em;
1146
+ margin: 0.35em 0 0.7em;
1147
+ padding-left: 1.2em;
1292
1148
  }
1293
1149
 
1294
1150
  .md-li {
@@ -1393,19 +1249,23 @@ button {
1393
1249
  color: var(--text-3);
1394
1250
  }
1395
1251
 
1396
- /* Assistant message footer: copy + tap-to-reveal timestamp */
1252
+ /* Assistant message footer: copy + tap-to-reveal timestamp. Hidden until the
1253
+ message itself is tapped — a permanent action row per reply is clutter. */
1397
1254
  .msg-foot {
1398
- display: flex;
1255
+ display: none;
1399
1256
  align-items: center;
1400
1257
  gap: 14px;
1401
- margin: 7px 0 0 -9px;
1402
- min-height: 36px;
1258
+ margin: 5px 0 0 -9px;
1259
+ min-height: 34px;
1403
1260
  transition: opacity var(--dur-2) var(--ease-out);
1404
1261
  }
1405
1262
 
1263
+ .msg.is-actions-shown .msg-foot {
1264
+ display: flex;
1265
+ }
1266
+
1406
1267
  .msg-assistant.is-streaming .msg-foot {
1407
- opacity: 0;
1408
- pointer-events: none;
1268
+ display: none;
1409
1269
  }
1410
1270
 
1411
1271
  .msg-action {
@@ -1647,6 +1507,11 @@ button {
1647
1507
  font-family: var(--font-mono);
1648
1508
  font-size: 10.5px;
1649
1509
  letter-spacing: 0.02em;
1510
+ font-variant-numeric: tabular-nums;
1511
+ }
1512
+
1513
+ .tool-dur.is-running {
1514
+ color: var(--text-4);
1650
1515
  }
1651
1516
 
1652
1517
  .tool-status {
@@ -1668,6 +1533,24 @@ button {
1668
1533
  color: var(--text-3);
1669
1534
  }
1670
1535
 
1536
+ /* The running label shimmers like the reference composer's active step. */
1537
+ .tool-status.is-running.is-shimmer {
1538
+ color: transparent;
1539
+ background: linear-gradient(
1540
+ 90deg,
1541
+ var(--text-3) 0%,
1542
+ var(--text-3) 40%,
1543
+ var(--text-4) 50%,
1544
+ var(--text-3) 60%,
1545
+ var(--text-3) 100%
1546
+ )
1547
+ 0 0 / 300% 100%;
1548
+ background-clip: text;
1549
+ -webkit-background-clip: text;
1550
+ -webkit-text-fill-color: transparent;
1551
+ animation: reasoning-shimmer 1.8s ease-out infinite;
1552
+ }
1553
+
1671
1554
  .tool-chevron {
1672
1555
  display: grid;
1673
1556
  place-items: center;
@@ -1982,6 +1865,11 @@ button {
1982
1865
  background: var(--surface-2);
1983
1866
  box-shadow: none;
1984
1867
  opacity: 0.9;
1868
+ padding: 10px 14px;
1869
+ }
1870
+
1871
+ .approval.is-resolved.is-open {
1872
+ padding: 16px;
1985
1873
  }
1986
1874
 
1987
1875
  /* ---------- Question cards (ask_user_question) --------------------------- */
@@ -2003,6 +1891,11 @@ button {
2003
1891
  border-color: var(--border);
2004
1892
  background: var(--surface-2);
2005
1893
  box-shadow: none;
1894
+ padding: 10px 14px;
1895
+ }
1896
+
1897
+ .question.is-resolved.is-open {
1898
+ padding: 16px;
2006
1899
  }
2007
1900
 
2008
1901
  .question-head {
@@ -2017,6 +1910,22 @@ button {
2017
1910
  min-width: 0;
2018
1911
  }
2019
1912
 
1913
+ .question-head-actions {
1914
+ display: flex;
1915
+ align-items: center;
1916
+ gap: 4px;
1917
+ flex: none;
1918
+ }
1919
+
1920
+ .q-close {
1921
+ width: 30px;
1922
+ height: 30px;
1923
+ }
1924
+
1925
+ .q-close:disabled {
1926
+ opacity: 0.4;
1927
+ }
1928
+
2020
1929
  .question-eyebrow {
2021
1930
  margin: 0;
2022
1931
  font-family: var(--font-mono);
@@ -2138,7 +2047,9 @@ button {
2138
2047
  outline-offset: 2px;
2139
2048
  }
2140
2049
 
2141
- .q-option.is-selected {
2050
+ /* Selection chrome belongs to single-select rows; a multi-select row already
2051
+ shows its state in the checkbox, as in the desktop composer. */
2052
+ .q-option.is-single.is-selected {
2142
2053
  border-color: var(--text-4);
2143
2054
  background: var(--surface-2);
2144
2055
  }
@@ -2159,41 +2070,64 @@ button {
2159
2070
  display: grid;
2160
2071
  place-items: center;
2161
2072
  flex: none;
2162
- width: 20px;
2163
- height: 20px;
2164
- margin-top: 1px;
2073
+ width: 22px;
2074
+ height: 22px;
2075
+ margin-top: 0;
2165
2076
  border: 1.5px solid var(--border-strong);
2166
- border-radius: 50%;
2077
+ border-radius: 7px;
2167
2078
  background: transparent;
2079
+ font-family: var(--font-mono);
2080
+ font-size: 11px;
2081
+ font-weight: 600;
2082
+ line-height: 1;
2083
+ color: var(--text-3);
2168
2084
  transition: background var(--dur-1) var(--ease-out),
2169
- border-color var(--dur-1) var(--ease-out);
2085
+ border-color var(--dur-1) var(--ease-out),
2086
+ color var(--dur-1) var(--ease-out);
2170
2087
  }
2171
2088
 
2172
- .q-input[type="checkbox"] + .q-control {
2173
- border-radius: 6px;
2089
+ /* Single-select options carry their 1-based number, like the desktop card. */
2090
+ .q-control.is-number {
2091
+ border-color: transparent;
2092
+ background: var(--surface-2);
2174
2093
  }
2175
2094
 
2176
- .q-option.is-selected .q-control {
2095
+ .q-control.is-number.is-on {
2177
2096
  border-color: var(--pill);
2178
2097
  background: var(--pill);
2098
+ color: var(--pill-ink);
2179
2099
  }
2180
2100
 
2181
- .q-input[type="radio"]:checked + .q-control::after {
2182
- content: "";
2183
- width: 6px;
2184
- height: 6px;
2185
- border-radius: 50%;
2186
- background: var(--pill-ink);
2101
+ .q-control.is-box.is-on {
2102
+ border-color: var(--pill);
2103
+ background: var(--pill);
2104
+ color: var(--pill-ink);
2187
2105
  }
2188
2106
 
2189
- .q-input[type="checkbox"]:checked + .q-control::after {
2190
- content: "";
2191
- width: 5px;
2192
- height: 9px;
2193
- margin-top: -2px;
2194
- border: solid var(--pill-ink);
2195
- border-width: 0 1.6px 1.6px 0;
2196
- transform: rotate(45deg);
2107
+ .q-control .icon {
2108
+ width: 13px;
2109
+ height: 13px;
2110
+ color: var(--pill-ink);
2111
+ }
2112
+
2113
+ .q-option-line {
2114
+ display: flex;
2115
+ align-items: baseline;
2116
+ flex-wrap: wrap;
2117
+ gap: 6px;
2118
+ }
2119
+
2120
+ .q-badge {
2121
+ flex: none;
2122
+ padding: 1px 7px;
2123
+ border-radius: var(--radius-pill);
2124
+ background: var(--pill-soft);
2125
+ font-family: var(--font-mono);
2126
+ font-size: 9px;
2127
+ font-weight: 600;
2128
+ letter-spacing: 0.06em;
2129
+ text-transform: uppercase;
2130
+ color: var(--text-2);
2197
2131
  }
2198
2132
 
2199
2133
  .q-option-text {
@@ -2220,81 +2154,143 @@ button {
2220
2154
  overflow-wrap: anywhere;
2221
2155
  }
2222
2156
 
2157
+ /* Free-text answer row: an option-shaped row under the list (inline) or a
2158
+ framed field when the question offers no options (block). */
2223
2159
  .q-custom {
2224
2160
  display: flex;
2225
- flex-direction: column;
2226
- gap: 6px;
2161
+ align-items: center;
2162
+ gap: 10px;
2227
2163
  margin-top: 12px;
2228
- }
2229
-
2230
- .q-custom-label {
2231
- font-family: var(--font-mono);
2232
- font-size: 9.5px;
2233
- font-weight: 500;
2234
- letter-spacing: 0.1em;
2235
- text-transform: uppercase;
2236
- color: var(--text-4);
2237
- }
2238
-
2239
- .q-custom-input {
2240
- width: 100%;
2241
- min-height: 44px;
2242
- padding: 0 13px;
2164
+ padding: 10px 12px;
2243
2165
  border: 1px solid var(--border);
2244
2166
  border-radius: var(--radius-s);
2245
2167
  background: var(--surface);
2246
- color: var(--text);
2247
- font-family: var(--font-ui);
2248
- font-size: 15px; /* ≥16px avoids iOS zoom on focus; 15 keeps rhythm */
2249
- line-height: 1.4;
2250
- outline: none;
2251
2168
  transition: border-color var(--dur-1) var(--ease-out),
2252
- box-shadow var(--dur-1) var(--ease-out);
2169
+ background var(--dur-1) var(--ease-out),
2170
+ opacity var(--dur-1) var(--ease-out);
2253
2171
  }
2254
2172
 
2255
- .q-custom-input:focus {
2256
- border-color: var(--border-strong);
2257
- box-shadow: 0 0 0 3px var(--pill-soft);
2173
+ .q-custom.is-inline {
2174
+ min-height: 46px;
2258
2175
  }
2259
2176
 
2260
- .q-custom-input::placeholder {
2261
- color: var(--text-4);
2177
+ .q-custom.is-block {
2178
+ align-items: flex-start;
2179
+ padding: 12px;
2262
2180
  }
2263
2181
 
2264
- .q-answer {
2265
- display: flex;
2266
- flex-direction: column;
2267
- gap: 4px;
2268
- margin-top: 12px;
2269
- padding: 10px 12px;
2270
- border: 1px solid var(--border);
2271
- border-radius: var(--radius-s);
2272
- background: var(--surface);
2182
+ /* A single-select question with a chosen option dims the free-text row until
2183
+ the user types, exactly as the desktop composer does. */
2184
+ .q-custom.is-yielded {
2185
+ opacity: 0.72;
2273
2186
  }
2274
2187
 
2275
- .q-answer-label {
2276
- font-family: var(--font-mono);
2277
- font-size: 9.5px;
2278
- font-weight: 500;
2279
- letter-spacing: 0.1em;
2280
- text-transform: uppercase;
2281
- color: var(--text-4);
2188
+ .q-custom.has-text {
2189
+ border-color: var(--border-strong);
2190
+ background: var(--surface-2);
2282
2191
  }
2283
2192
 
2284
- .q-answer-value {
2285
- font-size: 14px;
2286
- line-height: 1.45;
2287
- color: var(--text);
2288
- overflow-wrap: anywhere;
2193
+ .q-custom:focus-within {
2194
+ border-color: var(--border-strong);
2195
+ /* The textarea suppresses its own outline; the row carries a high-contrast
2196
+ focus ring instead so keyboard focus never disappears. */
2197
+ outline: 2px solid var(--focus);
2198
+ outline-offset: 2px;
2289
2199
  }
2290
2200
 
2291
- .q-answer.is-generic .q-answer-value {
2292
- color: var(--text-2);
2201
+ .q-custom-glyph {
2202
+ display: grid;
2203
+ place-items: center;
2204
+ flex: none;
2205
+ width: 22px;
2206
+ height: 22px;
2207
+ border-radius: 50%;
2208
+ background: var(--surface-2);
2209
+ color: var(--text-3);
2293
2210
  }
2294
2211
 
2295
- .question-actions {
2296
- display: flex;
2297
- gap: 9px;
2212
+ .q-custom-glyph.is-box {
2213
+ border: 1.5px solid var(--border-strong);
2214
+ border-radius: 7px;
2215
+ background: transparent;
2216
+ }
2217
+
2218
+ .q-custom-glyph.is-on {
2219
+ border-color: var(--pill);
2220
+ background: var(--pill);
2221
+ color: var(--pill-ink);
2222
+ }
2223
+
2224
+ .q-custom-glyph .icon {
2225
+ width: 13px;
2226
+ height: 13px;
2227
+ }
2228
+
2229
+ .q-custom-input {
2230
+ flex: 1;
2231
+ min-width: 0;
2232
+ width: 100%;
2233
+ min-height: 24px;
2234
+ max-height: 168px;
2235
+ height: auto;
2236
+ /* Progressive enhancement: grow with the content, capped by max-height.
2237
+ The JS fallback (scrollHeight) runs only where this is unsupported. */
2238
+ field-sizing: content;
2239
+ padding: 2px 0;
2240
+ border: 0;
2241
+ background: transparent;
2242
+ color: var(--text);
2243
+ font-family: var(--font-ui);
2244
+ font-size: 15px; /* ≥16px avoids iOS zoom on focus; 15 keeps rhythm */
2245
+ line-height: 1.42;
2246
+ resize: none;
2247
+ outline: none;
2248
+ overflow-y: auto;
2249
+ }
2250
+
2251
+ .q-custom-input::placeholder {
2252
+ color: var(--text-4);
2253
+ }
2254
+
2255
+ .q-answer {
2256
+ display: flex;
2257
+ flex-direction: column;
2258
+ gap: 4px;
2259
+ margin-top: 12px;
2260
+ padding: 10px 12px;
2261
+ border: 1px solid var(--border);
2262
+ border-radius: var(--radius-s);
2263
+ background: var(--surface);
2264
+ }
2265
+
2266
+ .q-answer-label {
2267
+ font-family: var(--font-mono);
2268
+ font-size: 9.5px;
2269
+ font-weight: 500;
2270
+ letter-spacing: 0.1em;
2271
+ text-transform: uppercase;
2272
+ color: var(--text-4);
2273
+ }
2274
+
2275
+ .q-answer-value {
2276
+ font-size: 14px;
2277
+ line-height: 1.45;
2278
+ color: var(--text);
2279
+ overflow-wrap: anywhere;
2280
+ }
2281
+
2282
+ .q-answer.is-generic .q-answer-value {
2283
+ color: var(--text-2);
2284
+ }
2285
+
2286
+ .q-answer.is-skipped .q-answer-value {
2287
+ color: var(--text-3);
2288
+ font-style: italic;
2289
+ }
2290
+
2291
+ .question-actions {
2292
+ display: flex;
2293
+ gap: 9px;
2298
2294
  margin-top: 16px;
2299
2295
  }
2300
2296
 
@@ -2316,6 +2312,129 @@ button {
2316
2312
  color: var(--text-4);
2317
2313
  }
2318
2314
 
2315
+ /* Pager + inline validation feedback, mirroring the desktop card's footer. */
2316
+ .question-foot {
2317
+ margin-top: 14px;
2318
+ }
2319
+
2320
+ .question-pager {
2321
+ display: flex;
2322
+ align-items: center;
2323
+ justify-content: center;
2324
+ gap: 12px;
2325
+ }
2326
+
2327
+ .q-pager-btn {
2328
+ width: 34px;
2329
+ height: 34px;
2330
+ border: 1px solid var(--border);
2331
+ border-radius: 50%;
2332
+ color: var(--text-2);
2333
+ }
2334
+
2335
+ .q-pager-btn:disabled {
2336
+ opacity: 0.32;
2337
+ }
2338
+
2339
+ .q-pager-btn .icon {
2340
+ width: 15px;
2341
+ height: 15px;
2342
+ }
2343
+
2344
+ .question-pager-text {
2345
+ min-width: 44px;
2346
+ text-align: center;
2347
+ font-family: var(--font-mono);
2348
+ font-size: 11px;
2349
+ letter-spacing: 0.06em;
2350
+ color: var(--text-3);
2351
+ }
2352
+
2353
+ .question-feedback {
2354
+ margin: 9px 0 0;
2355
+ font-size: 12px;
2356
+ line-height: 1.45;
2357
+ color: var(--danger-ink);
2358
+ overflow-wrap: anywhere;
2359
+ }
2360
+
2361
+ .question-feedback:empty {
2362
+ display: none;
2363
+ }
2364
+
2365
+ .question-foot .question-actions {
2366
+ margin-top: 10px;
2367
+ }
2368
+
2369
+ /* Plan review (presentation intent): a decision, not an option list. */
2370
+ .plan-review {
2371
+ margin-top: 2px;
2372
+ }
2373
+
2374
+ .plan-review-strip {
2375
+ display: flex;
2376
+ align-items: center;
2377
+ gap: 7px;
2378
+ font-family: var(--font-mono);
2379
+ font-size: 9.5px;
2380
+ font-weight: 500;
2381
+ letter-spacing: 0.1em;
2382
+ text-transform: uppercase;
2383
+ color: var(--warn);
2384
+ }
2385
+
2386
+ .plan-review-dot {
2387
+ width: 7px;
2388
+ height: 7px;
2389
+ border-radius: 50%;
2390
+ background: var(--warn);
2391
+ }
2392
+
2393
+ .plan-review-title {
2394
+ margin: 10px 0 0;
2395
+ font-family: var(--font-serif);
2396
+ font-size: 17px;
2397
+ font-weight: 600;
2398
+ line-height: 1.4;
2399
+ letter-spacing: -0.005em;
2400
+ color: var(--text);
2401
+ overflow-wrap: anywhere;
2402
+ }
2403
+
2404
+ .plan-review-desc {
2405
+ margin: 6px 0 0;
2406
+ font-size: 13px;
2407
+ line-height: 1.55;
2408
+ color: var(--text-2);
2409
+ overflow-wrap: anywhere;
2410
+ }
2411
+
2412
+ .plan-review-toggle {
2413
+ margin-top: 10px;
2414
+ padding: 0;
2415
+ font-family: var(--font-mono);
2416
+ font-size: 10px;
2417
+ letter-spacing: 0.08em;
2418
+ text-transform: uppercase;
2419
+ color: var(--text-3);
2420
+ text-decoration: underline;
2421
+ text-underline-offset: 3px;
2422
+ }
2423
+
2424
+ .plan-review-plan {
2425
+ max-height: 44vh;
2426
+ margin-top: 10px;
2427
+ padding: 12px;
2428
+ overflow-y: auto;
2429
+ border: 1px solid var(--border);
2430
+ border-radius: var(--radius-s);
2431
+ background: var(--surface-2);
2432
+ font-size: 13px;
2433
+ line-height: 1.55;
2434
+ color: var(--text-2);
2435
+ -webkit-overflow-scrolling: touch;
2436
+ }
2437
+
2319
2438
  .question-waiting {
2320
2439
  display: flex;
2321
2440
  align-items: center;
@@ -2750,6 +2869,222 @@ button {
2750
2869
  padding: 2px calc(18px + var(--safe-r)) 30px calc(18px + var(--safe-l));
2751
2870
  }
2752
2871
 
2872
+ /* Subagents: a native Activity section, not a separate dashboard. */
2873
+ .subagents-panel {
2874
+ margin: 10px 12px 6px;
2875
+ border: 1px solid var(--border);
2876
+ border-radius: var(--radius-m);
2877
+ background: var(--surface-2);
2878
+ overflow: hidden;
2879
+ }
2880
+
2881
+ .subagents-head {
2882
+ display: flex;
2883
+ align-items: baseline;
2884
+ justify-content: space-between;
2885
+ gap: 10px;
2886
+ padding: 10px 12px 8px;
2887
+ }
2888
+
2889
+ .subagents-title {
2890
+ font-family: var(--font-mono);
2891
+ font-size: 9.5px;
2892
+ letter-spacing: 0.08em;
2893
+ text-transform: uppercase;
2894
+ color: var(--text-3);
2895
+ }
2896
+
2897
+ .subagents-meta {
2898
+ font-size: 11px;
2899
+ color: var(--text-4);
2900
+ }
2901
+
2902
+ .subagents-note {
2903
+ margin: 0;
2904
+ padding: 4px 14px 12px;
2905
+ font-size: 11.5px;
2906
+ line-height: 1.5;
2907
+ color: var(--text-4);
2908
+ }
2909
+
2910
+ .subagents-list {
2911
+ display: flex;
2912
+ flex-direction: column;
2913
+ }
2914
+
2915
+ .subagent-row {
2916
+ display: grid;
2917
+ grid-template-columns: 10px minmax(0, 1fr) auto 14px;
2918
+ align-items: center;
2919
+ gap: 10px;
2920
+ width: 100%;
2921
+ padding: 10px 12px;
2922
+ border: 0;
2923
+ border-top: 1px solid var(--border);
2924
+ background: transparent;
2925
+ text-align: left;
2926
+ cursor: pointer;
2927
+ }
2928
+
2929
+ .subagent-row:hover {
2930
+ background: var(--surface);
2931
+ }
2932
+
2933
+ .subagent-row.is-external {
2934
+ cursor: default;
2935
+ opacity: 0.72;
2936
+ }
2937
+
2938
+ .subagent-orb {
2939
+ width: 8px;
2940
+ height: 8px;
2941
+ border-radius: 50%;
2942
+ background: var(--text-4);
2943
+ }
2944
+
2945
+ .subagent-orb.is-running {
2946
+ background: var(--ok);
2947
+ box-shadow: 0 0 0 4px var(--ok-soft);
2948
+ animation: subagent-pulse 1.6s var(--ease-out) infinite;
2949
+ }
2950
+
2951
+ @keyframes subagent-pulse {
2952
+ 0%, 100% { box-shadow: 0 0 0 3px var(--ok-soft); }
2953
+ 50% { box-shadow: 0 0 0 6px transparent; }
2954
+ }
2955
+
2956
+ .subagent-main {
2957
+ display: grid;
2958
+ gap: 2px;
2959
+ min-width: 0;
2960
+ }
2961
+
2962
+ .subagent-name {
2963
+ font-size: 13.5px;
2964
+ line-height: 1.35;
2965
+ color: var(--text);
2966
+ overflow: hidden;
2967
+ text-overflow: ellipsis;
2968
+ white-space: nowrap;
2969
+ }
2970
+
2971
+ .subagent-sub {
2972
+ font-size: 11px;
2973
+ line-height: 1.4;
2974
+ color: var(--text-3);
2975
+ }
2976
+
2977
+ .subagent-status {
2978
+ padding: 2px 7px;
2979
+ border: 1px solid var(--border);
2980
+ border-radius: var(--radius-pill);
2981
+ font-family: var(--font-mono);
2982
+ font-size: 9px;
2983
+ letter-spacing: 0.03em;
2984
+ color: var(--text-3);
2985
+ white-space: nowrap;
2986
+ }
2987
+
2988
+ .subagent-status.is-running {
2989
+ border-color: var(--ok);
2990
+ color: var(--ok);
2991
+ background: var(--ok-soft);
2992
+ }
2993
+
2994
+ .subagent-status.is-idle {
2995
+ color: var(--text-3);
2996
+ }
2997
+
2998
+ .subagent-chevron {
2999
+ color: var(--text-4);
3000
+ }
3001
+
3002
+ .subagent-meta {
3003
+ display: flex;
3004
+ flex-wrap: wrap;
3005
+ gap: 4px 12px;
3006
+ padding: 0 14px 8px;
3007
+ font-size: 11.5px;
3008
+ color: var(--text-3);
3009
+ }
3010
+
3011
+ .subagent-transcript {
3012
+ display: flex;
3013
+ flex-direction: column;
3014
+ gap: 10px;
3015
+ padding: 4px 14px 20px;
3016
+ }
3017
+
3018
+ .subagent-msg {
3019
+ padding: 9px 11px;
3020
+ border: 1px solid var(--border);
3021
+ border-radius: var(--radius-s);
3022
+ font-size: 13.5px;
3023
+ line-height: 1.55;
3024
+ color: var(--text-2);
3025
+ overflow-wrap: anywhere;
3026
+ }
3027
+
3028
+ .subagent-msg.is-user {
3029
+ background: var(--surface-2);
3030
+ color: var(--text-3);
3031
+ }
3032
+
3033
+ .subagent-msg.is-assistant {
3034
+ background: var(--surface);
3035
+ }
3036
+
3037
+ .subagent-msg.is-assistant .md-p:last-child {
3038
+ margin-bottom: 0;
3039
+ }
3040
+
3041
+ .subagent-tool {
3042
+ border: 1px solid var(--border);
3043
+ border-radius: var(--radius-s);
3044
+ background: var(--surface);
3045
+ overflow: hidden;
3046
+ }
3047
+
3048
+ .subagent-tool-head {
3049
+ display: flex;
3050
+ align-items: center;
3051
+ justify-content: space-between;
3052
+ gap: 10px;
3053
+ padding: 9px 11px;
3054
+ cursor: pointer;
3055
+ list-style: none;
3056
+ }
3057
+
3058
+ .subagent-tool-head::-webkit-details-marker {
3059
+ display: none;
3060
+ }
3061
+
3062
+ .subagent-tool-name {
3063
+ font-family: var(--font-mono);
3064
+ font-size: 11px;
3065
+ color: var(--text-2);
3066
+ overflow: hidden;
3067
+ text-overflow: ellipsis;
3068
+ white-space: nowrap;
3069
+ }
3070
+
3071
+ .subagent-tool-state {
3072
+ font-size: 10.5px;
3073
+ color: var(--text-4);
3074
+ }
3075
+
3076
+ .subagent-tool-output {
3077
+ max-height: 240px;
3078
+ margin: 0;
3079
+ padding: 0 11px 11px;
3080
+ overflow: auto;
3081
+ font-family: var(--font-mono);
3082
+ font-size: 11px;
3083
+ line-height: 1.5;
3084
+ color: var(--text-3);
3085
+ white-space: pre-wrap;
3086
+ }
3087
+
2753
3088
  .act {
2754
3089
  position: relative;
2755
3090
  display: grid;
@@ -2984,6 +3319,13 @@ button {
2984
3319
  box-shadow var(--dur-2) var(--ease-out);
2985
3320
  }
2986
3321
 
3322
+ /* Drop target for files dragged onto the composer (desktop browsers). */
3323
+ .composer.is-dragover .composer-box {
3324
+ border-color: var(--text-4);
3325
+ background: var(--surface-2);
3326
+ box-shadow: inset 0 0 0 1px var(--text-4);
3327
+ }
3328
+
2987
3329
  .composer-box:focus-within {
2988
3330
  border-color: var(--text-4);
2989
3331
  box-shadow: var(--shadow-soft), 0 0 0 3px var(--pill-soft);
@@ -3093,7 +3435,7 @@ button {
3093
3435
  a wide chip can push the centre off. */
3094
3436
  .composer-meta {
3095
3437
  display: grid;
3096
- grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
3438
+ grid-template-columns: minmax(0, 1fr) auto;
3097
3439
  align-items: center;
3098
3440
  gap: 4px 10px;
3099
3441
  min-height: 16px;
@@ -3114,98 +3456,247 @@ button {
3114
3456
  text-overflow: ellipsis;
3115
3457
  }
3116
3458
 
3117
- .composer-note.is-running {
3118
- color: var(--text-2);
3459
+ .composer-note.is-running {
3460
+ color: var(--text-2);
3461
+ }
3462
+
3463
+ .composer-right {
3464
+ grid-column: 2;
3465
+ display: flex;
3466
+ align-items: center;
3467
+ justify-content: flex-end;
3468
+ gap: 8px;
3469
+ min-width: 0;
3470
+ max-width: 100%;
3471
+ }
3472
+
3473
+ .composer-model {
3474
+ flex: 0 1 auto;
3475
+ min-width: 0;
3476
+ max-width: 100%;
3477
+ font-size: 10px;
3478
+ color: var(--text-4);
3479
+ white-space: nowrap;
3480
+ overflow: hidden;
3481
+ text-overflow: ellipsis;
3482
+ }
3483
+
3484
+ /* Context-window ring around the header menu button. The arc is decorative;
3485
+ the button's aria-describedby carries the full sentence. */
3486
+ .menu-ring {
3487
+ position: absolute;
3488
+ inset: 0;
3489
+ width: 100%;
3490
+ height: 100%;
3491
+ transform: rotate(-90deg);
3492
+ opacity: 0;
3493
+ pointer-events: none;
3494
+ transition: opacity var(--dur-2) var(--ease-out);
3495
+ }
3496
+
3497
+ .menu-ring.is-visible {
3498
+ opacity: 1;
3499
+ }
3500
+
3501
+ .menu-ring circle {
3502
+ fill: none;
3503
+ stroke-width: 2;
3504
+ stroke-linecap: round;
3505
+ }
3506
+
3507
+ .menu-ring-track {
3508
+ stroke: var(--border);
3509
+ }
3510
+
3511
+ .menu-ring-fill {
3512
+ stroke: var(--text-3);
3513
+ stroke-dasharray: 1;
3514
+ stroke-dashoffset: 1;
3515
+ transition: stroke-dashoffset var(--dur-3) var(--ease),
3516
+ stroke var(--dur-2) var(--ease-out);
3517
+ }
3518
+
3519
+ .menu-ring.is-high .menu-ring-fill {
3520
+ stroke: var(--warn);
3521
+ }
3522
+
3523
+ .menu-ring.is-estimated .menu-ring-fill {
3524
+ opacity: 0.62;
3525
+ }
3526
+
3527
+ #btn-menu .icon {
3528
+ position: relative;
3529
+ }
3530
+
3531
+ /* Slash-command autocomplete above the composer. */
3532
+ .composer-shell {
3533
+ position: relative;
3534
+ }
3535
+
3536
+ .command-suggest {
3537
+ position: absolute;
3538
+ left: 10px;
3539
+ right: 10px;
3540
+ bottom: calc(100% + 8px);
3541
+ z-index: 30;
3542
+ max-height: 240px;
3543
+ overflow-y: auto;
3544
+ padding: 4px;
3545
+ border: 1px solid var(--border);
3546
+ border-radius: var(--radius-m);
3547
+ background: var(--surface);
3548
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
3549
+ }
3550
+
3551
+ .command-suggest-list {
3552
+ display: grid;
3553
+ gap: 2px;
3554
+ }
3555
+
3556
+ .command-suggest-item {
3557
+ display: grid;
3558
+ gap: 1px;
3559
+ width: 100%;
3560
+ padding: 8px 10px;
3561
+ border: 0;
3562
+ border-radius: var(--radius-s);
3563
+ background: transparent;
3564
+ text-align: left;
3565
+ cursor: pointer;
3566
+ }
3567
+
3568
+ .command-suggest-item.is-active,
3569
+ .command-suggest-item:hover {
3570
+ background: var(--surface-2);
3571
+ }
3572
+
3573
+ .command-suggest-name {
3574
+ font-family: var(--font-mono);
3575
+ font-size: 12px;
3576
+ color: var(--text);
3577
+ }
3578
+
3579
+ .command-suggest-desc {
3580
+ font-size: 11.5px;
3581
+ line-height: 1.4;
3582
+ color: var(--text-3);
3583
+ }
3584
+
3585
+ /* "While you were away" recap bar above the transcript. */
3586
+ .away-recap {
3587
+ display: flex;
3588
+ align-items: center;
3589
+ gap: 8px;
3590
+ margin: 8px 12px 0;
3591
+ padding: 9px 10px 9px 12px;
3592
+ border: 1px solid var(--border);
3593
+ border-radius: var(--radius-m);
3594
+ background: var(--surface-2);
3595
+ }
3596
+
3597
+ .away-recap-text {
3598
+ flex: 1;
3599
+ min-width: 0;
3600
+ font-size: 12px;
3601
+ line-height: 1.45;
3602
+ color: var(--text-2);
3603
+ }
3604
+
3605
+ .away-recap .btn {
3606
+ flex: none;
3607
+ padding: 5px 10px;
3608
+ font-size: 12px;
3609
+ }
3610
+
3611
+ .away-recap-dismiss {
3612
+ flex: none;
3613
+ width: 26px;
3614
+ height: 26px;
3615
+ padding: 0;
3616
+ border: 0;
3617
+ background: transparent;
3618
+ color: var(--text-3);
3619
+ font-size: 18px;
3620
+ line-height: 1;
3621
+ cursor: pointer;
3622
+ }
3623
+
3624
+ /* Risk chips on approval cards. */
3625
+ .risk-chip {
3626
+ display: inline-flex;
3627
+ align-items: center;
3628
+ align-self: flex-start;
3629
+ margin-top: 5px;
3630
+ padding: 2px 7px;
3631
+ border: 1px solid var(--border);
3632
+ border-radius: 999px;
3633
+ font-family: var(--font-mono);
3634
+ font-size: 9px;
3635
+ letter-spacing: 0.04em;
3636
+ text-transform: uppercase;
3637
+ color: var(--text-3);
3638
+ background: var(--surface-2);
3639
+ }
3640
+
3641
+ .risk-chip.is-danger {
3642
+ border-color: var(--danger-line);
3643
+ background: var(--danger-soft);
3644
+ color: var(--danger);
3645
+ }
3646
+
3647
+ .risk-chip.is-warn {
3648
+ border-color: var(--warn-line);
3649
+ background: var(--warn-soft);
3650
+ color: var(--warn);
3119
3651
  }
3120
3652
 
3121
- .composer-right {
3122
- grid-column: 3;
3123
- display: flex;
3124
- align-items: center;
3125
- justify-content: flex-end;
3126
- gap: 8px;
3127
- min-width: 0;
3128
- max-width: 100%;
3653
+ .risk-chip.is-note {
3654
+ color: var(--text-2);
3129
3655
  }
3130
3656
 
3131
- .composer-model {
3132
- flex: 0 1 auto;
3133
- min-width: 0;
3134
- max-width: 100%;
3135
- font-size: 10px;
3657
+ .risk-chip.is-info {
3136
3658
  color: var(--text-4);
3137
- white-space: nowrap;
3138
- overflow: hidden;
3139
- text-overflow: ellipsis;
3140
3659
  }
3141
3660
 
3142
- /* Context-window meter — compact, on the composer meta row under the input,
3143
- centred on the viewport. The track is decorative; the group's aria-label
3144
- carries the full sentence. Hidden when unknown. */
3145
- .context-meter {
3146
- grid-column: 2;
3147
- justify-self: center;
3148
- display: inline-flex;
3149
- align-items: center;
3661
+ /* Context sheet: a big reading plus a bar and actions. */
3662
+ .context-hero {
3663
+ display: grid;
3150
3664
  gap: 6px;
3151
- min-width: 0;
3152
- flex: none;
3153
- color: var(--text-4);
3665
+ padding: 6px 14px 16px;
3154
3666
  }
3155
3667
 
3156
- .context-label {
3157
- flex: none;
3668
+ .context-hero-value {
3158
3669
  font-family: var(--font-mono);
3159
- font-size: 10px;
3160
- font-variant-numeric: tabular-nums;
3161
- letter-spacing: -0.01em;
3162
- line-height: 1.4;
3163
- white-space: nowrap;
3670
+ font-size: 34px;
3671
+ line-height: 1.1;
3672
+ color: var(--text);
3164
3673
  }
3165
3674
 
3166
- .context-track {
3167
- flex: none;
3168
- width: 56px;
3169
- height: 3px;
3170
- border-radius: 2px;
3675
+ .context-hero-sub {
3676
+ font-size: 12.5px;
3677
+ color: var(--text-3);
3678
+ }
3679
+
3680
+ .context-hero-track {
3681
+ display: block;
3682
+ height: 6px;
3683
+ margin-top: 4px;
3684
+ border-radius: 3px;
3171
3685
  background: var(--surface-3);
3172
3686
  overflow: hidden;
3173
3687
  }
3174
3688
 
3175
- .context-fill {
3689
+ .context-hero-fill {
3176
3690
  display: block;
3177
- width: 0;
3178
3691
  height: 100%;
3179
- border-radius: 2px;
3692
+ border-radius: 3px;
3180
3693
  background: var(--text-3);
3181
- transition: width var(--dur-3) var(--ease);
3182
- }
3183
-
3184
- .context-est {
3185
- flex: none;
3186
- padding: 0 4px;
3187
- border: 1px solid var(--border);
3188
- border-radius: 999px;
3189
- font-family: var(--font-mono);
3190
- font-size: 8.5px;
3191
- line-height: 1.5;
3192
- letter-spacing: 0.04em;
3193
- color: var(--text-4);
3194
- }
3195
-
3196
- .context-meter.is-high {
3197
- color: var(--warn);
3198
3694
  }
3199
3695
 
3200
- .context-meter.is-high .context-fill {
3696
+ .context-hero-fill.is-high {
3201
3697
  background: var(--warn);
3202
3698
  }
3203
3699
 
3204
- .context-meter.is-high .context-est {
3205
- border-color: var(--warn-line);
3206
- color: var(--warn);
3207
- }
3208
-
3209
3700
  /* ---------- Prompt queue / archived banner / prompt mode ---------------- */
3210
3701
  .queue-strip {
3211
3702
  margin-bottom: 7px;
@@ -3891,6 +4382,14 @@ button {
3891
4382
  inset: -6px;
3892
4383
  }
3893
4384
 
4385
+ .attachment-retry {
4386
+ color: var(--text-2);
4387
+ }
4388
+
4389
+ .attachment-retry:active {
4390
+ background: var(--surface-2);
4391
+ }
4392
+
3894
4393
  .attachment-remove .icon {
3895
4394
  width: 15px;
3896
4395
  height: 15px;
@@ -4079,6 +4578,93 @@ button {
4079
4578
  color: var(--text-4);
4080
4579
  }
4081
4580
 
4581
+ /* Primary action docked at the bottom of a sheet (New session "Start session"). */
4582
+ .sheet-cta {
4583
+ display: grid;
4584
+ gap: 8px;
4585
+ }
4586
+
4587
+ .sheet-cta-hint {
4588
+ margin: 0;
4589
+ text-align: center;
4590
+ font-size: 11.5px;
4591
+ line-height: 1.4;
4592
+ color: var(--text-4);
4593
+ overflow: hidden;
4594
+ text-overflow: ellipsis;
4595
+ white-space: nowrap;
4596
+ }
4597
+
4598
+ .sheet-filters {
4599
+ display: flex;
4600
+ gap: 8px;
4601
+ margin: 8px 12px 2px;
4602
+ overflow-x: auto;
4603
+ padding-bottom: 2px;
4604
+ scrollbar-width: none;
4605
+ }
4606
+
4607
+ .sheet-filters::-webkit-scrollbar {
4608
+ display: none;
4609
+ }
4610
+
4611
+ .filter-chip {
4612
+ flex: none;
4613
+ padding: 6px 11px;
4614
+ border: 1px solid var(--border);
4615
+ border-radius: 999px;
4616
+ background: transparent;
4617
+ color: var(--text-3);
4618
+ font-family: var(--font-sans);
4619
+ font-size: 12px;
4620
+ line-height: 1.2;
4621
+ white-space: nowrap;
4622
+ cursor: pointer;
4623
+ }
4624
+
4625
+ .filter-chip.is-active {
4626
+ border-color: var(--text);
4627
+ background: var(--text);
4628
+ color: var(--bg);
4629
+ }
4630
+
4631
+ .filter-chip:focus-visible {
4632
+ outline: 2px solid var(--focus);
4633
+ outline-offset: 2px;
4634
+ }
4635
+
4636
+ .needs-section {
4637
+ margin: 4px 12px 10px;
4638
+ padding: 2px 0 10px;
4639
+ border-bottom: 1px solid var(--border);
4640
+ }
4641
+
4642
+ .needs-section .sheet-section {
4643
+ margin: 6px 0;
4644
+ }
4645
+
4646
+ .row.is-needs .row-icon {
4647
+ color: var(--warn);
4648
+ }
4649
+
4650
+ .row-tag.is-needs {
4651
+ background: var(--warn-soft);
4652
+ color: var(--warn);
4653
+ }
4654
+
4655
+ @keyframes needs-flash {
4656
+ 0% {
4657
+ background: var(--warn-soft);
4658
+ }
4659
+ 100% {
4660
+ background: transparent;
4661
+ }
4662
+ }
4663
+
4664
+ .is-attention {
4665
+ animation: needs-flash 1.4s var(--ease-out) 1;
4666
+ }
4667
+
4082
4668
  .sheet-section {
4083
4669
  margin: 18px 12px 6px;
4084
4670
  font-family: var(--font-mono);
@@ -4131,6 +4717,12 @@ button {
4131
4717
  white-space: nowrap;
4132
4718
  }
4133
4719
 
4720
+ .chip-row .chip.is-active {
4721
+ border-color: var(--text);
4722
+ background: var(--text);
4723
+ color: var(--bg);
4724
+ }
4725
+
4134
4726
  .sheet-divider {
4135
4727
  height: 1px;
4136
4728
  margin: 10px 12px;
@@ -4448,251 +5040,3 @@ button {
4448
5040
  opacity: 1;
4449
5041
  transform: translate(-50%, 0);
4450
5042
  }
4451
-
4452
- /* ---------- Hover polish (fine pointers only) ---------------------------- */
4453
- @media (hover: hover) and (pointer: fine) {
4454
- .iconbtn:hover {
4455
- background: var(--surface-2);
4456
- color: var(--text);
4457
- }
4458
-
4459
- .tab:hover {
4460
- color: var(--text-2);
4461
- }
4462
-
4463
- .tab.is-active:hover {
4464
- color: var(--text);
4465
- }
4466
-
4467
- .prompt-mode-btn:not(.is-active):hover {
4468
- background: var(--surface-3);
4469
- color: var(--text-3);
4470
- }
4471
-
4472
- .row:hover {
4473
- background: var(--surface-2);
4474
- }
4475
-
4476
- .chip:hover {
4477
- background: var(--surface-2);
4478
- border-color: var(--border-strong);
4479
- }
4480
-
4481
- .tool-head:hover {
4482
- background: var(--surface-2);
4483
- }
4484
-
4485
- .q-option:hover {
4486
- border-color: var(--border-strong);
4487
- background: var(--surface-2);
4488
- }
4489
-
4490
- .msg-action:hover,
4491
- .md-copy:hover {
4492
- color: var(--text);
4493
- background: var(--pill-soft);
4494
- }
4495
-
4496
- .send-btn:not([disabled]):hover {
4497
- opacity: 0.9;
4498
- }
4499
-
4500
- .attach-btn:not([disabled]):hover,
4501
- .attachment-remove:hover {
4502
- background: var(--surface-2);
4503
- color: var(--text);
4504
- }
4505
- }
4506
-
4507
- /* ---------- Responsive details ------------------------------------------ */
4508
- @media (max-width: 380px) {
4509
- :root {
4510
- --prose-size: 17px;
4511
- }
4512
-
4513
- .messages {
4514
- padding-left: calc(16px + var(--safe-l));
4515
- padding-right: calc(16px + var(--safe-r));
4516
- }
4517
-
4518
- .activity-list {
4519
- padding-left: calc(14px + var(--safe-l));
4520
- padding-right: calc(14px + var(--safe-r));
4521
- }
4522
-
4523
- .activity-bar {
4524
- padding-left: calc(14px + var(--safe-l));
4525
- padding-right: calc(14px + var(--safe-r));
4526
- }
4527
-
4528
- .pair-title {
4529
- font-size: 31px;
4530
- }
4531
-
4532
- .pin-slot {
4533
- height: 60px;
4534
- font-size: 23px;
4535
- }
4536
-
4537
- .pin-slots {
4538
- gap: 8px;
4539
- }
4540
-
4541
- .tab {
4542
- min-width: 96px;
4543
- }
4544
-
4545
- /* Keep the meta row on one line on the narrowest phones: a shorter track
4546
- leaves room for the note and the model chip while the meter stays centred. */
4547
- .composer-meta {
4548
- gap: 4px 8px;
4549
- padding-left: 8px;
4550
- padding-right: 8px;
4551
- }
4552
-
4553
- .context-track {
4554
- width: 40px;
4555
- }
4556
-
4557
- /* While a run is live the right cluster shows Queue/Steer next to the same
4558
- centred meter; drop the decorative track (the numbers stay) so the cluster
4559
- still fits inside its side track and the meter stays on centre. */
4560
- .composer-meta.has-mode .context-track {
4561
- display: none;
4562
- }
4563
-
4564
- .prompt-mode-btn {
4565
- padding: 0 7px;
4566
- font-size: 10px;
4567
- }
4568
- }
4569
-
4570
- @media (min-height: 900px) {
4571
- .messages {
4572
- gap: 24px;
4573
- }
4574
- }
4575
-
4576
- @media (max-height: 560px) {
4577
- .pairing {
4578
- justify-content: flex-start;
4579
- padding-top: calc(20px + var(--safe-t));
4580
- }
4581
-
4582
- .pairing-card {
4583
- margin: 0 auto;
4584
- }
4585
-
4586
- .pairing-foot {
4587
- margin-top: 24px;
4588
- }
4589
-
4590
- .brand .logo-mark {
4591
- margin-bottom: 14px;
4592
- }
4593
-
4594
- .pair-form {
4595
- margin-top: 20px;
4596
- }
4597
-
4598
- .pin-slot {
4599
- height: 54px;
4600
- }
4601
- }
4602
-
4603
- /* ---------- Reduced motion ----------------------------------------------- */
4604
- @media (prefers-reduced-motion: reduce) {
4605
- *,
4606
- *::before,
4607
- *::after {
4608
- animation-duration: 0.01ms !important;
4609
- animation-iteration-count: 1 !important;
4610
- transition-duration: 0.01ms !important;
4611
- scroll-behavior: auto !important;
4612
- }
4613
-
4614
- .cursor {
4615
- opacity: 0.6;
4616
- }
4617
-
4618
- .msg {
4619
- animation: none;
4620
- }
4621
-
4622
- .tool-body,
4623
- .act-body {
4624
- transition: none;
4625
- }
4626
- }
4627
-
4628
- .question-session {
4629
- display: flex;
4630
- align-items: center;
4631
- gap: 10px;
4632
- margin: 0 0 10px;
4633
- font-size: 12px;
4634
- color: var(--text);
4635
- opacity: 0.6;
4636
- }
4637
-
4638
- .question-session .btn {
4639
- padding: 5px 10px;
4640
- font-size: 12px;
4641
- }
4642
-
4643
- .session-notice {
4644
- grid-row: 3;
4645
- display: flex;
4646
- align-items: center;
4647
- gap: 10px;
4648
- margin: 0 calc(14px + var(--safe-r)) 6px calc(14px + var(--safe-l));
4649
- padding: 7px 8px 7px 12px;
4650
- border-radius: var(--radius-m);
4651
- border: 1px solid var(--warn-line, rgba(138, 90, 31, 0.28));
4652
- background: var(--warn-soft, rgba(138, 90, 31, 0.08));
4653
- color: var(--text);
4654
- font-size: 12.5px;
4655
- line-height: 1.4;
4656
- }
4657
-
4658
- .session-notice-text {
4659
- flex: 1 1 auto;
4660
- min-width: 0;
4661
- overflow-wrap: anywhere;
4662
- word-break: break-word;
4663
- }
4664
- .session-notice .btn { flex: 0 0 auto; padding: 5px 10px; font-size: 12px; }
4665
-
4666
- /* ---------- Horizontal overflow hardening -------------------------------- */
4667
- /* The single app column must never be sized by a child's min-content (a
4668
- textarea's intrinsic width, a nowrap tool title, a wide change card), or a
4669
- narrow phone clips the right edge of the chat and the composer. */
4670
- .app {
4671
- grid-template-columns: minmax(0, 1fr);
4672
- }
4673
-
4674
- .app > * {
4675
- min-width: 0;
4676
- }
4677
-
4678
- .composer,
4679
- .composer-shell,
4680
- .composer-box,
4681
- .composer-meta,
4682
- .composer-input,
4683
- .messages,
4684
- .msg,
4685
- .msg-assistant,
4686
- .md,
4687
- .tool,
4688
- .changes-panel,
4689
- .activity-list,
4690
- .queue-strip,
4691
- .archived-banner {
4692
- min-width: 0;
4693
- max-width: 100%;
4694
- }
4695
-
4696
- .composer-input {
4697
- flex: 1 1 0;
4698
- }