@galaxycore/ai-chat 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +3 -3
- package/dist/appearance.js +1 -1
- package/dist/context.js +1 -1
- package/dist/headless.d.ts +2 -2
- package/dist/headless.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +354 -240
- package/dist/index.js.map +1 -1
- package/dist/{labels-DJsjblzj.js → labels-BM5o9a9K.js} +5 -1
- package/dist/{labels-DJsjblzj.js.map → labels-BM5o9a9K.js.map} +1 -1
- package/dist/{labels-BBjaNAlS.d.ts → labels-D8smv23O.d.ts} +36 -2
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +1 -1
- package/dist/markdown.js.map +1 -1
- package/dist/styles.css +207 -112
- package/dist/targeting.css +205 -0
- package/dist/targeting.d.ts +101 -0
- package/dist/targeting.js +585 -0
- package/dist/targeting.js.map +1 -0
- package/dist/{ui-primitives-DlZ1hJkr.js → ui-primitives-BCbe9Ds8.js} +4 -4
- package/dist/{ui-primitives-DlZ1hJkr.js.map → ui-primitives-BCbe9Ds8.js.map} +1 -1
- package/docs/api-reference.md +2 -2
- package/docs/design.md +2 -2
- package/docs/integration.md +3 -4
- package/docs/patent-prototype.md +72 -0
- package/docs/patent-visual-baseline.json +121 -0
- package/docs/publishing.md +10 -10
- package/docs/validation.md +12 -0
- package/package.json +8 -10
package/dist/styles.css
CHANGED
|
@@ -1,34 +1,43 @@
|
|
|
1
1
|
@import './history-menu.css';
|
|
2
|
+
@import './targeting.css';
|
|
2
3
|
|
|
3
4
|
/* All selectors are scoped. Override these tokens on .gc-chat. */
|
|
4
5
|
.gc-chat {
|
|
5
|
-
--gc-chat-bg: #
|
|
6
|
+
--gc-chat-bg: #ffffff;
|
|
6
7
|
--gc-chat-surface: #fff;
|
|
7
|
-
--gc-chat-surface-hover: #
|
|
8
|
-
--gc-chat-text: #
|
|
9
|
-
--gc-chat-muted: #
|
|
10
|
-
--gc-chat-border: #
|
|
11
|
-
--gc-chat-border-strong: #
|
|
12
|
-
--gc-chat-focus: #
|
|
13
|
-
--gc-chat-tooltip-bg: #
|
|
8
|
+
--gc-chat-surface-hover: #f7f8fb;
|
|
9
|
+
--gc-chat-text: #253047;
|
|
10
|
+
--gc-chat-muted: #677287;
|
|
11
|
+
--gc-chat-border: #e8ecf3;
|
|
12
|
+
--gc-chat-border-strong: #ced9ff;
|
|
13
|
+
--gc-chat-focus: #3157d5;
|
|
14
|
+
--gc-chat-tooltip-bg: #253047;
|
|
14
15
|
--gc-chat-tooltip-text: #ffffff;
|
|
15
|
-
--gc-chat-user-bg: #
|
|
16
|
-
--gc-chat-accent: #
|
|
17
|
-
--gc-chat-accent-soft: #
|
|
18
|
-
--gc-chat-danger: #
|
|
19
|
-
--gc-chat-danger-bg: #
|
|
20
|
-
--gc-chat-shadow:
|
|
21
|
-
--gc-chat-radius:
|
|
22
|
-
--gc-chat-panel-radius:
|
|
16
|
+
--gc-chat-user-bg: #f7f8fb;
|
|
17
|
+
--gc-chat-accent: #3157d5;
|
|
18
|
+
--gc-chat-accent-soft: #f0f4ff;
|
|
19
|
+
--gc-chat-danger: #b44444;
|
|
20
|
+
--gc-chat-danger-bg: #fff2f1;
|
|
21
|
+
--gc-chat-shadow: none;
|
|
22
|
+
--gc-chat-radius: 11px;
|
|
23
|
+
--gc-chat-panel-radius: 16px;
|
|
23
24
|
--gc-chat-space-inline: 24px;
|
|
24
|
-
--gc-chat-message-gap:
|
|
25
|
-
--gc-chat-content-width:
|
|
25
|
+
--gc-chat-message-gap: 25px;
|
|
26
|
+
--gc-chat-content-width: 654px;
|
|
26
27
|
--gc-chat-font-size: 14px;
|
|
27
|
-
--gc-chat-control-size:
|
|
28
|
+
--gc-chat-control-size: 30px;
|
|
28
29
|
--gc-chat-accent-foreground: #ffffff;
|
|
29
|
-
--gc-chat-
|
|
30
|
-
--gc-chat-send-
|
|
31
|
-
--gc-chat-
|
|
30
|
+
--gc-chat-solid: #365bd7;
|
|
31
|
+
--gc-chat-send-bg: var(--gc-chat-solid);
|
|
32
|
+
--gc-chat-send-foreground: var(--gc-chat-accent-foreground);
|
|
33
|
+
--gc-chat-success: #37745d;
|
|
34
|
+
--gc-chat-success-bg: #eff7f3;
|
|
35
|
+
--gc-chat-warning: #8b631c;
|
|
36
|
+
--gc-chat-warning-bg: #fff9ec;
|
|
37
|
+
--gc-chat-send-size: 31px;
|
|
38
|
+
--gc-chat-suggestion-height: 39px;
|
|
39
|
+
--gc-chat-icon-size: 16px;
|
|
40
|
+
--gc-chat-prose-font: -apple-system-body, ui-sans-serif, -apple-system, system-ui, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
32
41
|
box-sizing: border-box;
|
|
33
42
|
border: 1px solid var(--gc-chat-border);
|
|
34
43
|
border-radius: var(--gc-chat-panel-radius);
|
|
@@ -47,50 +56,59 @@
|
|
|
47
56
|
color-scheme: light;
|
|
48
57
|
font-family: var(--gc-chat-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif);
|
|
49
58
|
font-size: var(--gc-chat-font-size);
|
|
50
|
-
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
line-height: 1.65;
|
|
51
61
|
-webkit-font-smoothing: antialiased;
|
|
52
62
|
}
|
|
53
63
|
.gc-chat[data-theme='dark'] {
|
|
54
|
-
--gc-chat-bg: #
|
|
55
|
-
--gc-chat-surface: #
|
|
56
|
-
--gc-chat-surface-hover: #
|
|
57
|
-
--gc-chat-text: #
|
|
58
|
-
--gc-chat-muted: #
|
|
59
|
-
--gc-chat-border: #
|
|
60
|
-
--gc-chat-border-strong: #
|
|
61
|
-
--gc-chat-focus: #
|
|
62
|
-
--gc-chat-tooltip-bg: #
|
|
63
|
-
--gc-chat-tooltip-text: #
|
|
64
|
-
--gc-chat-user-bg: #
|
|
65
|
-
--gc-chat-accent: #
|
|
66
|
-
--gc-chat-accent-soft: #
|
|
67
|
-
--gc-chat-danger: #
|
|
68
|
-
--gc-chat-danger-bg: #
|
|
69
|
-
--gc-chat-shadow:
|
|
70
|
-
--gc-chat-accent-foreground: #
|
|
71
|
-
--gc-chat-success: #
|
|
64
|
+
--gc-chat-bg: #171b24;
|
|
65
|
+
--gc-chat-surface: #171b24;
|
|
66
|
+
--gc-chat-surface-hover: #202632;
|
|
67
|
+
--gc-chat-text: #e6ebf5;
|
|
68
|
+
--gc-chat-muted: #a4b0c5;
|
|
69
|
+
--gc-chat-border: #343e50;
|
|
70
|
+
--gc-chat-border-strong: #50618f;
|
|
71
|
+
--gc-chat-focus: #a2b6ff;
|
|
72
|
+
--gc-chat-tooltip-bg: #e6ebf5;
|
|
73
|
+
--gc-chat-tooltip-text: #171b24;
|
|
74
|
+
--gc-chat-user-bg: #202632;
|
|
75
|
+
--gc-chat-accent: #a2b6ff;
|
|
76
|
+
--gc-chat-accent-soft: #252f4d;
|
|
77
|
+
--gc-chat-danger: #ffabab;
|
|
78
|
+
--gc-chat-danger-bg: #3a272b;
|
|
79
|
+
--gc-chat-shadow: none;
|
|
80
|
+
--gc-chat-accent-foreground: #19213a;
|
|
81
|
+
--gc-chat-success: #8dc9ae;
|
|
82
|
+
--gc-chat-success-bg: #22372e;
|
|
83
|
+
--gc-chat-warning: #e9c078;
|
|
84
|
+
--gc-chat-warning-bg: #322c22;
|
|
85
|
+
--gc-chat-solid: #a2b6ff;
|
|
72
86
|
color-scheme: dark;
|
|
73
87
|
}
|
|
74
88
|
@media (prefers-color-scheme: dark) {
|
|
75
89
|
.gc-chat[data-theme='auto'] {
|
|
76
|
-
--gc-chat-bg: #
|
|
77
|
-
--gc-chat-surface: #
|
|
78
|
-
--gc-chat-surface-hover: #
|
|
79
|
-
--gc-chat-text: #
|
|
80
|
-
--gc-chat-muted: #
|
|
81
|
-
--gc-chat-border: #
|
|
82
|
-
--gc-chat-border-strong: #
|
|
83
|
-
--gc-chat-focus: #
|
|
84
|
-
--gc-chat-tooltip-bg: #
|
|
85
|
-
--gc-chat-tooltip-text: #
|
|
86
|
-
--gc-chat-user-bg: #
|
|
87
|
-
--gc-chat-accent: #
|
|
88
|
-
--gc-chat-accent-soft: #
|
|
89
|
-
--gc-chat-danger: #
|
|
90
|
-
--gc-chat-danger-bg: #
|
|
91
|
-
--gc-chat-shadow:
|
|
92
|
-
--gc-chat-accent-foreground: #
|
|
93
|
-
--gc-chat-success: #
|
|
90
|
+
--gc-chat-bg: #171b24;
|
|
91
|
+
--gc-chat-surface: #171b24;
|
|
92
|
+
--gc-chat-surface-hover: #202632;
|
|
93
|
+
--gc-chat-text: #e6ebf5;
|
|
94
|
+
--gc-chat-muted: #a4b0c5;
|
|
95
|
+
--gc-chat-border: #343e50;
|
|
96
|
+
--gc-chat-border-strong: #50618f;
|
|
97
|
+
--gc-chat-focus: #a2b6ff;
|
|
98
|
+
--gc-chat-tooltip-bg: #e6ebf5;
|
|
99
|
+
--gc-chat-tooltip-text: #171b24;
|
|
100
|
+
--gc-chat-user-bg: #202632;
|
|
101
|
+
--gc-chat-accent: #a2b6ff;
|
|
102
|
+
--gc-chat-accent-soft: #252f4d;
|
|
103
|
+
--gc-chat-danger: #ffabab;
|
|
104
|
+
--gc-chat-danger-bg: #3a272b;
|
|
105
|
+
--gc-chat-shadow: none;
|
|
106
|
+
--gc-chat-accent-foreground: #19213a;
|
|
107
|
+
--gc-chat-success: #8dc9ae;
|
|
108
|
+
--gc-chat-success-bg: #22372e;
|
|
109
|
+
--gc-chat-warning: #e9c078;
|
|
110
|
+
--gc-chat-warning-bg: #322c22;
|
|
111
|
+
--gc-chat-solid: #a2b6ff;
|
|
94
112
|
color-scheme: dark;
|
|
95
113
|
}
|
|
96
114
|
}
|
|
@@ -99,38 +117,51 @@
|
|
|
99
117
|
.gc-chat[data-density='compact'] { --gc-chat-space-inline: 16px; --gc-chat-message-gap: 22px; --gc-chat-font-size: 13px; --gc-chat-control-size: 32px; }
|
|
100
118
|
.gc-chat *, .gc-chat *::before, .gc-chat *::after { box-sizing: border-box; }
|
|
101
119
|
.gc-chat :where(button, textarea, input, select) { font: inherit; }
|
|
120
|
+
.gc-chat :is(p, h1, h2, h3, h4, h5, h6, li) { font-family: var(--gc-chat-prose-font); }
|
|
121
|
+
.gc-chat :is(strong, b) { font-weight: 600; }
|
|
122
|
+
.gc-chat [hidden] { display: none !important; }
|
|
123
|
+
.gc-chat ::selection { background: var(--gc-chat-border-strong); color: var(--gc-chat-text); }
|
|
102
124
|
.gc-chat button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
|
|
103
|
-
.gc-chat button:disabled { opacity: .
|
|
125
|
+
.gc-chat button:disabled { opacity: .5; cursor: not-allowed; }
|
|
104
126
|
.gc-chat button, .gc-chat a, .gc-chat summary { touch-action: manipulation; }
|
|
105
|
-
.gc-chat :where(button, a, summary,
|
|
127
|
+
.gc-chat :where(button, a, summary, input, select, [tabindex]):focus-visible { outline: 2px solid var(--gc-chat-focus); outline-offset: 3px; }
|
|
106
128
|
.gc-chat :where(button) { color: inherit; }
|
|
107
129
|
.gc-chat svg { flex-shrink: 0; }
|
|
108
|
-
|
|
109
|
-
.gc-
|
|
110
|
-
.gc-
|
|
130
|
+
/* Freeze the prototype's Lucide treatment without depending on the preview host. */
|
|
131
|
+
.gc-chat svg.lucide { display: block; width: var(--gc-chat-icon-size); height: var(--gc-chat-icon-size); flex: none; margin: 0; stroke-width: 1.6; }
|
|
132
|
+
.gc-chat__header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 11px; padding: 19px var(--gc-chat-space-inline); border-bottom: 1px solid var(--gc-chat-border); }
|
|
133
|
+
.gc-chat__heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
|
|
134
|
+
.gc-chat__brand { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: var(--gc-chat-accent); background: var(--gc-chat-accent-soft); }
|
|
111
135
|
.gc-chat__brand svg { width: 16px; height: 16px; }
|
|
112
|
-
.gc-chat__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-
|
|
136
|
+
.gc-chat .gc-chat__title { display: block; font-family: var(--gc-chat-prose-font); margin: 0; color: var(--gc-chat-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.5; font-weight: 600; letter-spacing: .02em; }
|
|
137
|
+
.gc-chat__header-copy { min-width: 0; }
|
|
138
|
+
.gc-chat .gc-chat__subtitle { font-family: var(--gc-chat-prose-font); margin: 2px 0 0; font-size: 12px; line-height: 1.65; color: var(--gc-chat-muted); }
|
|
113
139
|
.gc-chat__header-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
|
|
114
140
|
.gc-chat__messages-wrap { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
|
|
115
|
-
.gc-chat__messages { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter:
|
|
141
|
+
.gc-chat__messages { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: auto; scrollbar-width: thin; scrollbar-color: var(--gc-chat-border) transparent; outline-offset: -4px !important; }
|
|
116
142
|
.gc-chat__messages::-webkit-scrollbar { width: 6px; }
|
|
117
143
|
.gc-chat__messages { scroll-behavior: auto; }
|
|
118
144
|
.gc-chat__messages[data-following='true'] { overflow-anchor: none; }
|
|
119
145
|
.gc-chat__messages::-webkit-scrollbar-thumb { background: var(--gc-chat-border); border-radius: 8px; }
|
|
120
|
-
.gc-chat__messages-content { display: flex; flex-direction: column; min-height: 100%; width: 100%; max-width: var(--gc-chat-content-width); margin-inline: auto; padding:
|
|
146
|
+
.gc-chat__messages-content { display: flex; flex-direction: column; min-height: 100%; width: 100%; max-width: var(--gc-chat-content-width); margin-inline: auto; padding: 23px calc(var(--gc-chat-space-inline) + 1px) 0; gap: var(--gc-chat-message-gap); }
|
|
121
147
|
.gc-chat__message { min-width: 0; max-width: 100%; }
|
|
122
|
-
.gc-chat__message--user { align-self: flex-end; max-width:
|
|
123
|
-
.gc-chat__message--user .gc-chat__message-body { background: var(--gc-chat-user-bg); border:
|
|
148
|
+
.gc-chat__message--user { align-self: flex-end; max-width: 91%; }
|
|
149
|
+
.gc-chat__message--user .gc-chat__message-body { background: var(--gc-chat-user-bg); border: 0; border-radius: 12px 12px 3px 12px; padding: 10px 15px; }
|
|
124
150
|
.gc-chat__message--assistant { width: 100%; }
|
|
151
|
+
.gc-chat__message--user .gc-chat__text { line-height: 1.65; }
|
|
152
|
+
.gc-chat__message-heading, .gc-chat__message-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; line-height: 1.65; }
|
|
153
|
+
.gc-chat__assistant-mark, .gc-chat__mini-mark { display: inline-grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 7px; background: var(--gc-chat-accent-soft); color: var(--gc-chat-accent); }
|
|
154
|
+
.gc-chat .gc-chat__assistant-name, .gc-chat__message-head > strong { font-size: 13px; font-weight: 600; }
|
|
155
|
+
.gc-chat__message-time, .gc-chat__message-head > time { margin-left: auto; color: var(--gc-chat-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
125
156
|
.gc-chat__message-body { display: flex; flex-direction: column; gap: 14px; overflow-wrap: anywhere; }
|
|
126
157
|
.gc-chat__part:empty { display: none; }
|
|
127
158
|
.gc-chat__text { min-width: 0; line-height: 1.85; }
|
|
128
159
|
.gc-chat__plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
129
|
-
.gc-chat__text :
|
|
130
|
-
.gc-chat__text :
|
|
131
|
-
.gc-chat__text :
|
|
132
|
-
.gc-chat__text :
|
|
133
|
-
.gc-chat__text :
|
|
160
|
+
.gc-chat__text :is(p, ul, ol, blockquote, pre, table) { margin-block: 0 16px; }
|
|
161
|
+
.gc-chat__text :is(h1, h2, h3, h4) { font-size: 1.04em; line-height: 1.6; margin: 24px 0 10px; font-weight: 600; letter-spacing: -.2px; }
|
|
162
|
+
.gc-chat__text :is(h1, h2, h3, h4):first-child { margin-top: 0; }
|
|
163
|
+
.gc-chat__text :is(p, ul, ol, blockquote, pre, table):last-child { margin-bottom: 0; }
|
|
164
|
+
.gc-chat__text :is(ul, ol) { padding-left: 24px; }
|
|
134
165
|
.gc-chat__text li { margin-block: 6px; padding-inline-start: 3px; }
|
|
135
166
|
.gc-chat__text li > p { margin-bottom: 6px; }
|
|
136
167
|
.gc-chat__text a { color: var(--gc-chat-accent); text-underline-offset: 3px; }
|
|
@@ -143,10 +174,10 @@
|
|
|
143
174
|
.gc-chat__text th { font-weight: 600; }
|
|
144
175
|
.gc-chat__text hr { border: 0; border-top: 1px solid var(--gc-chat-border); margin: 24px 0; }
|
|
145
176
|
.gc-chat__text img { max-width: 100%; height: auto; border-radius: 12px; }
|
|
146
|
-
.gc-chat__text :
|
|
177
|
+
.gc-chat__text :is(h5, h6) { font-size: 1em; line-height: 1.6; margin: 20px 0 8px; font-weight: 600; }
|
|
147
178
|
/* Streamdown emits utility classes; these semantic selectors make Tailwind optional. */
|
|
148
179
|
.gc-chat__markdown { min-width: 0; }
|
|
149
|
-
.gc-chat__markdown [data-streamdown='strong'] { font-weight:
|
|
180
|
+
.gc-chat__markdown [data-streamdown='strong'] { font-weight: 600; }
|
|
150
181
|
.gc-chat__markdown [data-streamdown='code-block'] { min-width: 0; max-width: 100%; margin: 16px 0; border: 1px solid var(--gc-chat-border); border-radius: 12px; overflow: hidden; background: var(--gc-chat-surface); }
|
|
151
182
|
.gc-chat__markdown [data-streamdown='code-block-header'] { padding: 6px 13px; border-bottom: 1px solid var(--gc-chat-border); background: var(--gc-chat-bg); color: var(--gc-chat-muted); font-size: 11px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
|
|
152
183
|
.gc-chat__markdown [data-streamdown='code-block-body'] { overflow: auto; max-width: 100%; padding: 12px 14px; }
|
|
@@ -170,33 +201,85 @@
|
|
|
170
201
|
@media (prefers-color-scheme: dark) {
|
|
171
202
|
.gc-chat[data-theme='auto'] .gc-chat__markdown [data-streamdown='code-block-body'] code > span > span { color: var(--shiki-dark, var(--sdm-c, inherit)); background: var(--shiki-dark-bg, var(--sdm-tbg, transparent)); }
|
|
172
203
|
}
|
|
173
|
-
.gc-chat__message-footer {
|
|
174
|
-
.gc-chat__message-actions { display: flex; min-height:
|
|
175
|
-
.gc-chat__icon-button { display: inline-
|
|
176
|
-
.gc-chat__icon-button:hover:not(:disabled) { background: var(--gc-chat-surface-hover); color: var(--gc-chat-text); }
|
|
177
|
-
.gc-chat__icon-button > svg { width:
|
|
178
|
-
.gc-chat__icon-button[data-size='sm'] { width: 30px; height: 30px; padding:
|
|
204
|
+
.gc-chat__message-footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 0 13px; }
|
|
205
|
+
.gc-chat__message-actions { display: flex; min-height: var(--gc-chat-control-size); gap: 6px; align-items: center; }
|
|
206
|
+
.gc-chat__icon-button { display: inline-grid; place-items: center; width: var(--gc-chat-control-size); height: var(--gc-chat-control-size); padding: 1px 6px; border: 0; border-radius: 6px; background: transparent; flex-shrink: 0; color: var(--gc-chat-muted); transition: background 160ms ease, color 160ms ease; }
|
|
207
|
+
.gc-chat__icon-button:not(.gc-chat__send):hover:not(:disabled) { background: var(--gc-chat-surface-hover); color: var(--gc-chat-text); }
|
|
208
|
+
.gc-chat__icon-button > svg { width: var(--gc-chat-icon-size); height: var(--gc-chat-icon-size); }
|
|
209
|
+
.gc-chat__icon-button[data-size='sm'] { width: 30px; height: 30px; padding: 1px 6px; border-radius: 6px; }
|
|
179
210
|
.gc-chat__icon-button[data-variant='filled'] { background: var(--gc-chat-surface-hover); color: var(--gc-chat-text); }
|
|
180
211
|
.gc-chat__icon-button[data-copied='true'] { color: var(--gc-chat-success); }
|
|
181
|
-
.gc-chat__icon-button:active:not(:disabled) { background: color-mix(in srgb, var(--gc-chat-text) 10%, var(--gc-chat-surface)); }
|
|
212
|
+
.gc-chat__icon-button:not(.gc-chat__send):active:not(:disabled) { background: color-mix(in srgb, var(--gc-chat-text) 10%, var(--gc-chat-surface)); }
|
|
182
213
|
.gc-chat__message-actions .gc-chat__icon-button svg { width: 16px; height: 16px; }
|
|
183
|
-
.gc-chat__button { display: inline-flex; align-items: center; justify-content: center; min-height:
|
|
184
|
-
.gc-chat__button:hover:not(:disabled) { background: var(--gc-chat-surface-hover); }
|
|
185
|
-
.gc-chat__button--primary { background: var(--gc-chat-accent-soft); color: var(--gc-chat-
|
|
186
|
-
.gc-
|
|
187
|
-
.gc-
|
|
188
|
-
.gc-
|
|
189
|
-
.gc-
|
|
190
|
-
.gc-
|
|
191
|
-
.gc-
|
|
192
|
-
.gc-
|
|
193
|
-
.gc-
|
|
214
|
+
.gc-chat__button, .gc-chat__suggestion { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--gc-chat-suggestion-height); padding: 8px 12px; border: 1px solid var(--gc-chat-border); border-radius: 8px; background: var(--gc-chat-surface); color: var(--gc-chat-text); font-size: 12px; font-weight: 500; line-height: 1.45; transition: background 160ms ease, border-color 160ms ease; }
|
|
215
|
+
.gc-chat__button:not([data-emphasis='quiet']):hover:not(:disabled), .gc-chat__suggestion:not([data-emphasis='quiet']):hover:not(:disabled) { background: var(--gc-chat-surface-hover); border-color: var(--gc-chat-border-strong); }
|
|
216
|
+
.gc-chat__button--primary, .gc-chat__button[data-emphasis='recommended'], .gc-chat__suggestion[data-emphasis='recommended'] { background: var(--gc-chat-accent-soft); border-color: var(--gc-chat-border-strong); color: var(--gc-chat-accent); }
|
|
217
|
+
.gc-chat__button--primary:hover:not(:disabled), .gc-chat__button[data-emphasis='recommended']:hover:not(:disabled), .gc-chat__suggestion[data-emphasis='recommended']:hover:not(:disabled) { background: var(--gc-chat-border-strong); }
|
|
218
|
+
.gc-chat__button[data-emphasis='solid'] { background: var(--gc-chat-solid); border-color: var(--gc-chat-solid); color: var(--gc-chat-accent-foreground); }
|
|
219
|
+
.gc-chat__button[data-emphasis='solid']:hover:not(:disabled) { background: var(--gc-chat-solid); border-color: var(--gc-chat-solid); filter: brightness(.96); }
|
|
220
|
+
.gc-chat__button[data-emphasis='quiet'], .gc-chat__suggestion[data-emphasis='quiet'] { color: var(--gc-chat-muted); border-color: transparent; background: transparent; }
|
|
221
|
+
.gc-chat__suggestion[data-pending='true'] { cursor: progress; }
|
|
222
|
+
.gc-chat__suggestion > span { min-width: 0; text-align: left; }
|
|
223
|
+
.gc-chat__suggestions { padding: 20px 0 4px; }
|
|
224
|
+
.gc-chat__suggestions-heading { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
|
|
225
|
+
.gc-chat .gc-chat__suggestions-heading h3 { margin: 0; color: var(--gc-chat-muted); font-size: 12px; font-weight: 500; line-height: 1.5555555556; }
|
|
226
|
+
.gc-chat__suggestions-reason { color: var(--gc-chat-muted); font-size: 11px; }
|
|
227
|
+
.gc-chat__suggestions-actions, .gc-chat__button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
228
|
+
/* Optional structured content uses the same reading rhythm as the reference. */
|
|
229
|
+
.gc-chat .gc-chat__intro { margin: 0 0 14px; font-size: var(--gc-chat-font-size); line-height: 1.85; }
|
|
230
|
+
.gc-chat__status { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 12px; color: var(--gc-chat-success); font-size: 12px; }
|
|
231
|
+
.gc-chat__status .gc-chat__status-note { margin-left: 5px; color: var(--gc-chat-muted); }
|
|
232
|
+
.gc-chat__disclosures { margin-bottom: 15px; }
|
|
233
|
+
.gc-chat__disclosures > details { border-top: 1px solid var(--gc-chat-border); }
|
|
234
|
+
.gc-chat__disclosures > details:last-child { border-bottom: 1px solid var(--gc-chat-border); }
|
|
235
|
+
.gc-chat__disclosures > details > summary { display: flex; align-items: center; gap: 7px; list-style: none; color: var(--gc-chat-muted); font-size: 13px; padding: 10px 0; cursor: pointer; }
|
|
236
|
+
.gc-chat__disclosures > details > summary::-webkit-details-marker { display: none; }
|
|
237
|
+
.gc-chat__chevron { transition: transform 180ms ease; }
|
|
238
|
+
.gc-chat__disclosures > details[open] > summary .gc-chat__chevron { transform: rotate(90deg); }
|
|
239
|
+
.gc-chat__count { margin-left: auto; color: var(--gc-chat-muted); font-size: 12px; }
|
|
240
|
+
.gc-chat .gc-chat__disclosure-details { margin: 0; padding: 0 0 13px 23px; font-size: 12px; color: var(--gc-chat-muted); }
|
|
241
|
+
.gc-chat__change { display: flex; gap: 16px; align-items: baseline; margin: 5px 0; }
|
|
242
|
+
.gc-chat__change dt { flex: 0 0 56px; color: var(--gc-chat-muted); }
|
|
243
|
+
.gc-chat__change dd { margin: 0; color: var(--gc-chat-text); overflow-wrap: anywhere; }
|
|
244
|
+
.gc-chat__notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 9px; background: var(--gc-chat-warning-bg); color: var(--gc-chat-warning); font-size: 12px; line-height: 1.8; }
|
|
245
|
+
.gc-chat__notice > svg { flex: 0 0 16px; }
|
|
246
|
+
.gc-chat__notice strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 2px; }
|
|
247
|
+
.gc-chat__notice[data-tone='success'] { color: var(--gc-chat-success); background: var(--gc-chat-success-bg); }
|
|
248
|
+
.gc-chat__undo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--gc-chat-success); font-size: 12px; }
|
|
249
|
+
.gc-chat__text-button { border: 0; background: transparent; color: var(--gc-chat-accent); font-size: 12px; padding: 6px 2px; text-underline-offset: 3px; }
|
|
250
|
+
.gc-chat__text-button:hover { text-decoration: underline; }
|
|
251
|
+
.gc-chat__clarify { margin-top: 18px; padding: 16px 0 0; border-top: 1px solid var(--gc-chat-border); }
|
|
252
|
+
.gc-chat .gc-chat__clarify h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.5555555556; }
|
|
253
|
+
.gc-chat .gc-chat__clarify p { margin: 0 0 12px; color: var(--gc-chat-muted); font-size: 12px; }
|
|
254
|
+
.gc-chat__clarify fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
|
|
255
|
+
.gc-chat__option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; background: var(--gc-chat-surface); cursor: pointer; }
|
|
256
|
+
.gc-chat__option:has(input:checked) { background: var(--gc-chat-accent-soft); }
|
|
257
|
+
.gc-chat__option input { accent-color: var(--gc-chat-solid); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
|
|
258
|
+
.gc-chat__option-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
|
|
259
|
+
.gc-chat__option-copy small { color: var(--gc-chat-muted); font-size: 12px; }
|
|
260
|
+
.gc-chat__current { margin-left: auto; flex-shrink: 0; color: var(--gc-chat-accent); font-size: 11px; }
|
|
261
|
+
.gc-chat__confirm-note { color: var(--gc-chat-muted); font-size: 11px; }
|
|
262
|
+
.gc-chat__followup { padding: 3px 0; }
|
|
263
|
+
.gc-chat .gc-chat__followup p { margin: 0 0 10px; }
|
|
264
|
+
.gc-chat__followup small { display: block; font-size: 12px; color: var(--gc-chat-muted); }
|
|
265
|
+
.gc-chat__query { padding: 10px 12px; margin: 10px 0 13px; background: var(--gc-chat-surface-hover); border-radius: 7px; font-size: 12px; overflow-wrap: anywhere; }
|
|
266
|
+
.gc-chat__loading-bars { display: grid; gap: 8px; margin: 12px 0; }
|
|
267
|
+
.gc-chat__loading-bars span { background: var(--gc-chat-surface-hover); border-radius: 4px; height: 10px; width: 76%; }
|
|
268
|
+
.gc-chat__loading-bars span:last-child { width: 51%; }
|
|
269
|
+
.gc-chat__bottom { flex-shrink: 0; width: 100%; padding: 16px var(--gc-chat-space-inline) 14px; border-top: 1px solid var(--gc-chat-border); }
|
|
270
|
+
.gc-chat__composer-wrap { min-width: 0; }
|
|
271
|
+
.gc-chat__composer { position: relative; border: 1px solid var(--gc-chat-border); border-radius: var(--gc-chat-radius); background: var(--gc-chat-surface); padding: 11px 12px 9px; box-shadow: none; transition: border-color 160ms ease; }
|
|
272
|
+
.gc-chat__composer:focus-within { border-color: var(--gc-chat-accent); }
|
|
273
|
+
.gc-chat__context { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; padding: 0; color: var(--gc-chat-muted); font-size: 11px; overflow-wrap: anywhere; }
|
|
274
|
+
.gc-chat__context strong { font-weight: 500; color: var(--gc-chat-text); }
|
|
275
|
+
.gc-chat .gc-chat__input { display: block; width: 100%; resize: vertical; min-height: 46px; max-height: 180px; border: 0; background: transparent; color: var(--gc-chat-text); padding: 2px; line-height: 1.7; font-size: 13px; caret-color: var(--gc-chat-accent); scrollbar-width: thin; }
|
|
276
|
+
.gc-chat__input::placeholder { color: var(--gc-chat-muted); opacity: 1; }
|
|
277
|
+
.gc-chat__composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
|
|
278
|
+
.gc-chat__input-hint { font-size: 11px; line-height: 1.65; color: var(--gc-chat-muted); }
|
|
194
279
|
.gc-chat__toolbar { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; flex-wrap: wrap; }
|
|
195
|
-
.gc-chat__send { display:
|
|
196
|
-
.gc-chat__send:
|
|
197
|
-
.gc-
|
|
198
|
-
.gc-chat__send:disabled { background: var(--gc-chat-surface-hover); color: var(--gc-chat-muted) !important; opacity: .65; }
|
|
199
|
-
.gc-chat__disclaimer { margin: 10px 4px 0; text-align: center; font-size: 10px; line-height: 1.5; color: var(--gc-chat-muted); }
|
|
280
|
+
.gc-chat__send { display: grid; place-items: center; width: var(--gc-chat-send-size); height: var(--gc-chat-send-size); border: 0; border-radius: 7px; background: var(--gc-chat-send-bg); color: var(--gc-chat-send-foreground); padding: 1px 6px; flex-shrink: 0; }
|
|
281
|
+
.gc-chat .gc-chat__send:disabled { background: var(--gc-chat-surface-hover); color: var(--gc-chat-muted); opacity: 1; }
|
|
282
|
+
.gc-chat .gc-chat__disclaimer { margin: 9px 0 0; text-align: center; font-size: 11px; line-height: 1.65; color: var(--gc-chat-muted); }
|
|
200
283
|
.gc-chat__attachments { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 3px 10px; margin: 0; list-style: none; }
|
|
201
284
|
.gc-chat__attachment { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 5px 4px 9px; background: var(--gc-chat-bg); border: 1px solid var(--gc-chat-border); border-radius: 9px; font-size: 11px; line-height: 1.5; }
|
|
202
285
|
.gc-chat__attachment > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
|
|
@@ -261,12 +344,6 @@
|
|
|
261
344
|
.gc-chat__unsupported > svg { width: 16px; height: 16px; }
|
|
262
345
|
.gc-chat__unsupported code { font-size: 11px; }
|
|
263
346
|
.gc-chat__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
|
264
|
-
@media (max-width: 420px) {
|
|
265
|
-
.gc-chat__header { min-height: 54px; padding: 10px 16px; }
|
|
266
|
-
.gc-chat__messages-content { padding: 12px 16px 24px; gap: var(--gc-chat-message-gap); }
|
|
267
|
-
.gc-chat__bottom { padding: 0 10px 9px; }
|
|
268
|
-
.gc-chat__message--user { max-width: 92%; }
|
|
269
|
-
}
|
|
270
347
|
.gc-chat__spinner { animation: gc-chat-spin 1.5s linear infinite; }
|
|
271
348
|
@keyframes gc-chat-spin { to { transform: rotate(360deg); } }
|
|
272
349
|
.gc-chat__reasoning[data-streaming] > summary { color: var(--gc-chat-accent); }
|
|
@@ -276,7 +353,7 @@
|
|
|
276
353
|
.gc-chat[data-density='compact'] .gc-chat__composer { padding: 10px; }
|
|
277
354
|
.gc-chat[data-density='compact'] .gc-chat__disclaimer { margin-top: 7px; }
|
|
278
355
|
/* Context references are compact, independently actionable disclosures. */
|
|
279
|
-
.gc-chat__context:has(.gc-chat__context-tray) { display: block; padding: 0
|
|
356
|
+
.gc-chat__context:has(.gc-chat__context-tray) { display: block; padding: 0; }
|
|
280
357
|
.gc-chat__context-tray { width: 100%; min-width: 0; font-size: 12px; color: var(--gc-chat-muted); }
|
|
281
358
|
.gc-chat__context-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
282
359
|
.gc-chat__context-toolbar:empty { display: none; }
|
|
@@ -329,18 +406,36 @@
|
|
|
329
406
|
.gc-chat__voice-remember input { accent-color: var(--gc-chat-accent); }
|
|
330
407
|
.gc-chat__voice-unsupported, .gc-chat__voice-error { display: flex; align-items: flex-start; gap: 6px; margin: 0 4px 10px; font-size: 11px; line-height: 1.65; color: var(--gc-chat-muted); }
|
|
331
408
|
.gc-chat__voice-error { color: var(--gc-chat-danger); }
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
.gc-
|
|
335
|
-
.gc-
|
|
409
|
+
/* Both narrow viewports and sidebars keep the prototype’s mobile layout. */
|
|
410
|
+
@media (max-width: 520px) {
|
|
411
|
+
.gc-chat__header { padding: 16px 17px; }
|
|
412
|
+
.gc-chat__messages-content { padding: 20px 17px 0; }
|
|
413
|
+
.gc-chat__bottom { padding: 14px 16px 12px; }
|
|
414
|
+
.gc-chat__message--user { max-width: 95%; }
|
|
415
|
+
.gc-chat__button, .gc-chat__suggestion { min-height: 44px; }
|
|
416
|
+
.gc-chat__suggestions-actions .gc-chat__suggestion[data-emphasis='recommended'], .gc-chat__button-row .gc-chat__button[data-emphasis='recommended'] { flex-basis: 100%; justify-content: flex-start; }
|
|
417
|
+
.gc-chat__suggestions-reason { display: none; }
|
|
418
|
+
.gc-chat .gc-chat__input { font-size: 16px; }
|
|
419
|
+
.gc-chat__context-label-text { max-width: 140px; }
|
|
420
|
+
}
|
|
421
|
+
@container (max-width: 520px) {
|
|
422
|
+
.gc-chat__header { padding: 16px 17px; }
|
|
423
|
+
.gc-chat__messages-content { padding: 20px 17px 0; }
|
|
424
|
+
.gc-chat__bottom { padding: 14px 16px 12px; }
|
|
425
|
+
.gc-chat__message--user { max-width: 95%; }
|
|
426
|
+
.gc-chat__button, .gc-chat__suggestion { min-height: 44px; }
|
|
427
|
+
.gc-chat__suggestions-actions .gc-chat__suggestion[data-emphasis='recommended'], .gc-chat__button-row .gc-chat__button[data-emphasis='recommended'] { flex-basis: 100%; justify-content: flex-start; }
|
|
428
|
+
.gc-chat__suggestions-reason { display: none; }
|
|
429
|
+
.gc-chat .gc-chat__input { font-size: 16px; }
|
|
336
430
|
.gc-chat__context-label-text { max-width: 140px; }
|
|
337
431
|
}
|
|
338
432
|
@media (pointer: coarse) {
|
|
339
433
|
.gc-chat .gc-chat__icon-button, .gc-chat .gc-chat__send { min-width: 44px; min-height: 44px; }
|
|
340
|
-
.gc-chat__button, .gc-
|
|
434
|
+
.gc-chat__button, .gc-chat__suggestion, .gc-chat__text-button { min-height: 44px; min-width: 44px; }
|
|
435
|
+
.gc-chat__context-select, .gc-chat__tool-heading, .gc-chat__reasoning > summary, .gc-chat__disclosures > details > summary { min-height: 44px; }
|
|
341
436
|
.gc-chat__context-label { min-height: 48px; }
|
|
342
437
|
.gc-chat__context-actions { padding-block: 2px; }
|
|
343
|
-
.gc-chat__input { font-size: max(16px, var(--gc-chat-font-size)); }
|
|
438
|
+
.gc-chat .gc-chat__input { font-size: max(16px, var(--gc-chat-font-size)); }
|
|
344
439
|
}
|
|
345
440
|
@media (prefers-reduced-motion: reduce) {
|
|
346
441
|
.gc-chat *, .gc-chat *::before, .gc-chat *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/* Scoped floating UI for ChatTargetingOverlay. Tokens align with .gc-chat. */
|
|
2
|
+
.gc-chat-targeting {
|
|
3
|
+
--gc-target-bg: var(--gc-chat-surface, #ffffff);
|
|
4
|
+
--gc-target-bg-hover: var(--gc-chat-surface-hover, #f7f8fb);
|
|
5
|
+
--gc-target-text: var(--gc-chat-text, #253047);
|
|
6
|
+
--gc-target-muted: var(--gc-chat-muted, #677287);
|
|
7
|
+
--gc-target-border: var(--gc-chat-border, #e2e6ef);
|
|
8
|
+
--gc-target-accent: var(--gc-chat-accent, #3157d5);
|
|
9
|
+
--gc-target-accent-fg: var(--gc-chat-accent-foreground, #ffffff);
|
|
10
|
+
--gc-target-shadow: 0 6px 20px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);
|
|
11
|
+
font-family: var(--gc-chat-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.gc-chat-targeting[data-theme='dark'] {
|
|
15
|
+
--gc-target-bg: #1c212c;
|
|
16
|
+
--gc-target-bg-hover: #252c3b;
|
|
17
|
+
--gc-target-text: #e6ebf5;
|
|
18
|
+
--gc-target-muted: #9aa7bf;
|
|
19
|
+
--gc-target-border: #343e50;
|
|
20
|
+
--gc-target-accent: #8fa6ff;
|
|
21
|
+
--gc-target-accent-fg: #141925;
|
|
22
|
+
--gc-target-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-color-scheme: dark) {
|
|
26
|
+
.gc-chat-targeting[data-theme='auto'] {
|
|
27
|
+
--gc-target-bg: #1c212c;
|
|
28
|
+
--gc-target-bg-hover: #252c3b;
|
|
29
|
+
--gc-target-text: #e6ebf5;
|
|
30
|
+
--gc-target-muted: #9aa7bf;
|
|
31
|
+
--gc-target-border: #343e50;
|
|
32
|
+
--gc-target-accent: #8fa6ff;
|
|
33
|
+
--gc-target-accent-fg: #141925;
|
|
34
|
+
--gc-target-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.gc-chat-targeting__marquee {
|
|
39
|
+
position: fixed;
|
|
40
|
+
z-index: 9998;
|
|
41
|
+
border: 1.5px solid var(--gc-target-accent);
|
|
42
|
+
background: color-mix(in srgb, var(--gc-target-accent) 14%, transparent);
|
|
43
|
+
border-radius: 3px;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.gc-chat-targeting__pill,
|
|
49
|
+
.gc-chat-targeting__popover {
|
|
50
|
+
position: fixed;
|
|
51
|
+
z-index: 9999;
|
|
52
|
+
background: var(--gc-target-bg);
|
|
53
|
+
color: var(--gc-target-text);
|
|
54
|
+
border: 1px solid var(--gc-target-border);
|
|
55
|
+
border-radius: 9px;
|
|
56
|
+
box-shadow: var(--gc-target-shadow);
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
line-height: 1.4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.gc-chat-targeting__pill {
|
|
63
|
+
padding: 3px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.gc-chat-targeting__pill-btn {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 6px;
|
|
70
|
+
padding: 4px 9px;
|
|
71
|
+
border: 0;
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
background: transparent;
|
|
74
|
+
color: var(--gc-target-text);
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.gc-chat-targeting__pill-btn:hover {
|
|
82
|
+
background: var(--gc-target-bg-hover);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.gc-chat-targeting__plus {
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
color: var(--gc-target-accent);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.gc-chat-targeting__kbd {
|
|
91
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
92
|
+
font-size: 10px;
|
|
93
|
+
color: var(--gc-target-muted);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.gc-chat-targeting__inline-form {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: 6px;
|
|
100
|
+
padding: 2px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.gc-chat-targeting__popover {
|
|
104
|
+
width: 268px;
|
|
105
|
+
padding: 10px;
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
gap: 8px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.gc-chat-targeting__popover-header {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: space-between;
|
|
115
|
+
gap: 8px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.gc-chat-targeting__popover-title {
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.gc-chat-targeting__close {
|
|
126
|
+
border: 0;
|
|
127
|
+
background: transparent;
|
|
128
|
+
color: var(--gc-target-muted);
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
font-size: 15px;
|
|
131
|
+
line-height: 1;
|
|
132
|
+
padding: 2px 4px;
|
|
133
|
+
border-radius: 4px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.gc-chat-targeting__close:hover {
|
|
137
|
+
color: var(--gc-target-text);
|
|
138
|
+
background: var(--gc-target-bg-hover);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.gc-chat-targeting__popover-form {
|
|
142
|
+
display: flex;
|
|
143
|
+
flex-direction: column;
|
|
144
|
+
gap: 8px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.gc-chat-targeting__input {
|
|
148
|
+
flex: 1;
|
|
149
|
+
min-width: 190px;
|
|
150
|
+
padding: 5px 8px;
|
|
151
|
+
border: 1px solid var(--gc-target-border);
|
|
152
|
+
border-radius: 6px;
|
|
153
|
+
background: transparent;
|
|
154
|
+
color: var(--gc-target-text);
|
|
155
|
+
font-size: 12px;
|
|
156
|
+
outline: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.gc-chat-targeting__input:focus {
|
|
160
|
+
border-color: var(--gc-target-accent);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.gc-chat-targeting__popover-actions {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: flex-end;
|
|
167
|
+
gap: 6px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.gc-chat-targeting__secondary {
|
|
171
|
+
padding: 4px 8px;
|
|
172
|
+
border: 1px solid var(--gc-target-border);
|
|
173
|
+
border-radius: 6px;
|
|
174
|
+
background: transparent;
|
|
175
|
+
color: var(--gc-target-muted);
|
|
176
|
+
font-size: 12px;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.gc-chat-targeting__secondary:hover {
|
|
181
|
+
color: var(--gc-target-text);
|
|
182
|
+
background: var(--gc-target-bg-hover);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.gc-chat-targeting__submit {
|
|
186
|
+
padding: 4px 10px;
|
|
187
|
+
border: 0;
|
|
188
|
+
border-radius: 6px;
|
|
189
|
+
background: var(--gc-target-accent);
|
|
190
|
+
color: var(--gc-target-accent-fg);
|
|
191
|
+
font-size: 12px;
|
|
192
|
+
font-weight: 500;
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.gc-chat-targeting__submit:hover {
|
|
198
|
+
opacity: 0.92;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
[data-ai-target-selected='true'] {
|
|
202
|
+
outline: 1.5px solid var(--gc-chat-accent, #3157d5);
|
|
203
|
+
outline-offset: 2px;
|
|
204
|
+
border-radius: 6px;
|
|
205
|
+
}
|