@erdemtuna/doc-review 0.7.0 → 0.8.1
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/README.md +58 -5
- package/package.json +3 -2
- package/src/SKILL.md +54 -7
- package/src/anchor-text.js +45 -0
- package/src/atomic-write.js +53 -0
- package/src/chrome-client.js +1272 -252
- package/src/chrome-session.js +70 -0
- package/src/chrome.css +278 -329
- package/src/chrome.html +81 -35
- package/src/cli.js +58 -132
- package/src/comment-anchor.js +22 -0
- package/src/comment-target.js +77 -0
- package/src/edit-limits.js +23 -0
- package/src/icons.js +251 -0
- package/src/paths.js +5 -1
- package/src/poll-transport.js +222 -0
- package/src/positioning.js +107 -0
- package/src/review-mode.js +59 -0
- package/src/sdk.js +792 -69
- package/src/serialize.js +0 -14
- package/src/server.js +39 -9
- package/src/setup-guidance.js +128 -0
- package/src/setup.js +41 -15
- package/src/state.js +37 -21
package/src/chrome.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* Chrome palette. The artifact never sees any of this. */
|
|
2
2
|
:root {
|
|
3
3
|
--canvas: #eceae4;
|
|
4
|
-
--
|
|
5
|
-
--card: #
|
|
4
|
+
--panel: #fbfaf7;
|
|
5
|
+
--card: #fff;
|
|
6
6
|
--card-border: #e9e7e0;
|
|
7
7
|
--hair: #e4e2db;
|
|
8
8
|
--hair-2: #eceae4;
|
|
@@ -17,19 +17,23 @@
|
|
|
17
17
|
--soft: #f2f0ea;
|
|
18
18
|
--chip: #f4f2ec;
|
|
19
19
|
--input-bg: #fdfcfa;
|
|
20
|
-
--focus: #
|
|
20
|
+
--focus: #5a63d8;
|
|
21
21
|
--danger: #b23b2e;
|
|
22
22
|
--danger-soft: #f6ecea;
|
|
23
23
|
--amber: #c99500;
|
|
24
24
|
--green: #7d9370;
|
|
25
25
|
--btn-bg: #1b1a16;
|
|
26
26
|
--btn-fg: #fbfaf7;
|
|
27
|
-
--
|
|
27
|
+
--toolbar-h: 48px;
|
|
28
|
+
--drawer-w: 380px;
|
|
29
|
+
--narrow: 720px;
|
|
30
|
+
--overlay: 60;
|
|
31
|
+
--focus-ring: 0 0 0 3px rgba(90, 99, 216, .28);
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
:root[data-theme="dark"] {
|
|
31
35
|
--canvas: #171614;
|
|
32
|
-
--
|
|
36
|
+
--panel: #1f1e1b;
|
|
33
37
|
--card: #262420;
|
|
34
38
|
--card-border: #34322d;
|
|
35
39
|
--hair: #2f2d29;
|
|
@@ -45,7 +49,7 @@
|
|
|
45
49
|
--soft: #2c2a26;
|
|
46
50
|
--chip: #2e2c27;
|
|
47
51
|
--input-bg: #1c1b18;
|
|
48
|
-
--focus: #
|
|
52
|
+
--focus: #8d95ff;
|
|
49
53
|
--danger: #d9705f;
|
|
50
54
|
--danger-soft: #3a2320;
|
|
51
55
|
--amber: #d9a520;
|
|
@@ -55,296 +59,287 @@
|
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
* { box-sizing: border-box; }
|
|
58
|
-
|
|
59
|
-
/* Author display rules beat the UA rule for [hidden], so restate it. */
|
|
60
62
|
[hidden] { display: none !important; }
|
|
61
|
-
|
|
62
|
-
html, body {
|
|
63
|
-
height: 100%;
|
|
64
|
-
margin: 0;
|
|
65
|
-
overflow: hidden;
|
|
66
|
-
}
|
|
67
|
-
|
|
63
|
+
html, body { height: 100%; margin: 0; overflow: hidden; }
|
|
68
64
|
body {
|
|
69
65
|
background: var(--canvas);
|
|
70
66
|
color: var(--txt);
|
|
71
67
|
font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
|
|
72
68
|
-webkit-font-smoothing: antialiased;
|
|
73
69
|
}
|
|
74
|
-
|
|
75
70
|
button, textarea { font: inherit; color: inherit; }
|
|
71
|
+
button:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus-ring); }
|
|
72
|
+
.app { display: grid; grid-template-rows: var(--toolbar-h) minmax(0, 1fr); height: 100dvh; }
|
|
73
|
+
.icon { display: block; flex: none; }
|
|
74
|
+
.sr-only {
|
|
75
|
+
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
|
|
76
|
+
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
|
|
77
|
+
}
|
|
76
78
|
|
|
77
|
-
.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
79
|
+
.toolbar {
|
|
80
|
+
position: relative;
|
|
81
|
+
z-index: 20;
|
|
82
|
+
display: grid;
|
|
83
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 12px;
|
|
86
|
+
padding: 6px 10px;
|
|
87
|
+
border-bottom: 1px solid var(--hair);
|
|
88
|
+
background: var(--panel);
|
|
89
|
+
}
|
|
90
|
+
.toolbar-product { min-width: 0; }
|
|
91
|
+
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
|
|
92
|
+
.toolbar-btn {
|
|
93
|
+
min-height: 34px;
|
|
94
|
+
display: inline-flex;
|
|
92
95
|
align-items: center;
|
|
93
96
|
justify-content: center;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
border
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
gap: 7px;
|
|
98
|
+
padding: 6px 10px;
|
|
99
|
+
border: 1px solid transparent;
|
|
100
|
+
border-radius: 8px;
|
|
101
|
+
background: transparent;
|
|
102
|
+
color: var(--mute-2);
|
|
103
|
+
font-weight: 550;
|
|
101
104
|
cursor: pointer;
|
|
102
|
-
box-shadow: -2px 0 8px -6px rgba(0, 0, 0, 0.28);
|
|
103
|
-
transition: right 140ms ease-out;
|
|
104
105
|
}
|
|
105
|
-
.
|
|
106
|
-
|
|
107
|
-
.
|
|
108
|
-
flex:
|
|
109
|
-
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-direction: column;
|
|
112
|
-
overflow: hidden;
|
|
113
|
-
border-left: 1px solid var(--hair);
|
|
114
|
-
background: var(--rail);
|
|
115
|
-
transition: width 140ms ease-out;
|
|
106
|
+
.toolbar-btn:hover, .toolbar-btn[aria-expanded="true"] { border-color: var(--hair); background: var(--soft); color: var(--strong-txt); }
|
|
107
|
+
.toolbar-btn:disabled { opacity: .55; cursor: wait; }
|
|
108
|
+
.count-badge {
|
|
109
|
+
min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center;
|
|
110
|
+
padding: 0 5px; border-radius: 999px; background: var(--chip); color: var(--mute-2); font-size: 11px;
|
|
116
111
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
112
|
+
.mode-control { position: relative; justify-self: center; }
|
|
113
|
+
.mode-menu {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: calc(100% + 6px);
|
|
116
|
+
left: 50%;
|
|
117
|
+
transform: translateX(-50%);
|
|
118
|
+
z-index: 80;
|
|
119
|
+
width: 250px;
|
|
120
|
+
padding: 6px;
|
|
121
|
+
border: 1px solid var(--strong-border);
|
|
122
|
+
border-radius: 10px;
|
|
123
|
+
background: var(--panel);
|
|
124
|
+
box-shadow: 0 14px 38px rgba(27, 26, 22, .18);
|
|
130
125
|
}
|
|
131
|
-
.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
width: 26px;
|
|
136
|
-
height: 26px;
|
|
137
|
-
display: flex;
|
|
126
|
+
.mode-menu button {
|
|
127
|
+
width: 100%;
|
|
128
|
+
display: grid;
|
|
129
|
+
grid-template-columns: 24px minmax(0, 1fr) 18px;
|
|
138
130
|
align-items: center;
|
|
139
|
-
|
|
140
|
-
|
|
131
|
+
gap: 8px;
|
|
132
|
+
padding: 9px;
|
|
133
|
+
border: 0;
|
|
141
134
|
border-radius: 7px;
|
|
142
|
-
background:
|
|
143
|
-
|
|
144
|
-
line-height: 1;
|
|
135
|
+
background: transparent;
|
|
136
|
+
text-align: left;
|
|
145
137
|
cursor: pointer;
|
|
146
138
|
}
|
|
147
|
-
.
|
|
139
|
+
.mode-menu button:hover, .mode-menu button:focus-visible { background: var(--soft); }
|
|
140
|
+
.mode-menu strong, .mode-menu small { display: block; }
|
|
141
|
+
.mode-menu small { color: var(--mute); font-size: 11px; font-weight: 400; }
|
|
148
142
|
|
|
149
|
-
.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
cursor: pointer;
|
|
143
|
+
.stage { min-width: 0; min-height: 0; background: var(--canvas); }
|
|
144
|
+
#frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
|
|
145
|
+
|
|
146
|
+
.icon-btn {
|
|
147
|
+
width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
|
|
148
|
+
padding: 0; border: 1px solid var(--hair); border-radius: 7px; background: var(--soft);
|
|
149
|
+
color: var(--mute-2); cursor: pointer;
|
|
157
150
|
}
|
|
158
|
-
.
|
|
159
|
-
.danger-hover:hover { color: var(--danger); }
|
|
151
|
+
.icon-btn:hover { border-color: var(--strong-border); color: var(--strong-txt); }
|
|
160
152
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
153
|
+
.contextual-compose {
|
|
154
|
+
position: fixed;
|
|
155
|
+
z-index: 90;
|
|
156
|
+
width: min(340px, calc(100vw - 24px));
|
|
157
|
+
padding: 14px;
|
|
165
158
|
border: 1px solid var(--strong-border);
|
|
166
|
-
border-radius:
|
|
159
|
+
border-radius: 10px;
|
|
167
160
|
background: var(--card);
|
|
168
|
-
box-shadow: 0
|
|
161
|
+
box-shadow: 0 16px 44px rgba(27, 26, 22, .24);
|
|
162
|
+
max-height: calc(100dvh - var(--toolbar-h) - 12px);
|
|
163
|
+
overflow-y: auto;
|
|
169
164
|
animation: rise 130ms ease-out;
|
|
170
165
|
}
|
|
171
|
-
.compose
|
|
166
|
+
.contextual-compose.sheet {
|
|
167
|
+
left: 0 !important;
|
|
168
|
+
right: 0;
|
|
169
|
+
bottom: 0;
|
|
170
|
+
top: auto !important;
|
|
171
|
+
width: 100%;
|
|
172
|
+
max-height: min(70dvh, 420px);
|
|
173
|
+
border-radius: 14px 14px 0 0;
|
|
174
|
+
padding-bottom: max(14px, env(safe-area-inset-bottom));
|
|
175
|
+
}
|
|
176
|
+
.contextual-compose.edge-top, .contextual-compose.edge-bottom { border-color: var(--focus); }
|
|
177
|
+
.contextual-compose.pass-through { pointer-events: none; opacity: .92; }
|
|
178
|
+
.compose-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
|
|
179
|
+
.compose-head > div { display: flex; align-items: center; gap: 8px; }
|
|
180
|
+
.compose-head strong { font-size: 13px; }
|
|
172
181
|
.chip {
|
|
173
|
-
padding: 2px 8px;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
182
|
+
padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--mute);
|
|
183
|
+
font-size: 10px; font-weight: 600;
|
|
184
|
+
}
|
|
185
|
+
.compose-direction {
|
|
186
|
+
display: flex; align-items: center; justify-content: space-between; gap: 10px;
|
|
187
|
+
margin: -2px 0 9px; padding: 7px 9px; border-radius: 6px; background: var(--soft);
|
|
188
|
+
color: var(--mute-2); font-size: 11.5px;
|
|
189
|
+
}
|
|
190
|
+
.link-action {
|
|
191
|
+
flex: none; padding: 0; border: 0; background: none; color: var(--focus);
|
|
192
|
+
font: inherit; font-weight: 600; cursor: pointer;
|
|
193
|
+
}
|
|
194
|
+
.compose-help {
|
|
195
|
+
display: flex; justify-content: space-between; gap: 10px; margin: 5px 1px 0;
|
|
196
|
+
color: var(--faint-2); font-size: 10.5px;
|
|
179
197
|
}
|
|
180
198
|
.quote {
|
|
181
|
-
margin: 0 0 10px;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
line-height: 1.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
-webkit-line-clamp: 3;
|
|
191
|
-
-webkit-box-orient: vertical;
|
|
192
|
-
}
|
|
193
|
-
.compose textarea, .rail-foot textarea {
|
|
194
|
-
width: 100%;
|
|
195
|
-
padding: 8px 10px;
|
|
196
|
-
border: 1px solid var(--hair);
|
|
197
|
-
border-radius: 6px;
|
|
198
|
-
background: var(--input-bg);
|
|
199
|
-
font-size: 13px;
|
|
200
|
-
line-height: 1.5;
|
|
201
|
-
resize: none;
|
|
202
|
-
outline: none;
|
|
203
|
-
}
|
|
204
|
-
.compose textarea:focus, .rail-foot textarea:focus { border-color: var(--focus); background: var(--card); }
|
|
199
|
+
margin: 0 0 10px; padding-left: 9px; border-left: 2px solid rgba(245, 196, 0, .7);
|
|
200
|
+
color: var(--mute); font-size: 12px; font-style: italic; line-height: 1.45;
|
|
201
|
+
white-space: normal; overflow-wrap: anywhere;
|
|
202
|
+
}
|
|
203
|
+
.contextual-compose textarea, .send-section textarea {
|
|
204
|
+
width: 100%; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 6px;
|
|
205
|
+
background: var(--input-bg); font-size: 13px; line-height: 1.5; resize: vertical; outline: none;
|
|
206
|
+
}
|
|
207
|
+
.contextual-compose textarea:focus, .send-section textarea:focus { border-color: var(--focus); background: var(--card); }
|
|
205
208
|
.compose-actions { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
|
|
209
|
+
.compose-error { margin: 8px 0 0; color: var(--danger); font-size: 11.5px; }
|
|
210
|
+
.btn-primary, .btn-ghost {
|
|
211
|
+
min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
|
|
212
|
+
padding: 6px 11px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer;
|
|
213
|
+
}
|
|
214
|
+
.btn-primary { border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); }
|
|
215
|
+
.btn-primary:disabled { opacity: .55; cursor: wait; }
|
|
216
|
+
.btn-ghost { border: 0; background: transparent; color: var(--mute); }
|
|
217
|
+
.btn-ghost:hover { background: var(--soft); color: var(--strong-txt); }
|
|
206
218
|
|
|
207
|
-
.
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
cursor: pointer;
|
|
219
|
+
.aligned-card {
|
|
220
|
+
position: fixed;
|
|
221
|
+
z-index: 55;
|
|
222
|
+
width: 300px;
|
|
223
|
+
max-height: min(280px, calc(100dvh - var(--toolbar-h) - 24px));
|
|
224
|
+
overflow: auto;
|
|
225
|
+
padding: 13px 14px;
|
|
226
|
+
border: 1px solid var(--strong-border);
|
|
227
|
+
border-radius: 9px;
|
|
228
|
+
background: var(--card);
|
|
229
|
+
box-shadow: 0 10px 30px rgba(27, 26, 22, .2);
|
|
219
230
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
231
|
+
|
|
232
|
+
.drawer {
|
|
233
|
+
position: fixed;
|
|
234
|
+
z-index: 75;
|
|
235
|
+
top: var(--toolbar-h);
|
|
236
|
+
right: 0;
|
|
237
|
+
bottom: 0;
|
|
238
|
+
width: min(var(--drawer-w), calc(100vw - 32px));
|
|
239
|
+
display: grid;
|
|
240
|
+
grid-template-rows: auto minmax(0, 1fr) minmax(0, auto);
|
|
241
|
+
border-left: 1px solid var(--hair);
|
|
242
|
+
background: var(--panel);
|
|
243
|
+
box-shadow: -12px 0 34px rgba(27, 26, 22, .16);
|
|
244
|
+
transform: translateX(102%);
|
|
245
|
+
visibility: hidden;
|
|
246
|
+
transition: transform 160ms ease-out, visibility 0s linear 160ms;
|
|
247
|
+
}
|
|
248
|
+
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
|
|
249
|
+
.drawer-head {
|
|
250
|
+
display: flex; align-items: center; gap: 7px; padding: 12px;
|
|
251
|
+
border-bottom: 1px solid var(--hair);
|
|
252
|
+
}
|
|
253
|
+
.drawer-head > div { flex: 1; min-width: 0; }
|
|
254
|
+
.drawer-head h2 { margin: 1px 0 0; font-size: 17px; color: var(--strong-txt); }
|
|
255
|
+
.drawer-inventory { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 12px 18px; }
|
|
256
|
+
.drawer-backdrop {
|
|
257
|
+
position: fixed; z-index: 70; inset: var(--toolbar-h) 0 0; background: rgba(20, 19, 17, .2);
|
|
228
258
|
}
|
|
229
|
-
.
|
|
230
|
-
.
|
|
259
|
+
.rail-head { display: flex; align-items: baseline; gap: 7px; padding: 0 4px 9px; }
|
|
260
|
+
.rail-head.tight { padding-top: 0; }
|
|
261
|
+
.section { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
|
|
262
|
+
.dim { color: var(--faint); font-size: 11px; }
|
|
263
|
+
.link-btn { margin-left: auto; border: 0; padding: 0; background: none; color: var(--faint-2); font-size: 11px; cursor: pointer; }
|
|
264
|
+
.link-btn:hover { color: var(--strong-txt); }
|
|
265
|
+
.danger-hover:hover { color: var(--danger); }
|
|
231
266
|
|
|
232
267
|
.cards { display: flex; flex-direction: column; gap: 8px; }
|
|
268
|
+
.comment, .aligned-card {
|
|
269
|
+
color: var(--txt);
|
|
270
|
+
}
|
|
233
271
|
.comment {
|
|
234
|
-
|
|
235
|
-
border: 1px solid var(--card-border);
|
|
236
|
-
|
|
237
|
-
background: var(--card);
|
|
238
|
-
box-shadow: inset 2px 0 0 transparent;
|
|
239
|
-
cursor: pointer;
|
|
272
|
+
position: relative;
|
|
273
|
+
padding: 13px 14px; border: 1px solid var(--card-border); border-radius: 8px; background: var(--card);
|
|
274
|
+
box-shadow: inset 2px 0 0 transparent; cursor: pointer;
|
|
240
275
|
}
|
|
241
276
|
.comment.active { box-shadow: inset 2px 0 0 #e0a800; }
|
|
242
277
|
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
|
|
278
|
+
.comment-head .who { margin-right: auto; }
|
|
243
279
|
.who { color: var(--mute-2); font-size: 11px; font-weight: 500; }
|
|
244
|
-
.who .sep { color: var(--
|
|
280
|
+
.who .sep { color: var(--faint); margin: 0 4px; }
|
|
245
281
|
.who .when { color: var(--faint-2); }
|
|
246
282
|
.jump {
|
|
247
|
-
margin-left: auto;
|
|
248
|
-
|
|
249
|
-
padding: 0;
|
|
250
|
-
background: none;
|
|
251
|
-
color: var(--faint-2);
|
|
252
|
-
font-size: 11px;
|
|
253
|
-
white-space: nowrap;
|
|
254
|
-
cursor: pointer;
|
|
283
|
+
margin-left: auto; border: 0; padding: 0; background: none; color: var(--faint-2);
|
|
284
|
+
font-size: 11px; white-space: nowrap; cursor: pointer;
|
|
255
285
|
}
|
|
256
286
|
.jump:hover { color: var(--strong-txt); }
|
|
257
287
|
.edit-comment { margin-left: 0; }
|
|
258
|
-
.remove {
|
|
259
|
-
width: 18px;
|
|
260
|
-
height: 18px;
|
|
261
|
-
display: flex;
|
|
262
|
-
align-items: center;
|
|
263
|
-
justify-content: center;
|
|
264
|
-
border: 0;
|
|
265
|
-
border-radius: 4px;
|
|
266
|
-
background: transparent;
|
|
267
|
-
color: var(--faint);
|
|
268
|
-
font-size: 10px;
|
|
269
|
-
line-height: 1;
|
|
270
|
-
cursor: pointer;
|
|
271
|
-
}
|
|
288
|
+
.remove { margin-left: 0; border: 0; background: transparent; color: var(--faint); cursor: pointer; border-radius: 4px; padding: 3px; }
|
|
272
289
|
.remove:hover { background: var(--danger-soft); color: var(--danger); }
|
|
273
|
-
.
|
|
274
|
-
|
|
275
|
-
width: 100%;
|
|
276
|
-
padding: 6px;
|
|
277
|
-
background: none;
|
|
278
|
-
border: none;
|
|
279
|
-
color: var(--faint-2);
|
|
280
|
-
font-size: 12px;
|
|
281
|
-
cursor: pointer;
|
|
282
|
-
border-radius: 6px;
|
|
283
|
-
}
|
|
284
|
-
.end-review:hover { color: var(--danger); background: var(--danger-soft); }
|
|
285
|
-
|
|
286
|
-
.ended {
|
|
287
|
-
position: fixed;
|
|
288
|
-
inset: 0;
|
|
289
|
-
z-index: 100;
|
|
290
|
-
display: flex;
|
|
291
|
-
flex-direction: column;
|
|
292
|
-
align-items: center;
|
|
293
|
-
justify-content: center;
|
|
294
|
-
gap: 4px;
|
|
295
|
-
background: var(--rail);
|
|
296
|
-
color: var(--txt);
|
|
297
|
-
}
|
|
298
|
-
.ended h2 { margin: 0; font-size: 17px; color: var(--strong-txt); }
|
|
299
|
-
.ended p { margin: 0; font-size: 13px; color: var(--mute-2); }
|
|
300
|
-
|
|
301
|
-
.comment .quote { -webkit-line-clamp: 2; margin-bottom: 8px; }
|
|
302
|
-
.comment .body { margin: 0; font-size: 13px; line-height: 1.5; cursor: text; border-radius: 4px; }
|
|
290
|
+
.comment .quote, .aligned-card .quote { margin-bottom: 8px; }
|
|
291
|
+
.comment .body, .aligned-card .body { margin: 0; font-size: 13px; line-height: 1.5; cursor: text; border-radius: 4px; white-space: pre-wrap; }
|
|
303
292
|
.comment .body:hover { background: var(--input-bg); box-shadow: 0 0 0 4px var(--input-bg); }
|
|
304
|
-
.
|
|
305
|
-
|
|
306
|
-
padding:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
293
|
+
.card-action {
|
|
294
|
+
display: inline-flex; align-items: center; gap: 4px; flex: none;
|
|
295
|
+
border: 0; padding: 3px 4px; border-radius: 4px; background: transparent;
|
|
296
|
+
color: var(--faint-2); font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap;
|
|
297
|
+
}
|
|
298
|
+
.card-action:hover, .card-action:focus-visible { background: var(--soft); color: var(--strong-txt); }
|
|
299
|
+
.more-trigger[aria-expanded="true"] { background: var(--soft); color: var(--strong-txt); }
|
|
300
|
+
.comment-menu {
|
|
301
|
+
position: absolute; z-index: 3; top: 38px; right: 12px; min-width: 132px; padding: 4px;
|
|
302
|
+
border: 1px solid var(--strong-border); border-radius: 7px; background: var(--card);
|
|
303
|
+
box-shadow: 0 8px 24px rgba(27, 26, 22, .2);
|
|
304
|
+
}
|
|
305
|
+
.aligned-card .comment-menu { top: 38px; right: 12px; }
|
|
306
|
+
.comment-menu-item {
|
|
307
|
+
width: 100%; display: flex; align-items: center; gap: 7px; padding: 7px 8px;
|
|
308
|
+
border: 0; border-radius: 5px; background: transparent; color: var(--danger);
|
|
309
|
+
font: inherit; font-size: 12px; text-align: left; cursor: pointer;
|
|
310
|
+
}
|
|
311
|
+
.comment-menu-item:hover, .comment-menu-item:focus-visible { background: var(--danger-soft); outline: none; }
|
|
312
|
+
.body-edit {
|
|
313
|
+
width: 100%; padding: 6px 8px; border: 1px solid var(--focus); border-radius: 6px;
|
|
314
|
+
background: var(--card); color: var(--txt); font-size: 13px; line-height: 1.5; resize: vertical; outline: none;
|
|
315
|
+
}
|
|
316
|
+
.body-edit[readonly] { opacity: .75; }
|
|
317
|
+
.edit-help { margin: 5px 0 0; color: var(--faint-2); font-size: 10.5px; }
|
|
318
|
+
.comment-edit-actions, .delete-actions { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
|
|
319
|
+
.comment-validation { margin: 6px 0 0; color: var(--danger); font-size: 11.5px; }
|
|
320
|
+
.delete-prompt { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
|
|
321
|
+
.btn-danger {
|
|
322
|
+
min-height: 32px; padding: 6px 11px; border: 1px solid var(--danger); border-radius: 6px;
|
|
323
|
+
background: var(--danger); color: #fff; font-size: 12px; font-weight: 500; cursor: pointer;
|
|
324
|
+
}
|
|
325
|
+
.btn-danger:disabled, .comment-edit-actions button:disabled, .delete-actions button:disabled { opacity: .55; cursor: wait; }
|
|
315
326
|
.badge {
|
|
316
|
-
display: inline-block;
|
|
317
|
-
|
|
318
|
-
padding: 1px 7px;
|
|
319
|
-
border-radius: 999px;
|
|
320
|
-
background: var(--chip);
|
|
321
|
-
color: var(--faint-2);
|
|
322
|
-
font-size: 10px;
|
|
323
|
-
font-weight: 600;
|
|
327
|
+
display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
|
|
328
|
+
background: var(--chip); color: var(--faint-2); font-size: 10px; font-weight: 600;
|
|
324
329
|
}
|
|
325
330
|
.badge.correction { background: var(--danger-soft); color: var(--danger); }
|
|
326
|
-
|
|
327
331
|
.empty {
|
|
328
|
-
padding: 16px 14px;
|
|
329
|
-
|
|
330
|
-
border-radius: 8px;
|
|
331
|
-
color: var(--faint);
|
|
332
|
-
font-size: 11.5px;
|
|
333
|
-
line-height: 1.5;
|
|
334
|
-
text-align: center;
|
|
332
|
+
padding: 16px 14px; border: 1px dashed var(--dash); border-radius: 8px; color: var(--faint);
|
|
333
|
+
font-size: 11.5px; line-height: 1.5; text-align: center;
|
|
335
334
|
}
|
|
336
335
|
|
|
337
|
-
#editsBox { margin-top: 20px;
|
|
336
|
+
#othersBox, #editsBox { margin-top: 20px; }
|
|
338
337
|
.save-line { display: flex; align-items: center; gap: 7px; padding: 0 4px 9px; color: var(--faint-2); font-size: 11px; }
|
|
339
|
-
.save-line.saving { color: var(--mute); }
|
|
340
338
|
.save-line.failed { color: var(--danger); }
|
|
341
339
|
.save-line.dynamic { color: var(--mute); }
|
|
342
|
-
.save-line.dynamic .dot { background: var(--amber); }
|
|
343
340
|
.dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--green); }
|
|
344
|
-
.save-line.saving .dot { background: var(--amber); }
|
|
341
|
+
.save-line.saving .dot, .save-line.dynamic .dot, .dot.amber { background: var(--amber); }
|
|
345
342
|
.save-line.failed .dot { background: var(--danger); }
|
|
346
|
-
.dot.amber { background: var(--amber); }
|
|
347
|
-
|
|
348
343
|
.edit-list { border: 1px solid var(--card-border); border-radius: 8px; background: var(--card); overflow: hidden; }
|
|
349
344
|
.edit-row { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-top: 1px solid var(--hair-2); }
|
|
350
345
|
.edit-row:first-child { border-top: 0; }
|
|
@@ -352,107 +347,61 @@ body.collapsed .handle { right: 0; }
|
|
|
352
347
|
.edit-row.deleted .pip { background: var(--danger); }
|
|
353
348
|
.edit-row .label { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
354
349
|
.edit-row .kind { margin-left: auto; color: var(--faint-2); font-size: 11px; white-space: nowrap; }
|
|
355
|
-
|
|
356
350
|
.edit-more {
|
|
357
|
-
width: 100%;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
.
|
|
368
|
-
|
|
369
|
-
.
|
|
370
|
-
width: 100%;
|
|
371
|
-
border: 0;
|
|
372
|
-
background: transparent;
|
|
373
|
-
text-align: left;
|
|
374
|
-
cursor: pointer;
|
|
375
|
-
color: inherit;
|
|
376
|
-
}
|
|
377
|
-
.other-row:hover { background: var(--soft); }
|
|
378
|
-
|
|
379
|
-
.rail-foot { flex: none; padding: 12px; border-top: 1px solid var(--hair-2); }
|
|
380
|
-
.rail-foot textarea { min-height: 58px; max-height: 40vh; margin-bottom: 9px; font-size: 12.5px; overflow-y: auto; resize: vertical; }
|
|
381
|
-
|
|
351
|
+
width: 100%; padding: 8px 12px; border: 0; border-top: 1px solid var(--hair-2);
|
|
352
|
+
background: transparent; color: var(--faint-2); font-size: 11.5px; text-align: left; cursor: pointer;
|
|
353
|
+
}
|
|
354
|
+
.edit-more:hover, .other-row:hover { background: var(--soft); color: var(--strong-txt); }
|
|
355
|
+
.other-row { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; }
|
|
356
|
+
.drawer-footer {
|
|
357
|
+
min-width: 0; min-height: 0; max-height: min(55dvh, 430px);
|
|
358
|
+
display: grid; grid-template-rows: auto minmax(44px, 1fr);
|
|
359
|
+
border-top: 1px solid var(--hair); background: var(--panel);
|
|
360
|
+
}
|
|
361
|
+
.send-primary { flex: none; padding: 12px 12px 10px; }
|
|
362
|
+
.send-secondary { min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 12px 12px; }
|
|
363
|
+
.send-section textarea { min-height: 64px; max-height: min(24vh, 160px); margin-bottom: 9px; overflow-y: auto; }
|
|
382
364
|
.send {
|
|
383
|
-
width: 100%;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
align-items: center;
|
|
387
|
-
justify-content: center;
|
|
388
|
-
gap: 8px;
|
|
389
|
-
border: 1px solid var(--btn-bg);
|
|
390
|
-
border-radius: 6px;
|
|
391
|
-
background: var(--btn-bg);
|
|
392
|
-
color: var(--btn-fg);
|
|
393
|
-
font-size: 12.5px;
|
|
394
|
-
font-weight: 500;
|
|
395
|
-
cursor: pointer;
|
|
365
|
+
width: 100%; min-height: 40px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
|
|
366
|
+
border: 1px solid var(--btn-bg); border-radius: 6px; background: var(--btn-bg); color: var(--btn-fg);
|
|
367
|
+
font-size: 12.5px; font-weight: 500; cursor: pointer;
|
|
396
368
|
}
|
|
397
369
|
.send:disabled { border-color: var(--hair); background: var(--soft); color: var(--faint); cursor: default; }
|
|
398
|
-
|
|
399
|
-
.
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
color: var(--faint);
|
|
406
|
-
font-size:
|
|
407
|
-
line-height: 1.4;
|
|
370
|
+
.agent-line { margin: 10px 2px 2px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 11px; }
|
|
371
|
+
.handoff { padding: 11px 12px; border: 1px solid var(--strong-border); border-radius: 8px; background: var(--card); }
|
|
372
|
+
.handoff-title { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
|
|
373
|
+
.handoff-body { margin: 0 0 8px; color: var(--mute); font-size: 11.5px; }
|
|
374
|
+
.handoff-cmd { margin-bottom: 8px; padding: 8px 9px; border-radius: 6px; background: var(--input-bg); border: 1px solid var(--hair); overflow-x: auto; }
|
|
375
|
+
.handoff-cmd code { font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
|
|
376
|
+
.end-review {
|
|
377
|
+
margin-top: 9px; width: 100%; padding: 6px; background: none; border: none; color: var(--faint-2);
|
|
378
|
+
font-size: 12px; cursor: pointer; border-radius: 6px;
|
|
408
379
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
padding: 11px 12px;
|
|
414
|
-
border: 1px solid var(--strong-border);
|
|
415
|
-
border-radius: 8px;
|
|
416
|
-
background: var(--card);
|
|
417
|
-
animation: rise 140ms ease-out;
|
|
380
|
+
.end-review:hover { color: var(--danger); background: var(--danger-soft); }
|
|
381
|
+
.ended {
|
|
382
|
+
position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center;
|
|
383
|
+
justify-content: center; gap: 4px; background: var(--panel); color: var(--txt);
|
|
418
384
|
}
|
|
419
|
-
.
|
|
420
|
-
.
|
|
421
|
-
.handoff-cmd {
|
|
422
|
-
margin-bottom: 8px;
|
|
423
|
-
padding: 8px 9px;
|
|
424
|
-
border-radius: 6px;
|
|
425
|
-
background: var(--input-bg);
|
|
426
|
-
border: 1px solid var(--hair);
|
|
427
|
-
overflow-x: auto;
|
|
428
|
-
}
|
|
429
|
-
.handoff-cmd code {
|
|
430
|
-
font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
431
|
-
white-space: pre-wrap;
|
|
432
|
-
word-break: break-word;
|
|
433
|
-
}
|
|
434
|
-
.handoff .btn-ghost { padding: 5px 9px; font-size: 11.5px; }
|
|
435
|
-
|
|
385
|
+
.ended h2 { margin: 0; font-size: 17px; color: var(--strong-txt); }
|
|
386
|
+
.ended p { margin: 0; font-size: 13px; color: var(--mute-2); }
|
|
436
387
|
.toast {
|
|
437
|
-
position: fixed;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
transform: translateX(-50%);
|
|
441
|
-
z-index: 60;
|
|
442
|
-
padding: 8px 14px;
|
|
443
|
-
border-radius: 8px;
|
|
444
|
-
background: var(--btn-bg);
|
|
445
|
-
color: var(--btn-fg);
|
|
446
|
-
font-size: 12px;
|
|
447
|
-
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
|
|
448
|
-
animation: rise 140ms ease-out;
|
|
388
|
+
position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 110;
|
|
389
|
+
padding: 8px 14px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-fg);
|
|
390
|
+
font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: rise 140ms ease-out;
|
|
449
391
|
}
|
|
392
|
+
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
|
|
450
393
|
|
|
451
|
-
@
|
|
452
|
-
|
|
453
|
-
|
|
394
|
+
@media (max-width: 720px) {
|
|
395
|
+
.toolbar { grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr); padding-inline: 7px; }
|
|
396
|
+
.toolbar-btn { width: 36px; padding: 6px; position: relative; }
|
|
397
|
+
#modeButton { width: auto; padding-inline: 9px; }
|
|
398
|
+
.toolbar-label { display: none; }
|
|
399
|
+
.count-badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; border: 2px solid var(--panel); }
|
|
400
|
+
.drawer { top: var(--toolbar-h); width: 100%; border-left: 0; }
|
|
401
|
+
.drawer-backdrop { display: none !important; }
|
|
402
|
+
.aligned-card { display: none !important; }
|
|
454
403
|
}
|
|
455
404
|
|
|
456
405
|
@media (prefers-reduced-motion: reduce) {
|
|
457
|
-
*,
|
|
406
|
+
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
|
|
458
407
|
}
|