@picassohq/cli 1.0.9 → 1.0.10
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/build-info.json +1 -1
- package/dist/index.js +1247 -1247
- package/package.json +1 -1
- package/runtime/relay/main.mjs +678 -128
- package/runtime/relay/remote/index.html +2 -1
- package/runtime/relay/remote/remote.css +293 -91
- package/runtime/relay/remote/remote.js +624 -77
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
6
6
|
<meta name="color-scheme" content="light dark">
|
|
7
|
-
<meta name="theme-color" content="#F7F6F2">
|
|
7
|
+
<meta name="theme-color" content="#F7F6F2" media="(prefers-color-scheme: light)">
|
|
8
|
+
<meta name="theme-color" content="#1B1C1A" media="(prefers-color-scheme: dark)">
|
|
8
9
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
9
10
|
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
|
10
11
|
<meta name="referrer" content="no-referrer">
|
|
@@ -1,19 +1,26 @@
|
|
|
1
|
-
/* Remote Control web client (served as /remote/remote.css).
|
|
2
|
-
|
|
1
|
+
/* Remote Control web client (served as /remote/remote.css). Picasso house style, the same sage tokens as the companion
|
|
2
|
+
(src/companion/companion.css) and the Mac app: 14 px reading text, 13 px rows, 12 px meta, Regular and Medium
|
|
3
|
+
weights (Semibold for the one screen title), hairlines. Phone first: 44 px tap targets, safe areas, a composer that
|
|
4
|
+
rides above the keyboard, 16 px inputs on touch screens so iOS Safari never zooms. No inline styles (CSP). */
|
|
3
5
|
:root {
|
|
4
6
|
color-scheme: light dark;
|
|
5
7
|
--stage: #F7F6F2; --card: #FFFFFF; --ink: #2B2C29; --muted: #6E726E; --faint: #9CA19B;
|
|
6
|
-
--rule: #E6E6E0; --wash: #F1F3F0; --accent: #4F7D68; --accent-ink: #FFFFFF; --accent-wash: #E9F0EC;
|
|
8
|
+
--rule: #E6E6E0; --rule-strong: #D6D7D0; --wash: #F1F3F0; --accent: #4F7D68; --accent-ink: #FFFFFF; --accent-wash: #E9F0EC;
|
|
7
9
|
--cyan: #3E8FA8; --amber: #B07A2A; --danger: #B84A3C; --ok: #4F7D68;
|
|
8
10
|
--warn-bg: #FBF3E4; --warn-ink: #7A5316; --err-bg: #FBEBE8;
|
|
9
|
-
--
|
|
11
|
+
--bubble: #E4EDE7; --code-bg: #F4F4F0; --link: #3F7360; --scrim: rgba(27, 28, 26, .32);
|
|
12
|
+
--shadow: 0 1px 2px rgba(43, 44, 41, .06), 0 4px 16px rgba(43, 44, 41, .08);
|
|
13
|
+
--row: 34px; --control: 32px; --pad: 16px; --input: 14px; --tap: 44px;
|
|
14
|
+
--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
|
|
10
15
|
}
|
|
11
16
|
@media (prefers-color-scheme: dark) {
|
|
12
17
|
:root {
|
|
13
18
|
--stage: #1B1C1A; --card: #232522; --ink: #E7E7E2; --muted: #A3A7A2; --faint: #777B76;
|
|
14
|
-
--rule: #33352F; --wash: #2A2C28; --accent: #6FA28A; --accent-ink: #10130F; --accent-wash: #26332C;
|
|
19
|
+
--rule: #33352F; --rule-strong: #43463F; --wash: #2A2C28; --accent: #6FA28A; --accent-ink: #10130F; --accent-wash: #26332C;
|
|
15
20
|
--cyan: #6FB5CB; --amber: #D3A05A; --danger: #E07A6C; --ok: #6FA28A;
|
|
16
21
|
--warn-bg: #3A2F1C; --warn-ink: #E8C88E; --err-bg: #3D2522;
|
|
22
|
+
--bubble: #2C3A32; --code-bg: #1F201E; --link: #8CC0A6; --scrim: rgba(0, 0, 0, .5);
|
|
23
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .35);
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
26
|
@media (pointer: coarse) { :root { --input: 16px; } }
|
|
@@ -21,11 +28,18 @@
|
|
|
21
28
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
22
29
|
html { -webkit-text-size-adjust: 100%; height: 100%; }
|
|
23
30
|
body {
|
|
24
|
-
font:
|
|
31
|
+
font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
|
|
25
32
|
background: var(--stage); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100%;
|
|
33
|
+
-webkit-tap-highlight-color: transparent;
|
|
26
34
|
}
|
|
27
35
|
[hidden] { display: none !important; }
|
|
28
36
|
button, input, textarea { font: inherit; color: inherit; }
|
|
37
|
+
button { cursor: pointer; touch-action: manipulation; }
|
|
38
|
+
svg { display: block; }
|
|
39
|
+
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
40
|
+
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
41
|
+
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
|
|
42
|
+
|
|
29
43
|
/* The page before remote.js runs, and the screen a startup failure paints (never a blank page). */
|
|
30
44
|
.boot { max-width: 380px; width: 100%; margin: 0 auto; padding: calc(30vh + env(safe-area-inset-top)) 16px 24px; text-align: center; }
|
|
31
45
|
.boot-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
|
|
@@ -33,129 +47,317 @@ button, input, textarea { font: inherit; color: inherit; }
|
|
|
33
47
|
.boot-late { margin-top: 16px; font-size: 12px; color: var(--muted); opacity: 0; animation: boot-late 0s linear 6s forwards; }
|
|
34
48
|
.boot-err { margin-top: 16px; padding: 8px 10px; border-radius: 8px; font-size: 12px; background: var(--err-bg); color: var(--danger); text-align: left; }
|
|
35
49
|
@keyframes boot-late { to { opacity: 1; } }
|
|
36
|
-
.fatal pre { margin-top: 8px; font: 12px/1.4
|
|
50
|
+
.fatal pre { margin-top: 8px; font: 12px/1.4 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
|
|
37
51
|
|
|
52
|
+
/* ---------- app shell ----------
|
|
53
|
+
Signed in, the app is a fixed column the size of the visual viewport (remote.js sets --app-h/--app-top from
|
|
54
|
+
visualViewport), so the header stays on top and the composer sits right above the iOS keyboard. */
|
|
38
55
|
#app { display: flex; flex-direction: column; min-height: 100dvh; }
|
|
56
|
+
body.screen-threads, body.screen-thread, body.screen-needs { overflow: hidden; overscroll-behavior: none; }
|
|
57
|
+
body.screen-threads #app, body.screen-thread #app, body.screen-needs #app {
|
|
58
|
+
position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100dvh); min-height: 0; overflow: hidden;
|
|
59
|
+
}
|
|
39
60
|
|
|
40
61
|
/* ---------- header ---------- */
|
|
41
62
|
header.bar {
|
|
42
|
-
|
|
43
|
-
min-height:
|
|
44
|
-
|
|
45
|
-
|
|
63
|
+
flex: none; position: relative; z-index: 5; display: flex; align-items: center; gap: 2px;
|
|
64
|
+
min-height: calc(52px + env(safe-area-inset-top));
|
|
65
|
+
padding: env(safe-area-inset-top) calc(4px + env(safe-area-inset-right)) 0 calc(4px + env(safe-area-inset-left));
|
|
66
|
+
background: color-mix(in srgb, var(--stage) 90%, transparent);
|
|
67
|
+
backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
|
|
46
68
|
border-bottom: 1px solid var(--rule);
|
|
47
69
|
}
|
|
48
|
-
header.bar .who { flex: 1; min-width: 0; }
|
|
49
|
-
header.bar
|
|
50
|
-
header.bar .
|
|
51
|
-
.conn { display: inline-flex; align-items: center; gap:
|
|
52
|
-
.conn::before { content: ""; width:
|
|
53
|
-
.conn.live::before { background: var(--ok); }
|
|
54
|
-
.conn.reconnecting::before { background: var(--amber); }
|
|
55
|
-
|
|
56
|
-
|
|
70
|
+
header.bar .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 12px; }
|
|
71
|
+
header.bar #back:not([hidden]) + .who { padding-left: 0; }
|
|
72
|
+
header.bar .title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
73
|
+
.conn { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
|
|
74
|
+
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
|
|
75
|
+
.conn.live::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
|
|
76
|
+
.conn.reconnecting::before { background: var(--amber); animation: pulse 1.2s ease-in-out infinite; }
|
|
77
|
+
|
|
78
|
+
.iconbtn { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 12px;
|
|
79
|
+
background: transparent; color: var(--ink); }
|
|
80
|
+
.iconbtn svg { width: 22px; height: 22px; }
|
|
81
|
+
.iconbtn:active { background: var(--wash); }
|
|
82
|
+
#back svg { width: 24px; height: 24px; color: var(--accent); }
|
|
83
|
+
|
|
84
|
+
.needsbtn { flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 4px 2px;
|
|
85
|
+
padding: 0 12px 0 10px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); color: var(--muted);
|
|
86
|
+
font-size: 13px; font-weight: 500; white-space: nowrap; }
|
|
87
|
+
.needsbtn::before { content: ""; position: absolute; inset: -4px -2px; }
|
|
88
|
+
.needsbtn svg { width: 18px; height: 18px; }
|
|
89
|
+
.needsbtn.has { border-color: color-mix(in srgb, var(--amber) 45%, var(--rule)); background: color-mix(in srgb, var(--amber) 12%, var(--card)); color: var(--warn-ink); }
|
|
90
|
+
.needsbtn.on { border-color: var(--ink); color: var(--ink); }
|
|
91
|
+
.badge { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 10px;
|
|
92
|
+
background: var(--amber); color: #fff; font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
|
|
93
|
+
@media (prefers-color-scheme: dark) { .badge { color: #1B1C1A; } .needsbtn.has { color: var(--amber); } }
|
|
94
|
+
@media (max-width: 370px) { .needsbtn:not(.has) .nlbl, .needsbtn.has .nlbl { display: none; } .needsbtn { padding: 0 10px; } }
|
|
95
|
+
|
|
96
|
+
/* ---------- the device sheet (name, connection, permissions, sign out) ---------- */
|
|
97
|
+
.sheetwrap { position: fixed; inset: 0; z-index: 30; }
|
|
98
|
+
.scrim { position: absolute; inset: 0; background: var(--scrim); animation: fade .18s ease-out; }
|
|
99
|
+
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 85dvh; overflow-y: auto;
|
|
100
|
+
background: var(--card); border-radius: 18px 18px 0 0; box-shadow: var(--shadow);
|
|
101
|
+
padding: 6px calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
|
|
102
|
+
display: flex; flex-direction: column; gap: 10px; animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
|
|
103
|
+
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--rule-strong); margin: 0 auto 6px; }
|
|
104
|
+
.sheet-h { font-size: 17px; font-weight: 600; }
|
|
105
|
+
.sheet-sub { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 6px; }
|
|
106
|
+
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--tap); border-bottom: 1px solid var(--rule); font-size: 14px; }
|
|
107
|
+
.kv .k { color: var(--muted); flex: none; }
|
|
108
|
+
.kv .v { min-width: 0; text-align: right; overflow-wrap: anywhere; }
|
|
109
|
+
.perms { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
|
|
110
|
+
.perms li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; font-size: 14px; }
|
|
111
|
+
.perms li + li { border-top: 1px solid var(--rule); }
|
|
112
|
+
.perms li.no { color: var(--faint); }
|
|
113
|
+
.pm { flex: none; position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
|
|
114
|
+
.pm::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
|
|
115
|
+
.perms li.no .pm { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
|
|
116
|
+
.perms li.no .pm::after { left: 4px; top: 8px; width: 10px; height: 0; border-width: 0 0 1.5px; border-color: var(--faint); transform: none; }
|
|
117
|
+
@media (min-width: 900px) {
|
|
118
|
+
.sheet { left: auto; right: 12px; bottom: auto; top: 60px; width: 360px; border-radius: 14px; padding: 14px 16px 16px; animation: fade .15s ease-out; }
|
|
119
|
+
.grab { display: none; }
|
|
120
|
+
}
|
|
57
121
|
|
|
58
122
|
/* ---------- controls ---------- */
|
|
59
|
-
.btn {
|
|
60
|
-
|
|
61
|
-
|
|
123
|
+
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px;
|
|
124
|
+
padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card); color: var(--ink);
|
|
125
|
+
font-size: 13px; font-weight: 500; white-space: nowrap; }
|
|
126
|
+
.btn svg { width: 16px; height: 16px; }
|
|
62
127
|
.btn:active { background: var(--wash); }
|
|
63
128
|
.btn.acc { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
|
|
64
|
-
.btn.
|
|
129
|
+
.btn.acc:active { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
|
|
130
|
+
.btn.warn, .btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--rule)); }
|
|
65
131
|
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
|
|
66
132
|
.btn.on { background: var(--wash); color: var(--ink); }
|
|
67
133
|
.btn[disabled] { opacity: .45; cursor: default; }
|
|
68
|
-
@media (pointer: coarse) { .btn { height:
|
|
134
|
+
@media (pointer: coarse) { .btn { height: var(--tap); } }
|
|
69
135
|
|
|
70
136
|
/* ---------- panes ---------- */
|
|
71
137
|
.panes { flex: 1; display: flex; min-height: 0; }
|
|
72
|
-
#listpane { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
73
|
-
#mainpane { flex: 1; min-width: 0; display: none; flex-direction: column; }
|
|
138
|
+
#listpane { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
|
|
139
|
+
#mainpane { flex: 1; min-width: 0; min-height: 0; display: none; flex-direction: column; }
|
|
74
140
|
body.screen-thread #listpane, body.screen-needs #listpane { display: none; }
|
|
75
141
|
body.screen-thread #mainpane, body.screen-needs #mainpane { display: flex; }
|
|
76
142
|
@media (min-width: 900px) {
|
|
77
|
-
#listpane { flex: 0 0 340px; display: flex !important; border-right: 1px solid var(--rule);
|
|
143
|
+
#listpane { flex: 0 0 340px; display: flex !important; border-right: 1px solid var(--rule); }
|
|
78
144
|
#mainpane { display: flex !important; }
|
|
79
145
|
#back { display: none; }
|
|
146
|
+
header.bar #back + .who, header.bar #back:not([hidden]) + .who { padding-left: 12px; }
|
|
80
147
|
}
|
|
81
|
-
.listhead { display: flex; align-items: center; gap:
|
|
82
|
-
.listhead .lbl { flex: 1; font-size:
|
|
148
|
+
.listhead { display: flex; align-items: center; gap: 8px; padding: 14px calc(var(--pad) + env(safe-area-inset-right)) 6px calc(var(--pad) + env(safe-area-inset-left)); }
|
|
149
|
+
.listhead .lbl { flex: 1; font-size: 13px; font-weight: 500; color: var(--muted); }
|
|
150
|
+
.newbtn { padding: 0 12px 0 10px; border-radius: 18px; color: var(--accent); }
|
|
83
151
|
|
|
84
|
-
.list { padding: 0 0 calc(
|
|
85
|
-
.row { display: flex; align-items:
|
|
86
|
-
|
|
152
|
+
.list { padding: 0 0 calc(16px + env(safe-area-inset-bottom)); }
|
|
153
|
+
.row { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 64px; cursor: pointer;
|
|
154
|
+
padding: 12px calc(var(--pad) + env(safe-area-inset-right)) 12px calc(var(--pad) + env(safe-area-inset-left)); }
|
|
155
|
+
.row::after { content: ""; position: absolute; left: calc(var(--pad) + 20px + env(safe-area-inset-left)); right: 0; bottom: 0; height: 1px; background: var(--rule); }
|
|
156
|
+
.row:last-child::after { display: none; }
|
|
87
157
|
.row:active, .row.sel { background: var(--wash); }
|
|
88
|
-
.mark { flex: none; width: 8px; height: 8px; border-radius: 50%; }
|
|
89
|
-
.mark.run { background: var(--cyan); }
|
|
90
|
-
.mark.
|
|
158
|
+
.mark { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
|
|
159
|
+
.mark.run { background: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 20%, transparent); animation: pulse 1.6s ease-in-out infinite; }
|
|
160
|
+
.mark.wait { background: var(--amber); border-radius: 2px; transform: rotate(45deg); }
|
|
91
161
|
.mark.idle { box-shadow: inset 0 0 0 1.5px var(--faint); }
|
|
92
|
-
.row .t { flex: 1; min-width: 0; }
|
|
93
|
-
.row .
|
|
94
|
-
.row .
|
|
95
|
-
.row .
|
|
96
|
-
.row .
|
|
162
|
+
.row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
163
|
+
.row .r1 { display: flex; align-items: baseline; gap: 10px; }
|
|
164
|
+
.row .l1 { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
165
|
+
.row .when { flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
|
|
166
|
+
.row .l2 { font-size: 13px; line-height: 1.4; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
|
|
167
|
+
.row .l2.live { color: var(--cyan); -webkit-line-clamp: 1; }
|
|
168
|
+
.row .r3 { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
|
|
169
|
+
.chip { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 500; }
|
|
170
|
+
.chip.run { background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan); }
|
|
171
|
+
.chip.wait { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--warn-ink); }
|
|
172
|
+
@media (prefers-color-scheme: dark) { .chip.wait { color: var(--amber); } }
|
|
173
|
+
.row .folder { min-width: 0; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
97
174
|
|
|
98
|
-
.empty { padding:
|
|
99
|
-
.empty .big { font-size:
|
|
175
|
+
.empty { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 13px; }
|
|
176
|
+
.empty .big { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
|
|
177
|
+
#placeholder { margin: auto; }
|
|
100
178
|
|
|
101
179
|
/* ---------- thread ---------- */
|
|
102
|
-
.
|
|
180
|
+
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
181
|
+
.thead { flex: none; display: flex; align-items: center; gap: 10px; min-height: 56px;
|
|
182
|
+
padding: 6px calc(var(--pad) + env(safe-area-inset-right)) 6px calc(var(--pad) + env(safe-area-inset-left)); border-bottom: 1px solid var(--rule); }
|
|
103
183
|
.thead .tt { flex: 1; min-width: 0; }
|
|
104
|
-
.thead .tt .l1 { font-size:
|
|
184
|
+
.thead .tt .l1 { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
105
185
|
.thead .tt .l2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
106
|
-
.
|
|
107
|
-
.
|
|
108
|
-
|
|
109
|
-
.
|
|
110
|
-
.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
.
|
|
114
|
-
.
|
|
115
|
-
|
|
116
|
-
.
|
|
117
|
-
.
|
|
118
|
-
|
|
119
|
-
.
|
|
120
|
-
.
|
|
121
|
-
.
|
|
122
|
-
|
|
123
|
-
.
|
|
124
|
-
|
|
125
|
-
.
|
|
126
|
-
.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
.
|
|
130
|
-
.
|
|
131
|
-
.
|
|
132
|
-
.
|
|
133
|
-
.
|
|
134
|
-
|
|
186
|
+
.stopbtn { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--rule)); border-radius: 22px; padding: 0 14px 0 12px; }
|
|
187
|
+
.stopbtn svg { width: 14px; height: 14px; }
|
|
188
|
+
|
|
189
|
+
.feedwrap { flex: 1; min-height: 0; position: relative; }
|
|
190
|
+
.feed { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
|
|
191
|
+
display: flex; flex-direction: column; gap: 14px; overflow-wrap: break-word;
|
|
192
|
+
padding: 16px max(calc(var(--pad) + env(safe-area-inset-right)), calc((100% - 760px) / 2)) 24px max(calc(var(--pad) + env(safe-area-inset-left)), calc((100% - 760px) / 2)); }
|
|
193
|
+
.feed > * { flex: none; min-width: 0; }
|
|
194
|
+
.earlier { align-self: center; }
|
|
195
|
+
|
|
196
|
+
.msg { min-width: 0; }
|
|
197
|
+
.msg.user { align-self: flex-end; max-width: min(85%, 600px); padding: 9px 14px; border-radius: 18px 18px 6px 18px;
|
|
198
|
+
background: var(--bubble); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
199
|
+
.msg.bot { color: var(--ink); }
|
|
200
|
+
.msg.note { align-self: center; max-width: 100%; text-align: center; color: var(--faint); font-size: 12px; overflow-wrap: anywhere; }
|
|
201
|
+
.msg.working { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 13px; }
|
|
202
|
+
.dots { display: inline-flex; gap: 3px; }
|
|
203
|
+
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite ease-in-out; }
|
|
204
|
+
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
|
|
205
|
+
.turnsep { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
|
|
206
|
+
.turnsep::before, .turnsep::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
|
|
207
|
+
|
|
208
|
+
/* Tool calls and thinking: one compact line each, open for detail. */
|
|
209
|
+
.tool, .steps { border-radius: 12px; background: var(--wash); font-size: 13px; }
|
|
210
|
+
.tline { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px; list-style: none; }
|
|
211
|
+
summary.tline { cursor: pointer; }
|
|
212
|
+
summary.tline::-webkit-details-marker, .think > summary::-webkit-details-marker { display: none; }
|
|
213
|
+
summary.tline::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px 3px 2px; border: solid var(--faint); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
|
|
214
|
+
details[open] > summary.tline::after { transform: rotate(-135deg); margin-bottom: -3px; }
|
|
215
|
+
.ti { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
|
|
216
|
+
.ti.run { background: var(--cyan); animation: pulse 1.2s ease-in-out infinite; }
|
|
217
|
+
.ti.ok { background: var(--ok); } .ti.fail { background: var(--danger); }
|
|
218
|
+
.tline .name { flex: none; max-width: 50%; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
219
|
+
.tline .target { flex: 1; min-width: 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 12px/1.4 var(--mono); }
|
|
220
|
+
.tline .st, .tline .smeta { flex: none; font-size: 12px; color: var(--muted); }
|
|
221
|
+
.tline .st.run { color: var(--cyan); } .tline .st.fail, .tline .smeta.fail { color: var(--danger); }
|
|
222
|
+
.tline .st.ok { color: var(--faint); }
|
|
223
|
+
.prev { margin: 0 12px 12px; padding: 8px 10px; max-height: 260px; overflow: auto; border-radius: 8px; background: var(--card);
|
|
224
|
+
font: 12px/1.5 var(--mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
225
|
+
.steplist { display: flex; flex-direction: column; padding: 0 0 4px 12px; }
|
|
226
|
+
.steplist .tool { background: transparent; border-radius: 0; border-top: 1px solid var(--rule); }
|
|
227
|
+
.steplist .tline { padding-left: 4px; }
|
|
228
|
+
|
|
229
|
+
details.think { color: var(--muted); font-size: 13px; }
|
|
230
|
+
.think > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding-right: 8px; list-style: none; cursor: pointer; font-weight: 500; }
|
|
231
|
+
.think > summary::before { content: ""; width: 6px; height: 6px; border: solid var(--faint); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; }
|
|
232
|
+
.think[open] > summary::before { transform: rotate(45deg); }
|
|
233
|
+
.think.live > summary { color: var(--cyan); }
|
|
234
|
+
.think > .md { font-size: 13px; color: var(--muted); padding: 2px 0 4px 12px; border-left: 2px solid var(--rule); }
|
|
235
|
+
|
|
236
|
+
/* Needs you: an approval or a question. */
|
|
237
|
+
.need { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card);
|
|
238
|
+
border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--rule)); box-shadow: var(--shadow); }
|
|
239
|
+
.need .kind { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--amber); }
|
|
240
|
+
.need .kind::before { content: ""; width: 7px; height: 7px; border-radius: 1.5px; background: var(--amber); transform: rotate(45deg); }
|
|
241
|
+
.need .what { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
|
|
242
|
+
.need .why { padding: 8px 10px; border-radius: 8px; background: var(--code-bg); font: 12px/1.5 var(--mono); color: var(--ink);
|
|
243
|
+
white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow-y: auto; }
|
|
244
|
+
.need .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
245
|
+
.need .acts .btn { width: 100%; }
|
|
246
|
+
.need .acts .btn.acc, .need .acts .btn.quiet { grid-column: 1 / -1; }
|
|
247
|
+
@media (min-width: 600px) { .need .acts { grid-template-columns: repeat(3, auto); justify-content: start; } .need .acts .btn.acc, .need .acts .btn.quiet { grid-column: auto; } }
|
|
248
|
+
.need .q { display: flex; flex-direction: column; gap: 8px; }
|
|
249
|
+
.need .q + .q { border-top: 1px solid var(--rule); padding-top: 10px; }
|
|
250
|
+
.need .q .hdr { font-size: 12px; font-weight: 500; color: var(--muted); }
|
|
251
|
+
.need .q .qt { font-size: 14px; font-weight: 500; }
|
|
252
|
+
.opt { display: flex; gap: 10px; align-items: center; min-height: var(--tap); padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; }
|
|
253
|
+
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
|
|
254
|
+
.opt input { flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
|
|
255
|
+
.opt .d { display: block; color: var(--muted); font-size: 12px; }
|
|
135
256
|
.fine { font-size: 12px; color: var(--faint); }
|
|
257
|
+
.need .where { margin-top: -2px; }
|
|
258
|
+
|
|
259
|
+
/* Jump to latest */
|
|
260
|
+
.jump { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px;
|
|
261
|
+
height: 36px; padding: 0 14px 0 12px; border-radius: 18px; border: 1px solid var(--rule); background: var(--card); color: var(--ink);
|
|
262
|
+
box-shadow: var(--shadow); font-size: 13px; font-weight: 500; animation: fade .15s ease-out; }
|
|
263
|
+
.jump::before { content: ""; position: absolute; inset: -4px; }
|
|
264
|
+
.jump svg { width: 16px; height: 16px; color: var(--accent); }
|
|
136
265
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
266
|
+
/* Composer */
|
|
267
|
+
.composer { flex: none; display: flex; gap: 8px; align-items: flex-end;
|
|
268
|
+
padding: 8px calc(12px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
|
|
269
|
+
background: color-mix(in srgb, var(--stage) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
|
|
140
270
|
border-top: 1px solid var(--rule); }
|
|
141
|
-
.composer
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
.
|
|
271
|
+
html.kb .composer { padding-bottom: 8px; }
|
|
272
|
+
.composer textarea { flex: 1; min-width: 0; height: var(--tap); min-height: var(--tap); max-height: 160px; resize: none; padding: 11px 16px;
|
|
273
|
+
border: 1px solid var(--rule); border-radius: 22px; font-size: var(--input); line-height: 20px; background: var(--card); outline: none; }
|
|
274
|
+
.composer textarea:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--rule)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
|
|
275
|
+
.composer textarea::placeholder { color: var(--faint); }
|
|
276
|
+
.sendbtn { flex: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%;
|
|
277
|
+
background: var(--accent); color: var(--accent-ink); transition: background .15s, color .15s; }
|
|
278
|
+
.sendbtn svg { width: 20px; height: 20px; }
|
|
279
|
+
.sendbtn[disabled] { background: var(--wash); color: var(--faint); cursor: default; }
|
|
280
|
+
.field-in { width: 100%; height: var(--tap); padding: 0 12px; border: 1px solid var(--rule); border-radius: 10px; font-size: var(--input); background: var(--card); }
|
|
281
|
+
.field-sm { width: 100%; height: var(--tap); padding: 0 12px; border: 1px solid var(--rule); border-radius: 10px; font-size: var(--input); background: var(--card); }
|
|
282
|
+
|
|
283
|
+
/* ---------- rendered markdown ---------- */
|
|
284
|
+
.md { font-size: 14px; line-height: 1.55; overflow-wrap: break-word; }
|
|
285
|
+
.md > * + *, .md li > * + *, .md blockquote > * + * { margin-top: 10px; }
|
|
286
|
+
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { line-height: 1.25; letter-spacing: -.005em; }
|
|
287
|
+
.md > * + :is(h1, h2, h3, h4, h5, h6) { margin-top: 18px; }
|
|
288
|
+
.md :is(h1, h2, h3, h4, h5, h6) + * { margin-top: 6px; }
|
|
289
|
+
.md h1 { font-size: 18px; font-weight: 600; }
|
|
290
|
+
.md h2 { font-size: 16px; font-weight: 500; }
|
|
291
|
+
.md h3 { font-size: 15px; font-weight: 500; }
|
|
292
|
+
.md h4 { font-size: 14px; font-weight: 500; }
|
|
293
|
+
.md h5, .md h6 { font-size: 13px; font-weight: 500; color: var(--muted); }
|
|
294
|
+
.md strong { font-weight: 600; }
|
|
295
|
+
.md ul, .md ol { padding-left: 22px; }
|
|
296
|
+
.md li + li { margin-top: 4px; }
|
|
297
|
+
.md li > ul, .md li > ol { margin-top: 4px; }
|
|
298
|
+
.md li::marker { color: var(--faint); }
|
|
299
|
+
.md ol > li::marker { font-variant-numeric: tabular-nums; }
|
|
300
|
+
.md li.task { list-style: none; position: relative; }
|
|
301
|
+
.md-task { position: absolute; left: -21px; top: 3px; width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--faint); }
|
|
302
|
+
.md-task.done { background: var(--accent); box-shadow: none; }
|
|
303
|
+
.md-task.done::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
|
|
304
|
+
.md blockquote { padding: 2px 0 2px 12px; border-left: 3px solid var(--rule-strong); color: var(--muted); }
|
|
305
|
+
.md hr { border: 0; height: 1px; background: var(--rule); margin: 16px 0; }
|
|
306
|
+
.md code { font: 12.5px/1.4 var(--mono); padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow-wrap: anywhere; }
|
|
307
|
+
.md a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 2px; overflow-wrap: anywhere; }
|
|
308
|
+
.md-badlink { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
|
|
309
|
+
.md del { color: var(--muted); }
|
|
310
|
+
|
|
311
|
+
.md-code { border: 1px solid var(--rule); border-radius: 12px; background: var(--code-bg); overflow: hidden; }
|
|
312
|
+
.md-code-bar { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 4px 0 12px;
|
|
313
|
+
border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
|
|
314
|
+
.md-lang { font: 12px/1 var(--mono); }
|
|
315
|
+
.md-copy { position: relative; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
|
|
316
|
+
.md-copy::before { content: ""; position: absolute; inset: -8px -2px; }
|
|
317
|
+
.md-copy:active { background: var(--wash); }
|
|
318
|
+
.md-copy.done { color: var(--ok); }
|
|
319
|
+
.md-code pre { margin: 0; padding: 10px 12px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
|
|
320
|
+
font: 12.5px/1.55 var(--mono); white-space: pre; tab-size: 4; }
|
|
321
|
+
.md-code pre code { padding: 0; background: none; font: inherit; overflow-wrap: normal; }
|
|
322
|
+
|
|
323
|
+
/* Tables scroll sideways inside their own box on a phone (never squashed), first column pinned. */
|
|
324
|
+
.md-table { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
|
|
325
|
+
.md-table table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
|
|
326
|
+
.md-table th, .md-table td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); min-width: 6em; max-width: 20em; }
|
|
327
|
+
.md-table th { background: var(--wash); font-weight: 500; white-space: nowrap; }
|
|
328
|
+
.md-table tbody tr:last-child td { border-bottom: 0; }
|
|
329
|
+
.md-table th:first-child, .md-table td:first-child { position: sticky; left: 0; z-index: 1; max-width: 42vw; background: var(--card); box-shadow: inset -1px 0 0 var(--rule); }
|
|
330
|
+
.md-table th:first-child { background: var(--wash); z-index: 2; }
|
|
331
|
+
.md-table td:first-child { font-weight: 500; }
|
|
332
|
+
.md-table .al-c { text-align: center; } .md-table .al-r { text-align: right; }
|
|
333
|
+
.md-table code { white-space: nowrap; }
|
|
145
334
|
|
|
146
335
|
/* ---------- sign-in ---------- */
|
|
147
|
-
.signin { max-width:
|
|
148
|
-
|
|
149
|
-
.
|
|
150
|
-
.
|
|
336
|
+
.signin { max-width: 400px; width: 100%; margin: 0 auto;
|
|
337
|
+
padding: calc(28px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
|
|
338
|
+
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 20px; }
|
|
339
|
+
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow); margin-bottom: 10px; }
|
|
340
|
+
.brand-t { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
|
|
341
|
+
.brand-s { font-size: 13px; color: var(--muted); }
|
|
342
|
+
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
|
|
343
|
+
.card .h { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
|
|
344
|
+
.card .p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
|
|
345
|
+
.card code { font: 12px var(--mono); padding: 1px 4px; border-radius: 4px; background: var(--wash); }
|
|
151
346
|
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
|
|
152
|
-
.field label { font-size: 12px; font-weight:
|
|
153
|
-
input.code { width: 100%; height:
|
|
154
|
-
letter-spacing: .3em; border: 1px solid var(--rule); border-radius:
|
|
347
|
+
.field label { font-size: 12px; font-weight: 500; color: var(--muted); }
|
|
348
|
+
input.code { width: 100%; height: 52px; text-align: center; font: 500 22px/1 var(--mono);
|
|
349
|
+
letter-spacing: .3em; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); text-transform: uppercase; }
|
|
350
|
+
input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, var(--rule)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
|
|
155
351
|
.full { width: 100%; }
|
|
156
352
|
|
|
157
|
-
.notice { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(
|
|
158
|
-
max-width: min(520px, calc(100% - 24px)); padding:
|
|
353
|
+
.notice { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40;
|
|
354
|
+
max-width: min(520px, calc(100% - 24px)); padding: 10px 14px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow);
|
|
159
355
|
background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--rule); }
|
|
160
356
|
.notice.err, .banner.err { background: var(--err-bg); color: var(--danger); }
|
|
161
|
-
.banner { padding:
|
|
357
|
+
.banner { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; background: var(--warn-bg); color: var(--warn-ink); }
|
|
358
|
+
|
|
359
|
+
@keyframes pulse { 50% { opacity: .35; } }
|
|
360
|
+
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
|
|
361
|
+
@keyframes fade { from { opacity: 0; } }
|
|
362
|
+
@keyframes rise { from { transform: translateY(24px); opacity: .6; } }
|
|
363
|
+
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
|