@tensorpass/aiconnect-react 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +15 -2
- package/dist/AboutView.d.ts +1 -0
- package/dist/AboutView.js +8 -0
- package/dist/AboutView.js.map +1 -0
- package/dist/AiConnectProvider.d.ts +26 -0
- package/dist/AiConnectProvider.js +44 -0
- package/dist/AiConnectProvider.js.map +1 -0
- package/dist/BrandMark.d.ts +3 -0
- package/dist/BrandMark.js +8 -0
- package/dist/BrandMark.js.map +1 -0
- package/dist/ConnectButton.d.ts +4 -0
- package/dist/ConnectButton.js +15 -0
- package/dist/ConnectButton.js.map +1 -0
- package/dist/ConnectModal.d.ts +1 -0
- package/dist/ConnectModal.js +68 -0
- package/dist/ConnectModal.js.map +1 -0
- package/dist/ConnectRing.d.ts +3 -0
- package/dist/ConnectRing.js +8 -0
- package/dist/ConnectRing.js.map +1 -0
- package/dist/WebAccountStep.d.ts +13 -0
- package/dist/WebAccountStep.js +34 -0
- package/dist/WebAccountStep.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/launcher.d.ts +11 -0
- package/dist/launcher.js +46 -0
- package/dist/launcher.js.map +1 -0
- package/dist/launchers.css +150 -0
- package/dist/messages.d.ts +15 -0
- package/dist/messages.js +46 -0
- package/dist/messages.js.map +1 -0
- package/dist/moduleMessages.d.ts +29 -0
- package/dist/moduleMessages.js +147 -0
- package/dist/moduleMessages.js.map +1 -0
- package/dist/modules/AiChatInline.d.ts +3 -0
- package/dist/modules/AiChatInline.js +18 -0
- package/dist/modules/AiChatInline.js.map +1 -0
- package/dist/modules/AiChatPage.d.ts +4 -0
- package/dist/modules/AiChatPage.js +23 -0
- package/dist/modules/AiChatPage.js.map +1 -0
- package/dist/modules/AiChatPanel.d.ts +4 -0
- package/dist/modules/AiChatPanel.js +22 -0
- package/dist/modules/AiChatPanel.js.map +1 -0
- package/dist/modules/AiChatPopup.d.ts +4 -0
- package/dist/modules/AiChatPopup.js +21 -0
- package/dist/modules/AiChatPopup.js.map +1 -0
- package/dist/modules/AiSearch.d.ts +3 -0
- package/dist/modules/AiSearch.js +76 -0
- package/dist/modules/AiSearch.js.map +1 -0
- package/dist/modules/Launcher.d.ts +9 -0
- package/dist/modules/Launcher.js +8 -0
- package/dist/modules/Launcher.js.map +1 -0
- package/dist/modules/parts/AccountBadge.d.ts +3 -0
- package/dist/modules/parts/AccountBadge.js +15 -0
- package/dist/modules/parts/AccountBadge.js.map +1 -0
- package/dist/modules/parts/AnswerText.d.ts +8 -0
- package/dist/modules/parts/AnswerText.js +43 -0
- package/dist/modules/parts/AnswerText.js.map +1 -0
- package/dist/modules/parts/ChatFrame.d.ts +12 -0
- package/dist/modules/parts/ChatFrame.js +16 -0
- package/dist/modules/parts/ChatFrame.js.map +1 -0
- package/dist/modules/parts/Composer.d.ts +13 -0
- package/dist/modules/parts/Composer.js +64 -0
- package/dist/modules/parts/Composer.js.map +1 -0
- package/dist/modules/parts/ConnectNote.d.ts +4 -0
- package/dist/modules/parts/ConnectNote.js +51 -0
- package/dist/modules/parts/ConnectNote.js.map +1 -0
- package/dist/modules/parts/ConnectStep.d.ts +4 -0
- package/dist/modules/parts/ConnectStep.js +17 -0
- package/dist/modules/parts/ConnectStep.js.map +1 -0
- package/dist/modules/parts/Conversation.d.ts +22 -0
- package/dist/modules/parts/Conversation.js +69 -0
- package/dist/modules/parts/Conversation.js.map +1 -0
- package/dist/modules/parts/PlanOffer.d.ts +3 -0
- package/dist/modules/parts/PlanOffer.js +79 -0
- package/dist/modules/parts/PlanOffer.js.map +1 -0
- package/dist/modules/parts/ToolActivity.d.ts +5 -0
- package/dist/modules/parts/ToolActivity.js +33 -0
- package/dist/modules/parts/ToolActivity.js.map +1 -0
- package/dist/modules/parts/accountModel.d.ts +2 -0
- package/dist/modules/parts/accountModel.js +13 -0
- package/dist/modules/parts/accountModel.js.map +1 -0
- package/dist/modules/parts/answerMarkdown.d.ts +32 -0
- package/dist/modules/parts/answerMarkdown.js +105 -0
- package/dist/modules/parts/answerMarkdown.js.map +1 -0
- package/dist/modules/parts/icons.d.ts +10 -0
- package/dist/modules/parts/icons.js +15 -0
- package/dist/modules/parts/icons.js.map +1 -0
- package/dist/modules/parts/moduleAnalytics.d.ts +5 -0
- package/dist/modules/parts/moduleAnalytics.js +9 -0
- package/dist/modules/parts/moduleAnalytics.js.map +1 -0
- package/dist/modules/parts/moduleClass.d.ts +1 -0
- package/dist/modules/parts/moduleClass.js +6 -0
- package/dist/modules/parts/moduleClass.js.map +1 -0
- package/dist/modules/parts/planPrice.d.ts +2 -0
- package/dist/modules/parts/planPrice.js +8 -0
- package/dist/modules/parts/planPrice.js.map +1 -0
- package/dist/modules/parts/useModuleChat.d.ts +24 -0
- package/dist/modules/parts/useModuleChat.js +117 -0
- package/dist/modules/parts/useModuleChat.js.map +1 -0
- package/dist/modules/parts/useModuleHandle.d.ts +3 -0
- package/dist/modules/parts/useModuleHandle.js +12 -0
- package/dist/modules/parts/useModuleHandle.js.map +1 -0
- package/dist/modules/types.d.ts +28 -0
- package/dist/modules/types.js +5 -0
- package/dist/modules/types.js.map +1 -0
- package/dist/modules/useOverlay.d.ts +20 -0
- package/dist/modules/useOverlay.js +102 -0
- package/dist/modules/useOverlay.js.map +1 -0
- package/dist/pickerMessages.d.ts +35 -0
- package/dist/pickerMessages.js +222 -0
- package/dist/pickerMessages.js.map +1 -0
- package/dist/styles.css +1721 -0
- package/dist/useAiChat.d.ts +33 -0
- package/dist/useAiChat.js +143 -0
- package/dist/useAiChat.js.map +1 -0
- package/dist/webAccountMessages.d.ts +24 -0
- package/dist/webAccountMessages.js +130 -0
- package/dist/webAccountMessages.js.map +1 -0
- package/package.json +53 -4
package/dist/styles.css
ADDED
|
@@ -0,0 +1,1721 @@
|
|
|
1
|
+
/* ../design/tokens.css */
|
|
2
|
+
:root {
|
|
3
|
+
--aic-font: inherit;
|
|
4
|
+
--aic-mono:
|
|
5
|
+
"Reddit Mono",
|
|
6
|
+
ui-monospace,
|
|
7
|
+
"SF Mono",
|
|
8
|
+
Menlo,
|
|
9
|
+
monospace;
|
|
10
|
+
--aic-ink: #0b0d12;
|
|
11
|
+
--aic-muted: #5e636d;
|
|
12
|
+
--aic-surface: #ffffff;
|
|
13
|
+
--aic-ground: #f6f7f9;
|
|
14
|
+
--aic-border: #e6e8ec;
|
|
15
|
+
--aic-accent: #0b0d12;
|
|
16
|
+
--aic-accent-ink: #ffffff;
|
|
17
|
+
--aic-cyan: #0ab9f7;
|
|
18
|
+
--aic-cyan-soft: #7fddfb;
|
|
19
|
+
--aic-cyan-faint: #cff4fc;
|
|
20
|
+
--aic-halo: #e3f8fd;
|
|
21
|
+
--aic-chip: #ffffff;
|
|
22
|
+
--aic-chip-ink: #0b0d12;
|
|
23
|
+
--aic-stripe: #15161a;
|
|
24
|
+
--aic-danger: #c4321f;
|
|
25
|
+
--aic-focus: #046b92;
|
|
26
|
+
--aic-field-edge: #7c818b;
|
|
27
|
+
--aic-backdrop: rgba(11, 13, 18, 0.42);
|
|
28
|
+
--aic-shadow: 0 24px 64px rgba(11, 13, 18, 0.2);
|
|
29
|
+
--aic-radius: 24px;
|
|
30
|
+
--aic-width: 380px;
|
|
31
|
+
--aic-panel-width: 420px;
|
|
32
|
+
--aic-popup-width: 400px;
|
|
33
|
+
--aic-popup-height: 640px;
|
|
34
|
+
--aic-inline-height: 560px;
|
|
35
|
+
--aic-page-width: 760px;
|
|
36
|
+
--aic-layer: 990;
|
|
37
|
+
}
|
|
38
|
+
[data-aic-theme=dark] {
|
|
39
|
+
--aic-ink: #f3f4f6;
|
|
40
|
+
--aic-muted: #9aa0aa;
|
|
41
|
+
--aic-surface: #17181d;
|
|
42
|
+
--aic-ground: #0e0f13;
|
|
43
|
+
--aic-border: #2a2c33;
|
|
44
|
+
--aic-accent: #f3f4f6;
|
|
45
|
+
--aic-accent-ink: #0e0f13;
|
|
46
|
+
--aic-cyan-faint: #0f3a49;
|
|
47
|
+
--aic-focus: #0ab9f7;
|
|
48
|
+
--aic-field-edge: #747986;
|
|
49
|
+
--aic-halo: #0c2a35;
|
|
50
|
+
--aic-stripe: #050506;
|
|
51
|
+
--aic-danger: #ff8a7a;
|
|
52
|
+
--aic-backdrop: rgba(0, 0, 0, 0.6);
|
|
53
|
+
--aic-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
|
|
54
|
+
color-scheme: dark;
|
|
55
|
+
}
|
|
56
|
+
@media (prefers-color-scheme: dark) {
|
|
57
|
+
[data-aic-theme=auto] {
|
|
58
|
+
--aic-ink: #f3f4f6;
|
|
59
|
+
--aic-muted: #9aa0aa;
|
|
60
|
+
--aic-surface: #17181d;
|
|
61
|
+
--aic-ground: #0e0f13;
|
|
62
|
+
--aic-border: #2a2c33;
|
|
63
|
+
--aic-accent: #f3f4f6;
|
|
64
|
+
--aic-accent-ink: #0e0f13;
|
|
65
|
+
--aic-cyan-faint: #0f3a49;
|
|
66
|
+
--aic-focus: #0ab9f7;
|
|
67
|
+
--aic-field-edge: #747986;
|
|
68
|
+
--aic-halo: #0c2a35;
|
|
69
|
+
--aic-stripe: #050506;
|
|
70
|
+
--aic-danger: #ff8a7a;
|
|
71
|
+
--aic-backdrop: rgba(0, 0, 0, 0.6);
|
|
72
|
+
--aic-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
|
|
73
|
+
color-scheme: dark;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* src/modules/styles/base.css */
|
|
78
|
+
@keyframes aic-arc {
|
|
79
|
+
0%, 100% {
|
|
80
|
+
stroke: var(--aic-cyan-faint);
|
|
81
|
+
}
|
|
82
|
+
40% {
|
|
83
|
+
stroke: var(--aic-cyan);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@keyframes aic-pulse {
|
|
87
|
+
50% {
|
|
88
|
+
opacity: 0.35;
|
|
89
|
+
transform: scale(0.7);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.aic-module {
|
|
93
|
+
--aic-m-fill: var(--aic-fill, color-mix(in srgb, var(--aic-ink) 7%, var(--aic-surface)));
|
|
94
|
+
--aic-m-ink-2: var(--aic-ink-2, color-mix(in srgb, var(--aic-ink) 84%, var(--aic-surface)));
|
|
95
|
+
--aic-m-raise: 0 1px 2px rgba(11, 13, 18, 0.06), 0 8px 24px -16px rgba(11, 13, 18, 0.18);
|
|
96
|
+
--aic-m-lift: 0 1px 2px rgba(11, 13, 18, 0.08), 0 10px 22px -12px rgba(11, 13, 18, 0.26);
|
|
97
|
+
--aic-m-ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
font-family: var(--aic-font);
|
|
100
|
+
font-size: 16px;
|
|
101
|
+
line-height: 1.4;
|
|
102
|
+
letter-spacing: normal;
|
|
103
|
+
text-align: start;
|
|
104
|
+
text-transform: none;
|
|
105
|
+
-webkit-font-smoothing: antialiased;
|
|
106
|
+
}
|
|
107
|
+
.aic-module {
|
|
108
|
+
color: var(--aic-ink);
|
|
109
|
+
}
|
|
110
|
+
.aic-module *,
|
|
111
|
+
.aic-module *::before,
|
|
112
|
+
.aic-module *::after {
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
}
|
|
115
|
+
.aic-module[hidden] {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
.aic-module ::selection {
|
|
119
|
+
background: var(--aic-cyan-faint);
|
|
120
|
+
color: var(--aic-ink);
|
|
121
|
+
}
|
|
122
|
+
.aic-module button {
|
|
123
|
+
-webkit-tap-highlight-color: transparent;
|
|
124
|
+
}
|
|
125
|
+
.aic-module :is(button, a):focus-visible {
|
|
126
|
+
outline: 2px solid var(--aic-focus);
|
|
127
|
+
outline-offset: 3px;
|
|
128
|
+
}
|
|
129
|
+
.aic-visually-hidden {
|
|
130
|
+
position: absolute;
|
|
131
|
+
width: 1px;
|
|
132
|
+
height: 1px;
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
clip-path: inset(50%);
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
}
|
|
137
|
+
.aic-round {
|
|
138
|
+
flex: none;
|
|
139
|
+
display: grid;
|
|
140
|
+
place-items: center;
|
|
141
|
+
width: 36px;
|
|
142
|
+
height: 36px;
|
|
143
|
+
margin: 0;
|
|
144
|
+
padding: 0;
|
|
145
|
+
border: 0;
|
|
146
|
+
border-radius: 50%;
|
|
147
|
+
background: var(--aic-ground);
|
|
148
|
+
color: var(--aic-muted);
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
transition: background-color 160ms ease, color 160ms ease;
|
|
151
|
+
}
|
|
152
|
+
.aic-round:hover {
|
|
153
|
+
background: var(--aic-m-fill);
|
|
154
|
+
color: var(--aic-ink);
|
|
155
|
+
}
|
|
156
|
+
.aic-button {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
min-height: 44px;
|
|
161
|
+
margin: 8px 0 0;
|
|
162
|
+
padding: 0 20px;
|
|
163
|
+
border: 0;
|
|
164
|
+
border-radius: 12px;
|
|
165
|
+
background: var(--aic-accent);
|
|
166
|
+
color: var(--aic-accent-ink);
|
|
167
|
+
font-family: inherit;
|
|
168
|
+
font-size: 15px;
|
|
169
|
+
font-weight: 800;
|
|
170
|
+
line-height: 1.2;
|
|
171
|
+
text-decoration: none;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
transition: transform 200ms var(--aic-m-ease);
|
|
174
|
+
}
|
|
175
|
+
.aic-button:hover {
|
|
176
|
+
transform: translateY(-1px);
|
|
177
|
+
}
|
|
178
|
+
.aic-text-button {
|
|
179
|
+
margin: 0;
|
|
180
|
+
padding: 4px 2px;
|
|
181
|
+
border: 0;
|
|
182
|
+
background: none;
|
|
183
|
+
color: var(--aic-ink);
|
|
184
|
+
font-family: inherit;
|
|
185
|
+
font-size: 14px;
|
|
186
|
+
font-weight: 700;
|
|
187
|
+
line-height: 1.3;
|
|
188
|
+
text-decoration: underline;
|
|
189
|
+
text-decoration-color: var(--aic-border);
|
|
190
|
+
text-decoration-thickness: 2px;
|
|
191
|
+
text-underline-offset: 4px;
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
}
|
|
194
|
+
.aic-text-button:hover {
|
|
195
|
+
text-decoration-color: currentColor;
|
|
196
|
+
}
|
|
197
|
+
.aic-live-arcs path,
|
|
198
|
+
.aic-module [data-live] .aic-account-arcs path {
|
|
199
|
+
animation: aic-arc 1.8s ease-out infinite;
|
|
200
|
+
}
|
|
201
|
+
.aic-live-arcs .aic-w2,
|
|
202
|
+
.aic-module [data-live] .aic-account-arcs .aic-w2 {
|
|
203
|
+
animation-delay: 0.18s;
|
|
204
|
+
}
|
|
205
|
+
.aic-live-arcs .aic-w3,
|
|
206
|
+
.aic-module [data-live] .aic-account-arcs .aic-w3 {
|
|
207
|
+
animation-delay: 0.36s;
|
|
208
|
+
}
|
|
209
|
+
[dir=rtl] .aic-arrow {
|
|
210
|
+
transform: scaleX(-1);
|
|
211
|
+
}
|
|
212
|
+
@media (prefers-reduced-motion: reduce) {
|
|
213
|
+
.aic-module *,
|
|
214
|
+
.aic-module *::before,
|
|
215
|
+
.aic-module *::after {
|
|
216
|
+
animation: none !important;
|
|
217
|
+
transition: none !important;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* src/modules/styles/launchers.css */
|
|
222
|
+
@keyframes aic-ripple {
|
|
223
|
+
from {
|
|
224
|
+
opacity: 0.55;
|
|
225
|
+
transform: scale(1);
|
|
226
|
+
}
|
|
227
|
+
to {
|
|
228
|
+
opacity: 0;
|
|
229
|
+
transform: scale(1.55);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
.aic-launcher,
|
|
233
|
+
.aic-fab {
|
|
234
|
+
--aic-m-fill: var(--aic-fill, color-mix(in srgb, var(--aic-ink) 7%, var(--aic-surface)));
|
|
235
|
+
--aic-m-lift: 0 1px 2px rgba(11, 13, 18, 0.08), 0 10px 22px -12px rgba(11, 13, 18, 0.26);
|
|
236
|
+
--aic-m-ease: cubic-bezier(0.16, 1, 0.3, 1);
|
|
237
|
+
box-sizing: border-box;
|
|
238
|
+
font-family: var(--aic-font);
|
|
239
|
+
font-size: 16px;
|
|
240
|
+
line-height: 1.4;
|
|
241
|
+
letter-spacing: normal;
|
|
242
|
+
text-align: start;
|
|
243
|
+
text-transform: none;
|
|
244
|
+
-webkit-font-smoothing: antialiased;
|
|
245
|
+
-webkit-tap-highlight-color: transparent;
|
|
246
|
+
}
|
|
247
|
+
.aic-launcher:focus-visible,
|
|
248
|
+
.aic-fab:focus-visible {
|
|
249
|
+
outline: 2px solid var(--aic-focus);
|
|
250
|
+
outline-offset: 3px;
|
|
251
|
+
}
|
|
252
|
+
.aic-fab {
|
|
253
|
+
position: fixed;
|
|
254
|
+
right: 20px;
|
|
255
|
+
bottom: max(20px, env(safe-area-inset-bottom));
|
|
256
|
+
z-index: var(--aic-layer);
|
|
257
|
+
display: grid;
|
|
258
|
+
place-items: center;
|
|
259
|
+
width: 58px;
|
|
260
|
+
height: 58px;
|
|
261
|
+
margin: 0;
|
|
262
|
+
padding: 0;
|
|
263
|
+
border: 0;
|
|
264
|
+
border-radius: 50%;
|
|
265
|
+
background: var(--aic-accent);
|
|
266
|
+
color: var(--aic-accent-ink);
|
|
267
|
+
box-shadow: 0 2px 6px rgba(11, 13, 18, 0.16), 0 14px 28px -14px rgba(11, 13, 18, 0.7);
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
transition: transform 240ms var(--aic-m-ease);
|
|
270
|
+
}
|
|
271
|
+
.aic-fab[dir=rtl] {
|
|
272
|
+
right: auto;
|
|
273
|
+
left: 20px;
|
|
274
|
+
}
|
|
275
|
+
.aic-fab:hover {
|
|
276
|
+
transform: translateY(-2px);
|
|
277
|
+
}
|
|
278
|
+
.aic-fab:active {
|
|
279
|
+
transform: scale(0.96);
|
|
280
|
+
}
|
|
281
|
+
.aic-fab > * {
|
|
282
|
+
grid-area: 1 / 1;
|
|
283
|
+
transition: opacity 200ms ease, transform 280ms var(--aic-m-ease);
|
|
284
|
+
}
|
|
285
|
+
.aic-fab-close {
|
|
286
|
+
display: grid;
|
|
287
|
+
opacity: 0;
|
|
288
|
+
transform: rotate(-90deg) scale(0.6);
|
|
289
|
+
}
|
|
290
|
+
.aic-fab[data-open] .aic-fab-wave {
|
|
291
|
+
opacity: 0;
|
|
292
|
+
transform: rotate(90deg) scale(0.6);
|
|
293
|
+
}
|
|
294
|
+
.aic-fab[data-open] .aic-fab-close {
|
|
295
|
+
opacity: 1;
|
|
296
|
+
transform: none;
|
|
297
|
+
}
|
|
298
|
+
.aic-fab[data-live]::before,
|
|
299
|
+
.aic-fab[data-live]::after {
|
|
300
|
+
content: "";
|
|
301
|
+
position: absolute;
|
|
302
|
+
inset: 0;
|
|
303
|
+
border: 2px solid var(--aic-cyan);
|
|
304
|
+
border-radius: 50%;
|
|
305
|
+
animation: aic-ripple 2.4s ease-out infinite;
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
}
|
|
308
|
+
.aic-fab[data-live]::after {
|
|
309
|
+
animation-delay: 1.2s;
|
|
310
|
+
}
|
|
311
|
+
.aic-launcher {
|
|
312
|
+
display: inline-flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
gap: 8px;
|
|
315
|
+
height: 40px;
|
|
316
|
+
margin: 0;
|
|
317
|
+
padding-block: 0;
|
|
318
|
+
padding-inline: 12px 16px;
|
|
319
|
+
border: 0;
|
|
320
|
+
border-radius: 12px;
|
|
321
|
+
background: var(--aic-surface);
|
|
322
|
+
box-shadow: 0 0 0 1px var(--aic-border), 0 1px 2px rgba(11, 13, 18, 0.06);
|
|
323
|
+
color: var(--aic-ink);
|
|
324
|
+
font-family: inherit;
|
|
325
|
+
font-size: 15px;
|
|
326
|
+
font-weight: 700;
|
|
327
|
+
line-height: 1;
|
|
328
|
+
white-space: nowrap;
|
|
329
|
+
cursor: pointer;
|
|
330
|
+
transition: box-shadow 200ms var(--aic-m-ease), transform 200ms var(--aic-m-ease);
|
|
331
|
+
}
|
|
332
|
+
.aic-launcher:hover {
|
|
333
|
+
box-shadow: 0 0 0 1px var(--aic-border), var(--aic-m-lift);
|
|
334
|
+
transform: translateY(-1px);
|
|
335
|
+
}
|
|
336
|
+
.aic-launcher[aria-expanded=true] {
|
|
337
|
+
background: var(--aic-m-fill);
|
|
338
|
+
box-shadow: 0 0 0 1px var(--aic-border);
|
|
339
|
+
transform: none;
|
|
340
|
+
}
|
|
341
|
+
.aic-launcher-mark {
|
|
342
|
+
flex: none;
|
|
343
|
+
color: var(--aic-cyan);
|
|
344
|
+
}
|
|
345
|
+
@media (prefers-reduced-motion: reduce) {
|
|
346
|
+
.aic-fab,
|
|
347
|
+
.aic-fab *,
|
|
348
|
+
.aic-launcher {
|
|
349
|
+
animation: none !important;
|
|
350
|
+
transition: none !important;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* src/modules/styles/conversation.css */
|
|
355
|
+
.aic-head {
|
|
356
|
+
display: flex;
|
|
357
|
+
align-items: center;
|
|
358
|
+
gap: 8px;
|
|
359
|
+
min-height: 68px;
|
|
360
|
+
margin: 0;
|
|
361
|
+
padding-block: 12px;
|
|
362
|
+
padding-inline: 20px 14px;
|
|
363
|
+
border-block-end: 1px solid var(--aic-border);
|
|
364
|
+
}
|
|
365
|
+
.aic-head-text {
|
|
366
|
+
display: grid;
|
|
367
|
+
flex: 1;
|
|
368
|
+
gap: 3px;
|
|
369
|
+
min-width: 0;
|
|
370
|
+
container: aic-head / inline-size;
|
|
371
|
+
}
|
|
372
|
+
.aic-head-title {
|
|
373
|
+
margin: 0;
|
|
374
|
+
overflow: hidden;
|
|
375
|
+
color: var(--aic-ink);
|
|
376
|
+
font-family: inherit;
|
|
377
|
+
font-size: 17px;
|
|
378
|
+
font-weight: 800;
|
|
379
|
+
line-height: 1.2;
|
|
380
|
+
letter-spacing: -0.015em;
|
|
381
|
+
white-space: nowrap;
|
|
382
|
+
text-overflow: ellipsis;
|
|
383
|
+
}
|
|
384
|
+
.aic-account {
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
gap: 6px;
|
|
388
|
+
min-width: 0;
|
|
389
|
+
margin: 0;
|
|
390
|
+
overflow: hidden;
|
|
391
|
+
color: var(--aic-muted);
|
|
392
|
+
font-family: inherit;
|
|
393
|
+
font-size: 13px;
|
|
394
|
+
font-weight: 500;
|
|
395
|
+
line-height: 1.3;
|
|
396
|
+
}
|
|
397
|
+
.aic-keycard {
|
|
398
|
+
position: relative;
|
|
399
|
+
flex: none;
|
|
400
|
+
width: 24px;
|
|
401
|
+
height: 16px;
|
|
402
|
+
overflow: hidden;
|
|
403
|
+
border-radius: 4px;
|
|
404
|
+
background:
|
|
405
|
+
linear-gradient(
|
|
406
|
+
150deg,
|
|
407
|
+
color-mix(in srgb, var(--aic-surface) 70%, transparent),
|
|
408
|
+
transparent 55%),
|
|
409
|
+
color-mix(in srgb, var(--aic-ink) 13%, var(--aic-surface));
|
|
410
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--aic-ink) 10%, transparent);
|
|
411
|
+
}
|
|
412
|
+
.aic-keycard::after {
|
|
413
|
+
content: "";
|
|
414
|
+
position: absolute;
|
|
415
|
+
inset-inline: 0;
|
|
416
|
+
top: 52%;
|
|
417
|
+
height: 3.5px;
|
|
418
|
+
background: var(--aic-stripe);
|
|
419
|
+
}
|
|
420
|
+
.aic-account-arcs {
|
|
421
|
+
flex: none;
|
|
422
|
+
margin-inline-start: -2px;
|
|
423
|
+
}
|
|
424
|
+
.aic-account-arcs path {
|
|
425
|
+
stroke: var(--aic-cyan-soft);
|
|
426
|
+
}
|
|
427
|
+
.aic-account-name {
|
|
428
|
+
flex: none;
|
|
429
|
+
white-space: nowrap;
|
|
430
|
+
}
|
|
431
|
+
.aic-account-name b {
|
|
432
|
+
color: var(--aic-ink);
|
|
433
|
+
font-weight: 700;
|
|
434
|
+
}
|
|
435
|
+
.aic-account-model,
|
|
436
|
+
.aic-tool-name {
|
|
437
|
+
direction: ltr;
|
|
438
|
+
unicode-bidi: isolate;
|
|
439
|
+
}
|
|
440
|
+
.aic-account-model {
|
|
441
|
+
flex: 0 1 auto;
|
|
442
|
+
min-width: 0;
|
|
443
|
+
overflow: hidden;
|
|
444
|
+
padding: 1px 7px;
|
|
445
|
+
border-radius: 999px;
|
|
446
|
+
background: var(--aic-m-fill);
|
|
447
|
+
color: var(--aic-muted);
|
|
448
|
+
font-family: var(--aic-mono);
|
|
449
|
+
font-size: 12px;
|
|
450
|
+
font-weight: 600;
|
|
451
|
+
line-height: 1.5;
|
|
452
|
+
white-space: nowrap;
|
|
453
|
+
text-overflow: ellipsis;
|
|
454
|
+
}
|
|
455
|
+
.aic-account[data-web] .aic-account-model {
|
|
456
|
+
flex: none;
|
|
457
|
+
}
|
|
458
|
+
.aic-account[data-web] .aic-account-name {
|
|
459
|
+
flex: 0 1 auto;
|
|
460
|
+
min-width: 0;
|
|
461
|
+
overflow: hidden;
|
|
462
|
+
text-overflow: ellipsis;
|
|
463
|
+
}
|
|
464
|
+
@container aic-head (max-width: 300px) {
|
|
465
|
+
.aic-account[data-web] .aic-account-lead {
|
|
466
|
+
display: none;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
.aic-log {
|
|
470
|
+
flex: 1;
|
|
471
|
+
min-height: 0;
|
|
472
|
+
overflow-y: auto;
|
|
473
|
+
overscroll-behavior: contain;
|
|
474
|
+
padding: 18px 20px 12px;
|
|
475
|
+
scrollbar-width: thin;
|
|
476
|
+
scrollbar-color: var(--aic-border) transparent;
|
|
477
|
+
}
|
|
478
|
+
.aic-turns {
|
|
479
|
+
display: flex;
|
|
480
|
+
flex-direction: column;
|
|
481
|
+
gap: 26px;
|
|
482
|
+
margin: 0;
|
|
483
|
+
padding: 0;
|
|
484
|
+
list-style: none;
|
|
485
|
+
}
|
|
486
|
+
.aic-turn {
|
|
487
|
+
display: grid;
|
|
488
|
+
grid-template-columns: minmax(0, 1fr);
|
|
489
|
+
justify-items: start;
|
|
490
|
+
gap: 10px;
|
|
491
|
+
margin: 0;
|
|
492
|
+
padding: 0;
|
|
493
|
+
}
|
|
494
|
+
.aic-question {
|
|
495
|
+
justify-self: end;
|
|
496
|
+
max-width: 86%;
|
|
497
|
+
margin: 0;
|
|
498
|
+
padding: 10px 15px;
|
|
499
|
+
border-radius: 18px;
|
|
500
|
+
border-end-end-radius: 6px;
|
|
501
|
+
background: var(--aic-m-fill);
|
|
502
|
+
color: var(--aic-ink);
|
|
503
|
+
font-family: inherit;
|
|
504
|
+
font-size: 15px;
|
|
505
|
+
font-weight: 500;
|
|
506
|
+
line-height: 1.45;
|
|
507
|
+
white-space: pre-wrap;
|
|
508
|
+
overflow-wrap: anywhere;
|
|
509
|
+
}
|
|
510
|
+
.aic-tools {
|
|
511
|
+
display: flex;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
align-items: flex-start;
|
|
514
|
+
gap: 6px;
|
|
515
|
+
max-width: 100%;
|
|
516
|
+
margin: 0;
|
|
517
|
+
padding: 0;
|
|
518
|
+
list-style: none;
|
|
519
|
+
}
|
|
520
|
+
.aic-tool {
|
|
521
|
+
display: inline-flex;
|
|
522
|
+
align-items: center;
|
|
523
|
+
gap: 8px;
|
|
524
|
+
max-width: 100%;
|
|
525
|
+
margin: 0;
|
|
526
|
+
padding-block: 6px;
|
|
527
|
+
padding-inline: 7px 12px;
|
|
528
|
+
border-radius: 12px;
|
|
529
|
+
background: var(--aic-surface);
|
|
530
|
+
box-shadow: 0 0 0 1px var(--aic-border);
|
|
531
|
+
color: var(--aic-muted);
|
|
532
|
+
font-family: inherit;
|
|
533
|
+
font-size: 12.5px;
|
|
534
|
+
font-weight: 500;
|
|
535
|
+
line-height: 1.3;
|
|
536
|
+
animation: aic-rise-in 220ms var(--aic-m-ease);
|
|
537
|
+
}
|
|
538
|
+
.aic-tool-light {
|
|
539
|
+
position: relative;
|
|
540
|
+
flex: none;
|
|
541
|
+
display: grid;
|
|
542
|
+
place-items: center;
|
|
543
|
+
width: 20px;
|
|
544
|
+
height: 20px;
|
|
545
|
+
border-radius: 50%;
|
|
546
|
+
background: var(--aic-halo);
|
|
547
|
+
color: var(--aic-cyan);
|
|
548
|
+
}
|
|
549
|
+
.aic-tool[data-status=running] .aic-tool-light::before {
|
|
550
|
+
content: "";
|
|
551
|
+
width: 7px;
|
|
552
|
+
height: 7px;
|
|
553
|
+
border-radius: 50%;
|
|
554
|
+
background: var(--aic-cyan);
|
|
555
|
+
animation: aic-pulse 1.1s ease-in-out infinite;
|
|
556
|
+
}
|
|
557
|
+
.aic-tool[data-status=failed] .aic-tool-light {
|
|
558
|
+
background: color-mix(in srgb, var(--aic-danger) 14%, var(--aic-surface));
|
|
559
|
+
}
|
|
560
|
+
.aic-tool[data-status=failed] .aic-tool-light::before {
|
|
561
|
+
content: "";
|
|
562
|
+
width: 7px;
|
|
563
|
+
height: 7px;
|
|
564
|
+
border-radius: 50%;
|
|
565
|
+
background: var(--aic-danger);
|
|
566
|
+
}
|
|
567
|
+
.aic-tool-name {
|
|
568
|
+
flex: none;
|
|
569
|
+
margin: 0;
|
|
570
|
+
padding: 0;
|
|
571
|
+
background: none;
|
|
572
|
+
color: var(--aic-ink);
|
|
573
|
+
font-family: var(--aic-mono);
|
|
574
|
+
font-size: 13px;
|
|
575
|
+
font-weight: 600;
|
|
576
|
+
line-height: 1.3;
|
|
577
|
+
letter-spacing: -0.01em;
|
|
578
|
+
}
|
|
579
|
+
.aic-tool-label {
|
|
580
|
+
flex: none;
|
|
581
|
+
color: var(--aic-ink);
|
|
582
|
+
font-weight: 700;
|
|
583
|
+
}
|
|
584
|
+
.aic-tool-args {
|
|
585
|
+
min-width: 0;
|
|
586
|
+
overflow: hidden;
|
|
587
|
+
white-space: nowrap;
|
|
588
|
+
text-overflow: ellipsis;
|
|
589
|
+
}
|
|
590
|
+
.aic-tool-failed {
|
|
591
|
+
flex: none;
|
|
592
|
+
color: var(--aic-danger);
|
|
593
|
+
font-weight: 700;
|
|
594
|
+
}
|
|
595
|
+
.aic-thinking {
|
|
596
|
+
display: inline-flex;
|
|
597
|
+
align-items: center;
|
|
598
|
+
gap: 8px;
|
|
599
|
+
margin: 0;
|
|
600
|
+
color: var(--aic-muted);
|
|
601
|
+
font-family: inherit;
|
|
602
|
+
font-size: 14px;
|
|
603
|
+
font-weight: 600;
|
|
604
|
+
line-height: 1.3;
|
|
605
|
+
}
|
|
606
|
+
.aic-stopped {
|
|
607
|
+
display: inline-flex;
|
|
608
|
+
align-items: center;
|
|
609
|
+
gap: 7px;
|
|
610
|
+
margin: 0;
|
|
611
|
+
color: var(--aic-muted);
|
|
612
|
+
font-family: inherit;
|
|
613
|
+
font-size: 13px;
|
|
614
|
+
font-weight: 600;
|
|
615
|
+
line-height: 1.3;
|
|
616
|
+
}
|
|
617
|
+
.aic-stopped i {
|
|
618
|
+
width: 8px;
|
|
619
|
+
height: 8px;
|
|
620
|
+
border-radius: 2px;
|
|
621
|
+
background: currentColor;
|
|
622
|
+
}
|
|
623
|
+
.aic-results {
|
|
624
|
+
width: 100%;
|
|
625
|
+
margin-block-start: 2px;
|
|
626
|
+
}
|
|
627
|
+
.aic-error {
|
|
628
|
+
display: flex;
|
|
629
|
+
flex-wrap: wrap;
|
|
630
|
+
align-items: baseline;
|
|
631
|
+
gap: 4px 12px;
|
|
632
|
+
margin: 16px 0 0;
|
|
633
|
+
padding: 12px 14px;
|
|
634
|
+
border-radius: 14px;
|
|
635
|
+
background: color-mix(in srgb, var(--aic-danger) 9%, var(--aic-surface));
|
|
636
|
+
color: var(--aic-danger);
|
|
637
|
+
font-family: inherit;
|
|
638
|
+
font-size: 14px;
|
|
639
|
+
font-weight: 600;
|
|
640
|
+
line-height: 1.45;
|
|
641
|
+
}
|
|
642
|
+
.aic-error p {
|
|
643
|
+
flex: 1 1 200px;
|
|
644
|
+
margin: 0;
|
|
645
|
+
}
|
|
646
|
+
.aic-error .aic-text-button {
|
|
647
|
+
color: inherit;
|
|
648
|
+
}
|
|
649
|
+
@keyframes aic-rise-in {
|
|
650
|
+
from {
|
|
651
|
+
opacity: 0;
|
|
652
|
+
transform: translateY(4px);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/* src/modules/styles/answer.css */
|
|
657
|
+
.aic-answer {
|
|
658
|
+
display: grid;
|
|
659
|
+
gap: 10px;
|
|
660
|
+
width: 100%;
|
|
661
|
+
color: var(--aic-m-ink-2);
|
|
662
|
+
font-family: inherit;
|
|
663
|
+
font-size: 16px;
|
|
664
|
+
font-weight: 400;
|
|
665
|
+
line-height: 1.55;
|
|
666
|
+
overflow-wrap: anywhere;
|
|
667
|
+
}
|
|
668
|
+
.aic-answer :is(p, li),
|
|
669
|
+
.aic-question {
|
|
670
|
+
unicode-bidi: plaintext;
|
|
671
|
+
}
|
|
672
|
+
.aic-answer p {
|
|
673
|
+
margin: 0;
|
|
674
|
+
white-space: pre-wrap;
|
|
675
|
+
}
|
|
676
|
+
.aic-answer .aic-answer-heading {
|
|
677
|
+
margin-block-start: 4px;
|
|
678
|
+
color: var(--aic-ink);
|
|
679
|
+
font-weight: 800;
|
|
680
|
+
}
|
|
681
|
+
.aic-answer :is(strong, b) {
|
|
682
|
+
color: var(--aic-ink);
|
|
683
|
+
font-weight: 700;
|
|
684
|
+
}
|
|
685
|
+
.aic-answer :is(ul, ol) {
|
|
686
|
+
display: grid;
|
|
687
|
+
gap: 5px;
|
|
688
|
+
margin: 0;
|
|
689
|
+
padding-inline-start: 22px;
|
|
690
|
+
}
|
|
691
|
+
.aic-answer ul {
|
|
692
|
+
list-style: disc;
|
|
693
|
+
}
|
|
694
|
+
.aic-answer ol {
|
|
695
|
+
list-style: decimal;
|
|
696
|
+
}
|
|
697
|
+
.aic-answer li {
|
|
698
|
+
margin: 0;
|
|
699
|
+
padding-inline-start: 2px;
|
|
700
|
+
}
|
|
701
|
+
.aic-answer li::marker {
|
|
702
|
+
color: var(--aic-muted);
|
|
703
|
+
}
|
|
704
|
+
.aic-answer code {
|
|
705
|
+
padding: 1px 5px;
|
|
706
|
+
border-radius: 6px;
|
|
707
|
+
background: var(--aic-m-fill);
|
|
708
|
+
color: var(--aic-ink);
|
|
709
|
+
font-family: var(--aic-mono);
|
|
710
|
+
font-size: 0.86em;
|
|
711
|
+
font-weight: 600;
|
|
712
|
+
}
|
|
713
|
+
.aic-answer a {
|
|
714
|
+
color: var(--aic-ink);
|
|
715
|
+
font-weight: 700;
|
|
716
|
+
text-decoration: underline;
|
|
717
|
+
text-decoration-color: var(--aic-border);
|
|
718
|
+
text-decoration-thickness: 2px;
|
|
719
|
+
text-underline-offset: 3px;
|
|
720
|
+
}
|
|
721
|
+
.aic-answer a:hover {
|
|
722
|
+
text-decoration-color: currentColor;
|
|
723
|
+
}
|
|
724
|
+
.aic-caret {
|
|
725
|
+
display: inline-block;
|
|
726
|
+
width: 8px;
|
|
727
|
+
height: 1.05em;
|
|
728
|
+
margin-inline-start: 3px;
|
|
729
|
+
vertical-align: -0.17em;
|
|
730
|
+
border-radius: 2px;
|
|
731
|
+
background: var(--aic-cyan);
|
|
732
|
+
}
|
|
733
|
+
.aic-answer[data-blocked] {
|
|
734
|
+
color: var(--aic-muted);
|
|
735
|
+
font-style: italic;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/* src/modules/styles/prompt.css */
|
|
739
|
+
.aic-empty {
|
|
740
|
+
display: grid;
|
|
741
|
+
gap: 16px;
|
|
742
|
+
padding-block: 4px 18px;
|
|
743
|
+
}
|
|
744
|
+
.aic-empty-ring {
|
|
745
|
+
display: none;
|
|
746
|
+
}
|
|
747
|
+
.aic-intro {
|
|
748
|
+
margin: 0;
|
|
749
|
+
color: var(--aic-ink);
|
|
750
|
+
font-family: inherit;
|
|
751
|
+
font-size: 22px;
|
|
752
|
+
font-weight: 800;
|
|
753
|
+
line-height: 1.15;
|
|
754
|
+
letter-spacing: -0.02em;
|
|
755
|
+
text-wrap: balance;
|
|
756
|
+
}
|
|
757
|
+
.aic-suggestions {
|
|
758
|
+
display: grid;
|
|
759
|
+
gap: 8px;
|
|
760
|
+
margin: 0;
|
|
761
|
+
padding: 0;
|
|
762
|
+
list-style: none;
|
|
763
|
+
}
|
|
764
|
+
.aic-suggestions li {
|
|
765
|
+
margin: 0;
|
|
766
|
+
}
|
|
767
|
+
.aic-suggestion {
|
|
768
|
+
display: flex;
|
|
769
|
+
align-items: center;
|
|
770
|
+
justify-content: space-between;
|
|
771
|
+
gap: 12px;
|
|
772
|
+
width: 100%;
|
|
773
|
+
min-height: 50px;
|
|
774
|
+
margin: 0;
|
|
775
|
+
padding-block: 12px;
|
|
776
|
+
padding-inline: 16px 14px;
|
|
777
|
+
border: 0;
|
|
778
|
+
border-radius: 14px;
|
|
779
|
+
background: var(--aic-surface);
|
|
780
|
+
box-shadow: 0 0 0 1px var(--aic-border), var(--aic-m-raise);
|
|
781
|
+
color: var(--aic-ink);
|
|
782
|
+
font-family: inherit;
|
|
783
|
+
font-size: 15px;
|
|
784
|
+
font-weight: 600;
|
|
785
|
+
line-height: 1.35;
|
|
786
|
+
text-align: start;
|
|
787
|
+
cursor: pointer;
|
|
788
|
+
transition: box-shadow 200ms var(--aic-m-ease), transform 200ms var(--aic-m-ease);
|
|
789
|
+
}
|
|
790
|
+
.aic-suggestion .aic-arrow {
|
|
791
|
+
flex: none;
|
|
792
|
+
color: var(--aic-muted);
|
|
793
|
+
transition: color 200ms ease;
|
|
794
|
+
}
|
|
795
|
+
.aic-suggestion:hover {
|
|
796
|
+
box-shadow: 0 0 0 1px var(--aic-border), var(--aic-m-lift);
|
|
797
|
+
transform: translateY(-1px);
|
|
798
|
+
}
|
|
799
|
+
.aic-suggestion:hover .aic-arrow {
|
|
800
|
+
color: var(--aic-ink);
|
|
801
|
+
}
|
|
802
|
+
.aic-note {
|
|
803
|
+
display: grid;
|
|
804
|
+
justify-items: center;
|
|
805
|
+
gap: 4px;
|
|
806
|
+
width: 100%;
|
|
807
|
+
margin: 0;
|
|
808
|
+
padding: 2px 18px 20px;
|
|
809
|
+
border-radius: 20px;
|
|
810
|
+
background: var(--aic-ground);
|
|
811
|
+
text-align: center;
|
|
812
|
+
}
|
|
813
|
+
.aic-note .aic-ring {
|
|
814
|
+
height: 100px;
|
|
815
|
+
}
|
|
816
|
+
.aic-note .aic-disc {
|
|
817
|
+
width: 66px;
|
|
818
|
+
height: 66px;
|
|
819
|
+
box-shadow: 0 0 0 6px var(--aic-halo), 0 14px 26px -14px rgba(10, 185, 247, 0.55);
|
|
820
|
+
}
|
|
821
|
+
.aic-note .aic-disc svg {
|
|
822
|
+
width: 28px;
|
|
823
|
+
height: 28px;
|
|
824
|
+
}
|
|
825
|
+
.aic-note-copy {
|
|
826
|
+
display: grid;
|
|
827
|
+
gap: 4px;
|
|
828
|
+
max-width: 36ch;
|
|
829
|
+
}
|
|
830
|
+
.aic-note-title {
|
|
831
|
+
margin: 0;
|
|
832
|
+
color: var(--aic-ink);
|
|
833
|
+
font-family: inherit;
|
|
834
|
+
font-size: 17px;
|
|
835
|
+
font-weight: 800;
|
|
836
|
+
line-height: 1.25;
|
|
837
|
+
letter-spacing: -0.01em;
|
|
838
|
+
text-wrap: balance;
|
|
839
|
+
}
|
|
840
|
+
.aic-note-text {
|
|
841
|
+
margin: 0;
|
|
842
|
+
color: var(--aic-muted);
|
|
843
|
+
font-family: inherit;
|
|
844
|
+
font-size: 14px;
|
|
845
|
+
font-weight: 400;
|
|
846
|
+
line-height: 1.45;
|
|
847
|
+
text-wrap: pretty;
|
|
848
|
+
}
|
|
849
|
+
.aic-note[data-compact] {
|
|
850
|
+
display: flex;
|
|
851
|
+
flex-wrap: wrap;
|
|
852
|
+
align-items: center;
|
|
853
|
+
justify-content: space-between;
|
|
854
|
+
gap: 12px 16px;
|
|
855
|
+
padding: 14px 16px;
|
|
856
|
+
border-radius: 14px;
|
|
857
|
+
text-align: start;
|
|
858
|
+
}
|
|
859
|
+
.aic-note[data-compact] .aic-note-copy {
|
|
860
|
+
flex: 1 1 15rem;
|
|
861
|
+
}
|
|
862
|
+
.aic-note[data-compact] .aic-ring {
|
|
863
|
+
display: none;
|
|
864
|
+
}
|
|
865
|
+
.aic-note[data-compact] .aic-button {
|
|
866
|
+
margin: 0;
|
|
867
|
+
}
|
|
868
|
+
.aic-composer {
|
|
869
|
+
display: block;
|
|
870
|
+
flex: none;
|
|
871
|
+
margin: 0;
|
|
872
|
+
padding: 8px 14px 14px;
|
|
873
|
+
}
|
|
874
|
+
.aic-field {
|
|
875
|
+
display: flex;
|
|
876
|
+
align-items: flex-end;
|
|
877
|
+
gap: 8px;
|
|
878
|
+
min-height: 52px;
|
|
879
|
+
margin: 0;
|
|
880
|
+
padding-block: 6px;
|
|
881
|
+
padding-inline: 16px 6px;
|
|
882
|
+
border: 1px solid var(--aic-field-edge);
|
|
883
|
+
border-radius: 16px;
|
|
884
|
+
background: var(--aic-surface);
|
|
885
|
+
box-shadow: var(--aic-m-raise);
|
|
886
|
+
transition: border-color 160ms ease, box-shadow 160ms ease;
|
|
887
|
+
}
|
|
888
|
+
.aic-field:focus-within {
|
|
889
|
+
border-color: var(--aic-focus);
|
|
890
|
+
box-shadow: 0 0 0 1px var(--aic-focus), 0 0 0 4px var(--aic-cyan-faint);
|
|
891
|
+
}
|
|
892
|
+
.aic-field-input {
|
|
893
|
+
flex: 1;
|
|
894
|
+
align-self: center;
|
|
895
|
+
min-width: 0;
|
|
896
|
+
max-height: 168px;
|
|
897
|
+
margin: 0;
|
|
898
|
+
padding: 8px 0;
|
|
899
|
+
border: 0;
|
|
900
|
+
outline: 0;
|
|
901
|
+
background: transparent;
|
|
902
|
+
box-shadow: none;
|
|
903
|
+
color: var(--aic-ink);
|
|
904
|
+
font-family: inherit;
|
|
905
|
+
font-size: 16px;
|
|
906
|
+
font-weight: 500;
|
|
907
|
+
line-height: 1.4;
|
|
908
|
+
caret-color: var(--aic-cyan);
|
|
909
|
+
resize: none;
|
|
910
|
+
overflow-y: hidden;
|
|
911
|
+
}
|
|
912
|
+
:is(.aic-field-input, .aic-search-input):focus {
|
|
913
|
+
outline: none;
|
|
914
|
+
}
|
|
915
|
+
.aic-field-input::placeholder,
|
|
916
|
+
.aic-search-input::placeholder {
|
|
917
|
+
color: var(--aic-muted);
|
|
918
|
+
opacity: 1;
|
|
919
|
+
}
|
|
920
|
+
.aic-send {
|
|
921
|
+
flex: none;
|
|
922
|
+
display: grid;
|
|
923
|
+
place-items: center;
|
|
924
|
+
width: 38px;
|
|
925
|
+
height: 38px;
|
|
926
|
+
margin: 0;
|
|
927
|
+
padding: 0;
|
|
928
|
+
border: 0;
|
|
929
|
+
border-radius: 50%;
|
|
930
|
+
background: var(--aic-accent);
|
|
931
|
+
color: var(--aic-accent-ink);
|
|
932
|
+
cursor: pointer;
|
|
933
|
+
transition:
|
|
934
|
+
background-color 160ms ease,
|
|
935
|
+
color 160ms ease,
|
|
936
|
+
transform 200ms var(--aic-m-ease);
|
|
937
|
+
}
|
|
938
|
+
.aic-send:not(:disabled):hover {
|
|
939
|
+
transform: translateY(-1px);
|
|
940
|
+
}
|
|
941
|
+
.aic-send:disabled {
|
|
942
|
+
background: var(--aic-m-fill);
|
|
943
|
+
color: var(--aic-muted);
|
|
944
|
+
cursor: default;
|
|
945
|
+
}
|
|
946
|
+
.aic-stop {
|
|
947
|
+
flex: none;
|
|
948
|
+
display: inline-flex;
|
|
949
|
+
align-items: center;
|
|
950
|
+
gap: 8px;
|
|
951
|
+
height: 38px;
|
|
952
|
+
margin: 0;
|
|
953
|
+
padding-block: 0;
|
|
954
|
+
padding-inline: 13px 15px;
|
|
955
|
+
border: 0;
|
|
956
|
+
border-radius: 12px;
|
|
957
|
+
background: var(--aic-accent);
|
|
958
|
+
color: var(--aic-accent-ink);
|
|
959
|
+
font-family: inherit;
|
|
960
|
+
font-size: 14px;
|
|
961
|
+
font-weight: 800;
|
|
962
|
+
line-height: 1;
|
|
963
|
+
cursor: pointer;
|
|
964
|
+
}
|
|
965
|
+
.aic-stop i {
|
|
966
|
+
width: 10px;
|
|
967
|
+
height: 10px;
|
|
968
|
+
border-radius: 2.5px;
|
|
969
|
+
background: currentColor;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/* src/modules/styles/forms.css */
|
|
973
|
+
@keyframes aic-slide-in {
|
|
974
|
+
from {
|
|
975
|
+
opacity: 0;
|
|
976
|
+
transform: translateX(var(--aic-m-slide));
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
@keyframes aic-pop-in {
|
|
980
|
+
from {
|
|
981
|
+
opacity: 0;
|
|
982
|
+
transform: translateY(10px) scale(0.97);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
@keyframes aic-fade-up {
|
|
986
|
+
from {
|
|
987
|
+
opacity: 0;
|
|
988
|
+
transform: translateY(12px);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
.aic-inline,
|
|
992
|
+
.aic-panel,
|
|
993
|
+
.aic-popup,
|
|
994
|
+
.aic-page-column {
|
|
995
|
+
display: flex;
|
|
996
|
+
flex-direction: column;
|
|
997
|
+
min-width: 0;
|
|
998
|
+
}
|
|
999
|
+
:is(.aic-panel, .aic-popup, .aic-page):focus {
|
|
1000
|
+
outline: none;
|
|
1001
|
+
}
|
|
1002
|
+
.aic-inline {
|
|
1003
|
+
width: 100%;
|
|
1004
|
+
height: var(--aic-inline-height);
|
|
1005
|
+
overflow: hidden;
|
|
1006
|
+
border: 1px solid var(--aic-border);
|
|
1007
|
+
border-radius: var(--aic-radius);
|
|
1008
|
+
background: var(--aic-surface);
|
|
1009
|
+
box-shadow: var(--aic-m-raise);
|
|
1010
|
+
}
|
|
1011
|
+
.aic-panel {
|
|
1012
|
+
--aic-m-slide: 28px;
|
|
1013
|
+
position: fixed;
|
|
1014
|
+
inset-block: 0;
|
|
1015
|
+
right: 0;
|
|
1016
|
+
z-index: var(--aic-layer);
|
|
1017
|
+
width: min(var(--aic-panel-width), 100vw);
|
|
1018
|
+
padding-block-start: env(safe-area-inset-top);
|
|
1019
|
+
border-inline-start: 1px solid var(--aic-border);
|
|
1020
|
+
background: var(--aic-surface);
|
|
1021
|
+
box-shadow: var(--aic-shadow);
|
|
1022
|
+
animation: aic-slide-in 280ms var(--aic-m-ease);
|
|
1023
|
+
}
|
|
1024
|
+
.aic-panel[dir=rtl] {
|
|
1025
|
+
--aic-m-slide: -28px;
|
|
1026
|
+
right: auto;
|
|
1027
|
+
left: 0;
|
|
1028
|
+
}
|
|
1029
|
+
.aic-popup {
|
|
1030
|
+
position: fixed;
|
|
1031
|
+
right: 20px;
|
|
1032
|
+
bottom: calc(max(20px, env(safe-area-inset-bottom)) + 74px);
|
|
1033
|
+
z-index: var(--aic-layer);
|
|
1034
|
+
width: min(var(--aic-popup-width), calc(100vw - 32px));
|
|
1035
|
+
height: min(var(--aic-popup-height), calc(100dvh - 120px));
|
|
1036
|
+
overflow: hidden;
|
|
1037
|
+
border: 1px solid var(--aic-border);
|
|
1038
|
+
border-radius: var(--aic-radius);
|
|
1039
|
+
background: var(--aic-surface);
|
|
1040
|
+
box-shadow: var(--aic-shadow);
|
|
1041
|
+
transform-origin: bottom right;
|
|
1042
|
+
animation: aic-pop-in 240ms var(--aic-m-ease);
|
|
1043
|
+
}
|
|
1044
|
+
.aic-popup[dir=rtl] {
|
|
1045
|
+
right: auto;
|
|
1046
|
+
left: 20px;
|
|
1047
|
+
transform-origin: bottom left;
|
|
1048
|
+
}
|
|
1049
|
+
.aic-page {
|
|
1050
|
+
position: fixed;
|
|
1051
|
+
inset: 0;
|
|
1052
|
+
z-index: var(--aic-layer);
|
|
1053
|
+
display: flex;
|
|
1054
|
+
justify-content: center;
|
|
1055
|
+
background: var(--aic-ground);
|
|
1056
|
+
animation: aic-fade-up 260ms var(--aic-m-ease);
|
|
1057
|
+
}
|
|
1058
|
+
.aic-page-column {
|
|
1059
|
+
width: min(var(--aic-page-width), 100%);
|
|
1060
|
+
height: 100%;
|
|
1061
|
+
padding-block: env(safe-area-inset-top) env(safe-area-inset-bottom);
|
|
1062
|
+
}
|
|
1063
|
+
.aic-page .aic-head {
|
|
1064
|
+
min-height: 76px;
|
|
1065
|
+
padding-inline: 24px 18px;
|
|
1066
|
+
border-block-end: 0;
|
|
1067
|
+
}
|
|
1068
|
+
.aic-page .aic-head-title {
|
|
1069
|
+
font-size: 20px;
|
|
1070
|
+
}
|
|
1071
|
+
.aic-page .aic-round {
|
|
1072
|
+
background: var(--aic-surface);
|
|
1073
|
+
box-shadow: 0 0 0 1px var(--aic-border);
|
|
1074
|
+
}
|
|
1075
|
+
.aic-page .aic-log {
|
|
1076
|
+
padding: 8px 24px 16px;
|
|
1077
|
+
}
|
|
1078
|
+
.aic-page .aic-empty {
|
|
1079
|
+
align-content: center;
|
|
1080
|
+
justify-items: center;
|
|
1081
|
+
min-height: 100%;
|
|
1082
|
+
padding-block: 16px 40px;
|
|
1083
|
+
text-align: center;
|
|
1084
|
+
}
|
|
1085
|
+
.aic-page .aic-empty-ring {
|
|
1086
|
+
display: block;
|
|
1087
|
+
width: min(300px, 100%);
|
|
1088
|
+
}
|
|
1089
|
+
.aic-page .aic-empty-ring .aic-ring {
|
|
1090
|
+
height: 132px;
|
|
1091
|
+
}
|
|
1092
|
+
.aic-page .aic-empty-ring .aic-disc {
|
|
1093
|
+
width: 92px;
|
|
1094
|
+
height: 92px;
|
|
1095
|
+
}
|
|
1096
|
+
.aic-page .aic-empty-ring .aic-disc svg {
|
|
1097
|
+
width: 40px;
|
|
1098
|
+
height: 40px;
|
|
1099
|
+
}
|
|
1100
|
+
.aic-page .aic-empty:has(.aic-note) .aic-empty-ring {
|
|
1101
|
+
display: none;
|
|
1102
|
+
}
|
|
1103
|
+
.aic-page .aic-intro {
|
|
1104
|
+
max-width: 18ch;
|
|
1105
|
+
font-size: clamp(34px, 3.4vw, 48px);
|
|
1106
|
+
line-height: 1.08;
|
|
1107
|
+
letter-spacing: -0.03em;
|
|
1108
|
+
}
|
|
1109
|
+
.aic-page .aic-empty .aic-note {
|
|
1110
|
+
max-width: 460px;
|
|
1111
|
+
background: var(--aic-surface);
|
|
1112
|
+
box-shadow: var(--aic-m-raise);
|
|
1113
|
+
}
|
|
1114
|
+
.aic-page .aic-suggestions {
|
|
1115
|
+
width: min(520px, 100%);
|
|
1116
|
+
}
|
|
1117
|
+
.aic-page .aic-question,
|
|
1118
|
+
.aic-page .aic-tool {
|
|
1119
|
+
background: var(--aic-surface);
|
|
1120
|
+
box-shadow: 0 0 0 1px var(--aic-border);
|
|
1121
|
+
}
|
|
1122
|
+
.aic-page .aic-answer {
|
|
1123
|
+
font-size: 17px;
|
|
1124
|
+
line-height: 1.6;
|
|
1125
|
+
}
|
|
1126
|
+
.aic-page .aic-composer {
|
|
1127
|
+
padding: 8px 24px 24px;
|
|
1128
|
+
}
|
|
1129
|
+
.aic-page .aic-field {
|
|
1130
|
+
min-height: 60px;
|
|
1131
|
+
padding-block: 9px;
|
|
1132
|
+
padding-inline: 20px 9px;
|
|
1133
|
+
border-radius: 18px;
|
|
1134
|
+
}
|
|
1135
|
+
.aic-page .aic-field-input {
|
|
1136
|
+
font-size: 17px;
|
|
1137
|
+
}
|
|
1138
|
+
@media (max-width: 640px) {
|
|
1139
|
+
.aic-panel,
|
|
1140
|
+
.aic-popup {
|
|
1141
|
+
inset: 0;
|
|
1142
|
+
width: 100%;
|
|
1143
|
+
height: 100%;
|
|
1144
|
+
border: 0;
|
|
1145
|
+
border-radius: 0;
|
|
1146
|
+
}
|
|
1147
|
+
.aic-popup:not([hidden]) ~ .aic-fab {
|
|
1148
|
+
display: none;
|
|
1149
|
+
}
|
|
1150
|
+
.aic-head,
|
|
1151
|
+
.aic-page .aic-head {
|
|
1152
|
+
padding-inline: 16px 10px;
|
|
1153
|
+
}
|
|
1154
|
+
.aic-log,
|
|
1155
|
+
.aic-page .aic-log {
|
|
1156
|
+
padding-inline: 16px;
|
|
1157
|
+
}
|
|
1158
|
+
.aic-composer,
|
|
1159
|
+
.aic-page .aic-composer {
|
|
1160
|
+
padding: 8px 12px max(12px, env(safe-area-inset-bottom));
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/* src/modules/styles/search.css */
|
|
1165
|
+
.aic-search {
|
|
1166
|
+
display: grid;
|
|
1167
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1168
|
+
gap: 12px;
|
|
1169
|
+
width: 100%;
|
|
1170
|
+
}
|
|
1171
|
+
.aic-search-bar {
|
|
1172
|
+
display: flex;
|
|
1173
|
+
align-items: center;
|
|
1174
|
+
gap: 10px;
|
|
1175
|
+
min-height: 56px;
|
|
1176
|
+
margin: 0;
|
|
1177
|
+
padding-block: 6px;
|
|
1178
|
+
padding-inline: 18px 7px;
|
|
1179
|
+
border: 1px solid var(--aic-field-edge);
|
|
1180
|
+
border-radius: 16px;
|
|
1181
|
+
background: var(--aic-surface);
|
|
1182
|
+
box-shadow: var(--aic-m-raise);
|
|
1183
|
+
color: var(--aic-muted);
|
|
1184
|
+
transition: border-color 160ms ease, box-shadow 160ms ease;
|
|
1185
|
+
}
|
|
1186
|
+
.aic-search-bar:focus-within {
|
|
1187
|
+
border-color: var(--aic-focus);
|
|
1188
|
+
box-shadow: 0 0 0 1px var(--aic-focus), 0 0 0 4px var(--aic-cyan-faint);
|
|
1189
|
+
}
|
|
1190
|
+
.aic-search-bar > svg {
|
|
1191
|
+
flex: none;
|
|
1192
|
+
}
|
|
1193
|
+
.aic-search-input {
|
|
1194
|
+
flex: 1;
|
|
1195
|
+
min-width: 0;
|
|
1196
|
+
height: 42px;
|
|
1197
|
+
margin: 0;
|
|
1198
|
+
padding: 0;
|
|
1199
|
+
border: 0;
|
|
1200
|
+
outline: 0;
|
|
1201
|
+
background: transparent;
|
|
1202
|
+
box-shadow: none;
|
|
1203
|
+
color: var(--aic-ink);
|
|
1204
|
+
font-family: inherit;
|
|
1205
|
+
font-size: 17px;
|
|
1206
|
+
font-weight: 500;
|
|
1207
|
+
line-height: 1.3;
|
|
1208
|
+
caret-color: var(--aic-cyan);
|
|
1209
|
+
appearance: none;
|
|
1210
|
+
}
|
|
1211
|
+
.aic-search-input::-webkit-search-cancel-button,
|
|
1212
|
+
.aic-search-input::-webkit-search-decoration {
|
|
1213
|
+
appearance: none;
|
|
1214
|
+
}
|
|
1215
|
+
.aic-search-clear {
|
|
1216
|
+
flex: none;
|
|
1217
|
+
display: grid;
|
|
1218
|
+
place-items: center;
|
|
1219
|
+
width: 34px;
|
|
1220
|
+
height: 34px;
|
|
1221
|
+
margin: 0;
|
|
1222
|
+
padding: 0;
|
|
1223
|
+
border: 0;
|
|
1224
|
+
border-radius: 50%;
|
|
1225
|
+
background: transparent;
|
|
1226
|
+
color: var(--aic-muted);
|
|
1227
|
+
cursor: pointer;
|
|
1228
|
+
transition: background-color 160ms ease, color 160ms ease;
|
|
1229
|
+
}
|
|
1230
|
+
.aic-search-clear:hover {
|
|
1231
|
+
background: var(--aic-m-fill);
|
|
1232
|
+
color: var(--aic-ink);
|
|
1233
|
+
}
|
|
1234
|
+
.aic-search .aic-suggestions {
|
|
1235
|
+
display: flex;
|
|
1236
|
+
flex-wrap: wrap;
|
|
1237
|
+
gap: 8px;
|
|
1238
|
+
}
|
|
1239
|
+
.aic-search .aic-suggestion {
|
|
1240
|
+
width: auto;
|
|
1241
|
+
min-height: 36px;
|
|
1242
|
+
padding: 8px 14px;
|
|
1243
|
+
border-radius: 999px;
|
|
1244
|
+
background: var(--aic-m-fill);
|
|
1245
|
+
box-shadow: none;
|
|
1246
|
+
color: var(--aic-m-ink-2);
|
|
1247
|
+
font-size: 14px;
|
|
1248
|
+
}
|
|
1249
|
+
.aic-search .aic-suggestion:hover {
|
|
1250
|
+
box-shadow: 0 0 0 1px var(--aic-border);
|
|
1251
|
+
transform: none;
|
|
1252
|
+
}
|
|
1253
|
+
.aic-search .aic-suggestion .aic-arrow {
|
|
1254
|
+
display: none;
|
|
1255
|
+
}
|
|
1256
|
+
.aic-search-result {
|
|
1257
|
+
display: grid;
|
|
1258
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1259
|
+
justify-items: start;
|
|
1260
|
+
gap: 12px;
|
|
1261
|
+
padding: 18px 20px;
|
|
1262
|
+
border: 1px solid var(--aic-border);
|
|
1263
|
+
border-radius: 18px;
|
|
1264
|
+
background: var(--aic-surface);
|
|
1265
|
+
box-shadow: var(--aic-m-raise);
|
|
1266
|
+
animation: aic-rise-in 240ms var(--aic-m-ease);
|
|
1267
|
+
}
|
|
1268
|
+
.aic-search-result .aic-error {
|
|
1269
|
+
margin: 0;
|
|
1270
|
+
width: 100%;
|
|
1271
|
+
}
|
|
1272
|
+
.aic-search-result .aic-note[data-compact] {
|
|
1273
|
+
padding: 0;
|
|
1274
|
+
background: none;
|
|
1275
|
+
}
|
|
1276
|
+
.aic-search-foot {
|
|
1277
|
+
display: flex;
|
|
1278
|
+
align-items: center;
|
|
1279
|
+
width: 100%;
|
|
1280
|
+
margin: 2px 0 0;
|
|
1281
|
+
padding-block-start: 12px;
|
|
1282
|
+
border-block-start: 1px solid var(--aic-border);
|
|
1283
|
+
}
|
|
1284
|
+
.aic-search-foot .aic-account {
|
|
1285
|
+
flex: 1;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/* src/webAccounts.css */
|
|
1289
|
+
.aic-web,
|
|
1290
|
+
.aic-web-step {
|
|
1291
|
+
display: flex;
|
|
1292
|
+
flex-direction: column;
|
|
1293
|
+
align-items: stretch;
|
|
1294
|
+
gap: 8px;
|
|
1295
|
+
font-family: var(--aic-font);
|
|
1296
|
+
text-align: center;
|
|
1297
|
+
}
|
|
1298
|
+
.aic-web[data-placement=window] {
|
|
1299
|
+
margin-top: 12px;
|
|
1300
|
+
}
|
|
1301
|
+
.aic-web-separator {
|
|
1302
|
+
display: flex;
|
|
1303
|
+
align-items: center;
|
|
1304
|
+
gap: 10px;
|
|
1305
|
+
margin: 0 0 2px;
|
|
1306
|
+
color: var(--aic-muted);
|
|
1307
|
+
font-size: 13px;
|
|
1308
|
+
font-weight: 700;
|
|
1309
|
+
line-height: 1.3;
|
|
1310
|
+
}
|
|
1311
|
+
.aic-web-separator::before,
|
|
1312
|
+
.aic-web-separator::after {
|
|
1313
|
+
content: "";
|
|
1314
|
+
flex: 1;
|
|
1315
|
+
min-width: 16px;
|
|
1316
|
+
border-top: 1px solid var(--aic-border);
|
|
1317
|
+
}
|
|
1318
|
+
.aic-connect-card {
|
|
1319
|
+
width: 100%;
|
|
1320
|
+
padding-bottom: 16px;
|
|
1321
|
+
border-radius: 20px;
|
|
1322
|
+
background: var(--aic-ground);
|
|
1323
|
+
}
|
|
1324
|
+
.aic-connect-card > .aic-note {
|
|
1325
|
+
padding-bottom: 12px;
|
|
1326
|
+
background: transparent;
|
|
1327
|
+
}
|
|
1328
|
+
.aic-web[data-placement=note] {
|
|
1329
|
+
width: 100%;
|
|
1330
|
+
max-width: 360px;
|
|
1331
|
+
margin: 0 auto;
|
|
1332
|
+
padding: 0 18px;
|
|
1333
|
+
gap: 6px;
|
|
1334
|
+
}
|
|
1335
|
+
.aic-web[data-placement=note] .aic-web-button {
|
|
1336
|
+
min-height: 40px;
|
|
1337
|
+
font-size: 14px;
|
|
1338
|
+
}
|
|
1339
|
+
.aic-web-step {
|
|
1340
|
+
align-items: center;
|
|
1341
|
+
padding: 4px 0 8px;
|
|
1342
|
+
}
|
|
1343
|
+
.aic-web-step[data-placement=note] {
|
|
1344
|
+
width: 100%;
|
|
1345
|
+
padding: 2px 18px 20px;
|
|
1346
|
+
border-radius: 20px;
|
|
1347
|
+
background: var(--aic-ground);
|
|
1348
|
+
}
|
|
1349
|
+
.aic-web-title {
|
|
1350
|
+
margin: 0;
|
|
1351
|
+
color: var(--aic-ink);
|
|
1352
|
+
font-size: 16px;
|
|
1353
|
+
font-weight: 800;
|
|
1354
|
+
line-height: 1.25;
|
|
1355
|
+
text-wrap: balance;
|
|
1356
|
+
}
|
|
1357
|
+
.aic-web-text {
|
|
1358
|
+
margin: 0;
|
|
1359
|
+
color: var(--aic-muted);
|
|
1360
|
+
font-size: 14px;
|
|
1361
|
+
line-height: 1.45;
|
|
1362
|
+
text-wrap: pretty;
|
|
1363
|
+
}
|
|
1364
|
+
.aic-web-button {
|
|
1365
|
+
display: inline-flex;
|
|
1366
|
+
align-items: center;
|
|
1367
|
+
justify-content: center;
|
|
1368
|
+
align-self: stretch;
|
|
1369
|
+
gap: 10px;
|
|
1370
|
+
min-height: 46px;
|
|
1371
|
+
margin: 0;
|
|
1372
|
+
padding: 0 18px;
|
|
1373
|
+
border: 1px solid var(--aic-field-edge);
|
|
1374
|
+
border-radius: 12px;
|
|
1375
|
+
background: var(--aic-surface);
|
|
1376
|
+
color: var(--aic-ink);
|
|
1377
|
+
font-family: inherit;
|
|
1378
|
+
font-size: 15px;
|
|
1379
|
+
font-weight: 800;
|
|
1380
|
+
line-height: 1.2;
|
|
1381
|
+
cursor: pointer;
|
|
1382
|
+
}
|
|
1383
|
+
.aic-web-button:hover {
|
|
1384
|
+
border-color: var(--aic-ink);
|
|
1385
|
+
}
|
|
1386
|
+
.aic-web-button:focus-visible {
|
|
1387
|
+
outline: 2px solid var(--aic-focus);
|
|
1388
|
+
outline-offset: 3px;
|
|
1389
|
+
}
|
|
1390
|
+
.aic-web-mark {
|
|
1391
|
+
display: inline-block;
|
|
1392
|
+
width: 20px;
|
|
1393
|
+
height: 20px;
|
|
1394
|
+
flex: none;
|
|
1395
|
+
background: currentColor;
|
|
1396
|
+
}
|
|
1397
|
+
svg.aic-web-mark {
|
|
1398
|
+
background: none;
|
|
1399
|
+
}
|
|
1400
|
+
.aic-web-failure {
|
|
1401
|
+
margin: 2px 0 0;
|
|
1402
|
+
padding: 10px 12px;
|
|
1403
|
+
border-radius: 12px;
|
|
1404
|
+
background: color-mix(in srgb, var(--aic-danger) 9%, var(--aic-surface));
|
|
1405
|
+
color: var(--aic-ink);
|
|
1406
|
+
font-size: 14px;
|
|
1407
|
+
line-height: 1.4;
|
|
1408
|
+
}
|
|
1409
|
+
.aic-account-sign-out {
|
|
1410
|
+
flex: none;
|
|
1411
|
+
margin-inline-start: auto;
|
|
1412
|
+
font-size: 13px;
|
|
1413
|
+
}
|
|
1414
|
+
.aic-plan-offer {
|
|
1415
|
+
display: grid;
|
|
1416
|
+
gap: 8px;
|
|
1417
|
+
margin: 16px 0 0;
|
|
1418
|
+
padding: 16px;
|
|
1419
|
+
border-radius: 18px;
|
|
1420
|
+
background: var(--aic-ground);
|
|
1421
|
+
font-family: inherit;
|
|
1422
|
+
}
|
|
1423
|
+
.aic-plan-title {
|
|
1424
|
+
margin: 0;
|
|
1425
|
+
color: var(--aic-ink);
|
|
1426
|
+
font-size: 16px;
|
|
1427
|
+
font-weight: 800;
|
|
1428
|
+
line-height: 1.3;
|
|
1429
|
+
}
|
|
1430
|
+
.aic-plan-text {
|
|
1431
|
+
margin: 0;
|
|
1432
|
+
color: var(--aic-muted);
|
|
1433
|
+
font-size: 14px;
|
|
1434
|
+
line-height: 1.45;
|
|
1435
|
+
}
|
|
1436
|
+
.aic-plans {
|
|
1437
|
+
display: grid;
|
|
1438
|
+
gap: 8px;
|
|
1439
|
+
margin: 4px 0 0;
|
|
1440
|
+
padding: 0;
|
|
1441
|
+
list-style: none;
|
|
1442
|
+
}
|
|
1443
|
+
.aic-plan {
|
|
1444
|
+
display: flex;
|
|
1445
|
+
flex-wrap: wrap;
|
|
1446
|
+
align-items: center;
|
|
1447
|
+
gap: 4px 12px;
|
|
1448
|
+
padding: 12px 14px;
|
|
1449
|
+
border: 1px solid var(--aic-border);
|
|
1450
|
+
border-radius: 14px;
|
|
1451
|
+
background: var(--aic-surface);
|
|
1452
|
+
}
|
|
1453
|
+
.aic-plan-copy {
|
|
1454
|
+
flex: 1 1 140px;
|
|
1455
|
+
min-width: 0;
|
|
1456
|
+
}
|
|
1457
|
+
.aic-plan-name {
|
|
1458
|
+
margin: 0;
|
|
1459
|
+
color: var(--aic-ink);
|
|
1460
|
+
font-size: 15px;
|
|
1461
|
+
font-weight: 800;
|
|
1462
|
+
}
|
|
1463
|
+
.aic-plan-levels,
|
|
1464
|
+
.aic-plan-price {
|
|
1465
|
+
margin: 0;
|
|
1466
|
+
color: var(--aic-muted);
|
|
1467
|
+
font-size: 13px;
|
|
1468
|
+
line-height: 1.4;
|
|
1469
|
+
}
|
|
1470
|
+
.aic-plan-price {
|
|
1471
|
+
color: var(--aic-ink);
|
|
1472
|
+
font-weight: 700;
|
|
1473
|
+
white-space: nowrap;
|
|
1474
|
+
}
|
|
1475
|
+
.aic-plan-choose {
|
|
1476
|
+
flex: none;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
/* src/styles.css */
|
|
1480
|
+
@keyframes aic-fade-in {
|
|
1481
|
+
from {
|
|
1482
|
+
opacity: 0;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
@keyframes aic-rise {
|
|
1486
|
+
from {
|
|
1487
|
+
transform: translateY(10px);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
@keyframes aic-wave {
|
|
1491
|
+
40% {
|
|
1492
|
+
stroke: var(--aic-cyan);
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
.aic-backdrop {
|
|
1496
|
+
position: fixed;
|
|
1497
|
+
inset: 0;
|
|
1498
|
+
z-index: 1000;
|
|
1499
|
+
display: flex;
|
|
1500
|
+
align-items: center;
|
|
1501
|
+
justify-content: center;
|
|
1502
|
+
padding: 16px;
|
|
1503
|
+
background: var(--aic-backdrop);
|
|
1504
|
+
backdrop-filter: blur(8px);
|
|
1505
|
+
font-family: var(--aic-font);
|
|
1506
|
+
animation: aic-fade-in 200ms ease-out;
|
|
1507
|
+
}
|
|
1508
|
+
.aic-card {
|
|
1509
|
+
display: flex;
|
|
1510
|
+
flex-direction: column;
|
|
1511
|
+
width: min(var(--aic-width), 100%);
|
|
1512
|
+
max-height: calc(100dvh - 32px);
|
|
1513
|
+
overflow-y: auto;
|
|
1514
|
+
padding: 8px 20px 18px;
|
|
1515
|
+
border: 1px solid var(--aic-border);
|
|
1516
|
+
border-radius: var(--aic-radius);
|
|
1517
|
+
background: var(--aic-surface);
|
|
1518
|
+
color: var(--aic-ink);
|
|
1519
|
+
outline: none;
|
|
1520
|
+
box-shadow: var(--aic-shadow);
|
|
1521
|
+
animation: aic-rise 260ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1522
|
+
}
|
|
1523
|
+
.aic-header {
|
|
1524
|
+
display: flex;
|
|
1525
|
+
align-items: center;
|
|
1526
|
+
gap: 8px;
|
|
1527
|
+
min-height: 52px;
|
|
1528
|
+
}
|
|
1529
|
+
.aic-title {
|
|
1530
|
+
flex: 1;
|
|
1531
|
+
margin: 0;
|
|
1532
|
+
font-size: 17px;
|
|
1533
|
+
font-weight: 800;
|
|
1534
|
+
letter-spacing: -0.01em;
|
|
1535
|
+
text-wrap: balance;
|
|
1536
|
+
}
|
|
1537
|
+
.aic-icon-button {
|
|
1538
|
+
flex: none;
|
|
1539
|
+
display: grid;
|
|
1540
|
+
place-items: center;
|
|
1541
|
+
width: 34px;
|
|
1542
|
+
height: 34px;
|
|
1543
|
+
border: 0;
|
|
1544
|
+
border-radius: 50%;
|
|
1545
|
+
background: var(--aic-ground);
|
|
1546
|
+
color: var(--aic-muted);
|
|
1547
|
+
font: inherit;
|
|
1548
|
+
font-size: 20px;
|
|
1549
|
+
line-height: 1;
|
|
1550
|
+
cursor: pointer;
|
|
1551
|
+
}
|
|
1552
|
+
.aic-icon-button:hover,
|
|
1553
|
+
.aic-icon-button:focus-visible {
|
|
1554
|
+
color: var(--aic-ink);
|
|
1555
|
+
}
|
|
1556
|
+
.aic-step {
|
|
1557
|
+
display: flex;
|
|
1558
|
+
flex-direction: column;
|
|
1559
|
+
align-items: center;
|
|
1560
|
+
gap: 8px;
|
|
1561
|
+
padding: 4px 0 8px;
|
|
1562
|
+
text-align: center;
|
|
1563
|
+
}
|
|
1564
|
+
.aic-step-title {
|
|
1565
|
+
margin: 4px 0 0;
|
|
1566
|
+
font-size: 20px;
|
|
1567
|
+
font-weight: 800;
|
|
1568
|
+
letter-spacing: -0.015em;
|
|
1569
|
+
line-height: 1.2;
|
|
1570
|
+
text-wrap: balance;
|
|
1571
|
+
}
|
|
1572
|
+
.aic-hint {
|
|
1573
|
+
margin: 0;
|
|
1574
|
+
color: var(--aic-muted);
|
|
1575
|
+
font-size: 15px;
|
|
1576
|
+
line-height: 1.45;
|
|
1577
|
+
text-wrap: pretty;
|
|
1578
|
+
}
|
|
1579
|
+
.aic-hint:empty {
|
|
1580
|
+
display: none;
|
|
1581
|
+
}
|
|
1582
|
+
.aic-ring {
|
|
1583
|
+
position: relative;
|
|
1584
|
+
display: grid;
|
|
1585
|
+
place-items: center;
|
|
1586
|
+
width: 100%;
|
|
1587
|
+
height: 150px;
|
|
1588
|
+
}
|
|
1589
|
+
.aic-arcs {
|
|
1590
|
+
position: absolute;
|
|
1591
|
+
inset: 0;
|
|
1592
|
+
width: 100%;
|
|
1593
|
+
height: 100%;
|
|
1594
|
+
}
|
|
1595
|
+
.aic-arcs path {
|
|
1596
|
+
fill: none;
|
|
1597
|
+
stroke: var(--aic-cyan-faint);
|
|
1598
|
+
stroke-width: 5;
|
|
1599
|
+
stroke-linecap: round;
|
|
1600
|
+
}
|
|
1601
|
+
.aic-ring[data-live] .aic-arcs .aic-a1 {
|
|
1602
|
+
stroke: var(--aic-cyan);
|
|
1603
|
+
}
|
|
1604
|
+
.aic-ring[data-live] .aic-arcs .aic-a2 {
|
|
1605
|
+
stroke: var(--aic-cyan-soft);
|
|
1606
|
+
}
|
|
1607
|
+
.aic-ring[data-live] .aic-arcs path {
|
|
1608
|
+
animation: aic-wave 1.8s ease-out infinite;
|
|
1609
|
+
}
|
|
1610
|
+
.aic-ring[data-live] .aic-arcs .aic-a2 {
|
|
1611
|
+
animation-delay: 0.18s;
|
|
1612
|
+
}
|
|
1613
|
+
.aic-ring[data-live] .aic-arcs .aic-a3 {
|
|
1614
|
+
animation-delay: 0.36s;
|
|
1615
|
+
}
|
|
1616
|
+
.aic-disc {
|
|
1617
|
+
position: relative;
|
|
1618
|
+
display: grid;
|
|
1619
|
+
place-items: center;
|
|
1620
|
+
width: 108px;
|
|
1621
|
+
height: 108px;
|
|
1622
|
+
border: 3px solid var(--aic-cyan-soft);
|
|
1623
|
+
border-radius: 50%;
|
|
1624
|
+
background: var(--aic-chip);
|
|
1625
|
+
color: var(--aic-chip-ink);
|
|
1626
|
+
box-shadow: 0 0 0 7px var(--aic-halo), 0 18px 34px -16px rgba(10, 185, 247, 0.55);
|
|
1627
|
+
}
|
|
1628
|
+
.aic-ring[data-live] .aic-disc {
|
|
1629
|
+
border-color: var(--aic-cyan);
|
|
1630
|
+
}
|
|
1631
|
+
.aic-disc svg {
|
|
1632
|
+
width: 44px;
|
|
1633
|
+
height: 44px;
|
|
1634
|
+
}
|
|
1635
|
+
.aic-primary {
|
|
1636
|
+
display: inline-flex;
|
|
1637
|
+
align-items: center;
|
|
1638
|
+
justify-content: center;
|
|
1639
|
+
align-self: stretch;
|
|
1640
|
+
height: 48px;
|
|
1641
|
+
margin-top: 10px;
|
|
1642
|
+
padding: 0 18px;
|
|
1643
|
+
border: 0;
|
|
1644
|
+
border-radius: 12px;
|
|
1645
|
+
background: var(--aic-accent);
|
|
1646
|
+
color: var(--aic-accent-ink);
|
|
1647
|
+
font: inherit;
|
|
1648
|
+
font-size: 16px;
|
|
1649
|
+
font-weight: 800;
|
|
1650
|
+
text-decoration: none;
|
|
1651
|
+
cursor: pointer;
|
|
1652
|
+
}
|
|
1653
|
+
.aic-connect-button {
|
|
1654
|
+
display: inline-flex;
|
|
1655
|
+
align-items: center;
|
|
1656
|
+
gap: 10px;
|
|
1657
|
+
height: 44px;
|
|
1658
|
+
padding-block: 0;
|
|
1659
|
+
padding-inline: 14px 18px;
|
|
1660
|
+
border: 0;
|
|
1661
|
+
border-radius: 999px;
|
|
1662
|
+
background: var(--aic-accent);
|
|
1663
|
+
color: var(--aic-accent-ink);
|
|
1664
|
+
font: inherit;
|
|
1665
|
+
font-family: var(--aic-font);
|
|
1666
|
+
font-size: 15px;
|
|
1667
|
+
font-weight: 800;
|
|
1668
|
+
cursor: pointer;
|
|
1669
|
+
}
|
|
1670
|
+
.aic-connect-mark {
|
|
1671
|
+
width: 20px;
|
|
1672
|
+
height: 20px;
|
|
1673
|
+
flex: none;
|
|
1674
|
+
}
|
|
1675
|
+
.aic-primary:focus-visible,
|
|
1676
|
+
.aic-connect-button:focus-visible,
|
|
1677
|
+
.aic-link:focus-visible,
|
|
1678
|
+
.aic-icon-button:focus-visible {
|
|
1679
|
+
outline: 2px solid var(--aic-focus);
|
|
1680
|
+
outline-offset: 3px;
|
|
1681
|
+
}
|
|
1682
|
+
.aic-link {
|
|
1683
|
+
align-self: center;
|
|
1684
|
+
margin-top: 6px;
|
|
1685
|
+
padding: 6px;
|
|
1686
|
+
border: 0;
|
|
1687
|
+
background: none;
|
|
1688
|
+
color: var(--aic-ink);
|
|
1689
|
+
font: inherit;
|
|
1690
|
+
font-size: 14px;
|
|
1691
|
+
font-weight: 700;
|
|
1692
|
+
text-decoration: underline;
|
|
1693
|
+
text-decoration-color: var(--aic-border);
|
|
1694
|
+
text-decoration-thickness: 2px;
|
|
1695
|
+
text-underline-offset: 4px;
|
|
1696
|
+
cursor: pointer;
|
|
1697
|
+
}
|
|
1698
|
+
.aic-about {
|
|
1699
|
+
padding: 4px 2px 8px;
|
|
1700
|
+
}
|
|
1701
|
+
.aic-about-title {
|
|
1702
|
+
margin: 0 0 10px;
|
|
1703
|
+
font-weight: 800;
|
|
1704
|
+
}
|
|
1705
|
+
.aic-about-points {
|
|
1706
|
+
display: flex;
|
|
1707
|
+
flex-direction: column;
|
|
1708
|
+
gap: 8px;
|
|
1709
|
+
margin: 0;
|
|
1710
|
+
padding-inline-start: 20px;
|
|
1711
|
+
color: var(--aic-muted);
|
|
1712
|
+
font-size: 15px;
|
|
1713
|
+
line-height: 1.45;
|
|
1714
|
+
}
|
|
1715
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1716
|
+
.aic-backdrop,
|
|
1717
|
+
.aic-card,
|
|
1718
|
+
.aic-ring[data-live] .aic-arcs path {
|
|
1719
|
+
animation: none;
|
|
1720
|
+
}
|
|
1721
|
+
}
|