@vibek/cli 0.1.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/.env.example +9 -0
- package/README.md +210 -0
- package/config.example.toml +58 -0
- package/dist/core/export-html/template.css +1066 -0
- package/dist/core/export-html/template.html +55 -0
- package/index.js +2633 -0
- package/package.json +27 -0
- package/strategy-sdk.js +2 -0
- package/vibek-package.json +5 -0
- package/webui/client.js +41 -0
- package/webui/index.html +16 -0
- package/webui/styles.css +651 -0
package/webui/styles.css
ADDED
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color: var(--ink);
|
|
3
|
+
background: var(--app-bg);
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
6
|
+
font-synthesis: none;
|
|
7
|
+
text-rendering: optimizeLegibility;
|
|
8
|
+
--app-bg: #f4f7f4;
|
|
9
|
+
--surface: #ffffff;
|
|
10
|
+
--surface-soft: #f7faf8;
|
|
11
|
+
--surface-raised: #ffffff;
|
|
12
|
+
--ink: #18201d;
|
|
13
|
+
--muted: #5d6c66;
|
|
14
|
+
--faint: #89958f;
|
|
15
|
+
--line: #d7e1dc;
|
|
16
|
+
--line-strong: #c2d0c8;
|
|
17
|
+
--hover: #edf4f0;
|
|
18
|
+
--chip: #edf1ee;
|
|
19
|
+
--accent: #167a63;
|
|
20
|
+
--accent-dark: #0e5d4c;
|
|
21
|
+
--accent-bright: #32a886;
|
|
22
|
+
--accent-soft: #e5f4ef;
|
|
23
|
+
--amber: #a56f1b;
|
|
24
|
+
--amber-soft: #fff2d7;
|
|
25
|
+
--red: #b84046;
|
|
26
|
+
--red-soft: #fbe9e8;
|
|
27
|
+
--up: #d54b58;
|
|
28
|
+
--down: #1a967a;
|
|
29
|
+
--on-accent: #ffffff;
|
|
30
|
+
--on-ink: #ffffff;
|
|
31
|
+
--topbar-bg: rgba(255, 255, 255, 0.94);
|
|
32
|
+
--composer-bg: #edf3ef;
|
|
33
|
+
--status-bg: #e8efeb;
|
|
34
|
+
--chart-empty-bg: rgba(255, 255, 255, 0.9);
|
|
35
|
+
--code-bg: #202823;
|
|
36
|
+
--code-ink: #e8eee9;
|
|
37
|
+
--focus: rgba(22, 122, 99, 0.32);
|
|
38
|
+
--overlay: rgba(22, 30, 26, 0.5);
|
|
39
|
+
--shadow: 0 18px 52px rgba(22, 35, 29, 0.18), 0 2px 10px rgba(22, 35, 29, 0.08);
|
|
40
|
+
--green: var(--accent);
|
|
41
|
+
--green-dark: var(--accent-dark);
|
|
42
|
+
--green-bright: var(--accent-bright);
|
|
43
|
+
--green-soft: var(--accent-soft);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:root[data-theme='midnight'] {
|
|
47
|
+
color-scheme: dark;
|
|
48
|
+
--app-bg: #0b1117;
|
|
49
|
+
--surface: #111a22;
|
|
50
|
+
--surface-soft: #0e161e;
|
|
51
|
+
--surface-raised: #17232d;
|
|
52
|
+
--ink: #edf5f2;
|
|
53
|
+
--muted: #9aaab1;
|
|
54
|
+
--faint: #65757e;
|
|
55
|
+
--line: #24343e;
|
|
56
|
+
--line-strong: #354954;
|
|
57
|
+
--hover: #192832;
|
|
58
|
+
--chip: #1a2932;
|
|
59
|
+
--accent: #49c5a3;
|
|
60
|
+
--accent-dark: #2d9f84;
|
|
61
|
+
--accent-bright: #76e1bf;
|
|
62
|
+
--accent-soft: #12352f;
|
|
63
|
+
--amber: #f4b860;
|
|
64
|
+
--amber-soft: #3a2b19;
|
|
65
|
+
--red: #ff6f76;
|
|
66
|
+
--red-soft: #3b2027;
|
|
67
|
+
--up: #ff6f76;
|
|
68
|
+
--down: #49c5a3;
|
|
69
|
+
--on-accent: #07120f;
|
|
70
|
+
--on-ink: #07120f;
|
|
71
|
+
--topbar-bg: rgba(11, 17, 23, 0.95);
|
|
72
|
+
--composer-bg: #0e161e;
|
|
73
|
+
--status-bg: #101b23;
|
|
74
|
+
--chart-empty-bg: rgba(15, 23, 31, 0.92);
|
|
75
|
+
--code-bg: #081018;
|
|
76
|
+
--code-ink: #d8e8e4;
|
|
77
|
+
--focus: rgba(73, 197, 163, 0.42);
|
|
78
|
+
--overlay: rgba(2, 7, 11, 0.72);
|
|
79
|
+
--shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 2px 12px rgba(0, 0, 0, 0.28);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:root[data-theme='cobalt'] {
|
|
83
|
+
color-scheme: dark;
|
|
84
|
+
--app-bg: #101822;
|
|
85
|
+
--surface: #152230;
|
|
86
|
+
--surface-soft: #111d2a;
|
|
87
|
+
--surface-raised: #1c2c3d;
|
|
88
|
+
--ink: #f3f7fb;
|
|
89
|
+
--muted: #a8b8c9;
|
|
90
|
+
--faint: #718599;
|
|
91
|
+
--line: #2a3d53;
|
|
92
|
+
--line-strong: #3d5870;
|
|
93
|
+
--hover: #1d3042;
|
|
94
|
+
--chip: #203246;
|
|
95
|
+
--accent: #56b6d9;
|
|
96
|
+
--accent-dark: #348bae;
|
|
97
|
+
--accent-bright: #8dd8ef;
|
|
98
|
+
--accent-soft: #143846;
|
|
99
|
+
--amber: #f4bd63;
|
|
100
|
+
--amber-soft: #3e321e;
|
|
101
|
+
--red: #ff7b74;
|
|
102
|
+
--red-soft: #42252a;
|
|
103
|
+
--up: #ff7b74;
|
|
104
|
+
--down: #68c6a4;
|
|
105
|
+
--on-accent: #08131b;
|
|
106
|
+
--on-ink: #08131b;
|
|
107
|
+
--topbar-bg: rgba(16, 24, 34, 0.95);
|
|
108
|
+
--composer-bg: #111d2a;
|
|
109
|
+
--status-bg: #142333;
|
|
110
|
+
--chart-empty-bg: rgba(18, 30, 44, 0.93);
|
|
111
|
+
--code-bg: #0b1521;
|
|
112
|
+
--code-ink: #dce9f5;
|
|
113
|
+
--focus: rgba(86, 182, 217, 0.42);
|
|
114
|
+
--overlay: rgba(5, 11, 18, 0.74);
|
|
115
|
+
--shadow: 0 22px 58px rgba(3, 10, 18, 0.46), 0 2px 12px rgba(3, 10, 18, 0.3);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:root[data-theme='ember'] {
|
|
119
|
+
--app-bg: #f6f1ea;
|
|
120
|
+
--surface: #fffaf4;
|
|
121
|
+
--surface-soft: #f4ede4;
|
|
122
|
+
--surface-raised: #fffdf9;
|
|
123
|
+
--ink: #2a211c;
|
|
124
|
+
--muted: #78685e;
|
|
125
|
+
--faint: #a39489;
|
|
126
|
+
--line: #e5d8ca;
|
|
127
|
+
--line-strong: #d3c0ad;
|
|
128
|
+
--hover: #f1e6da;
|
|
129
|
+
--chip: #eee4d9;
|
|
130
|
+
--accent: #b85f3b;
|
|
131
|
+
--accent-dark: #8f452d;
|
|
132
|
+
--accent-bright: #d88558;
|
|
133
|
+
--accent-soft: #f9e6db;
|
|
134
|
+
--amber: #aa741f;
|
|
135
|
+
--amber-soft: #fff0d1;
|
|
136
|
+
--red: #ad3f3d;
|
|
137
|
+
--red-soft: #f9e2df;
|
|
138
|
+
--up: #c44945;
|
|
139
|
+
--down: #287d6d;
|
|
140
|
+
--on-accent: #fffaf4;
|
|
141
|
+
--on-ink: #fffaf4;
|
|
142
|
+
--topbar-bg: rgba(255, 250, 244, 0.95);
|
|
143
|
+
--composer-bg: #eee5da;
|
|
144
|
+
--status-bg: #ece2d7;
|
|
145
|
+
--chart-empty-bg: rgba(255, 250, 244, 0.92);
|
|
146
|
+
--code-bg: #302822;
|
|
147
|
+
--code-ink: #f2e7dc;
|
|
148
|
+
--focus: rgba(184, 95, 59, 0.3);
|
|
149
|
+
--overlay: rgba(50, 34, 25, 0.5);
|
|
150
|
+
--shadow: 0 18px 52px rgba(75, 49, 32, 0.18), 0 2px 10px rgba(75, 49, 32, 0.08);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
* { box-sizing: border-box; }
|
|
154
|
+
html, body, #root { height: 100%; }
|
|
155
|
+
body { margin: 0; overflow: hidden; }
|
|
156
|
+
button, input, textarea, select { font: inherit; letter-spacing: 0; }
|
|
157
|
+
button { color: inherit; }
|
|
158
|
+
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
|
|
159
|
+
outline: 2px solid var(--focus);
|
|
160
|
+
outline-offset: 2px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.app-shell { height: 100%; display: grid; grid-template-rows: 58px minmax(0, 1fr) auto; background: var(--app-bg); }
|
|
164
|
+
.app-shell.market-mode { grid-template-rows: 58px minmax(0, 1fr) 28px; }
|
|
165
|
+
.app-shell.strategy-mode { grid-template-rows: 58px minmax(0, 1fr); }
|
|
166
|
+
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--topbar-bg); z-index: 10; }
|
|
167
|
+
.topbar-left { min-width: 0; display: flex; align-items: center; gap: 22px; }
|
|
168
|
+
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
|
|
169
|
+
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 800; }
|
|
170
|
+
.brand-copy { display: grid; line-height: 1; gap: 4px; }
|
|
171
|
+
.brand-copy strong { font-size: 14px; letter-spacing: 0; }
|
|
172
|
+
.brand-copy small { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
|
|
173
|
+
.workspace-tabs { height: 34px; display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
|
|
174
|
+
.workspace-tabs button { height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
|
|
175
|
+
.workspace-tabs button:hover { color: var(--ink); }
|
|
176
|
+
.workspace-tabs button.active { color: var(--green-dark); background: var(--surface-raised); box-shadow: 0 1px 3px rgba(25, 37, 31, 0.12); }
|
|
177
|
+
.topbar-controls { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
|
|
178
|
+
.icon-button { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; }
|
|
179
|
+
.icon-button:hover, .icon-button.active { background: var(--surface-soft); border-color: var(--line); }
|
|
180
|
+
.icon-button:disabled { opacity: 0.4; cursor: default; }
|
|
181
|
+
.select-control { height: 34px; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; }
|
|
182
|
+
.select-control select { min-width: 0; max-width: 180px; border: 0; outline: 0; appearance: none; color: var(--ink); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
|
|
183
|
+
.select-control svg:last-child { pointer-events: none; }
|
|
184
|
+
.thinking-control select { max-width: 60px; }
|
|
185
|
+
.button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font-size: 13px; font-weight: 650; cursor: pointer; }
|
|
186
|
+
.button:hover { background: var(--surface-soft); }
|
|
187
|
+
.button:disabled { opacity: 0.45; cursor: default; }
|
|
188
|
+
.button.primary { color: var(--on-accent); border-color: var(--green); background: var(--green); }
|
|
189
|
+
.button.primary:hover { background: var(--green-dark); }
|
|
190
|
+
.button.ghost { border-color: transparent; background: transparent; }
|
|
191
|
+
.button.danger { color: var(--on-accent); background: var(--red); border-color: var(--red); }
|
|
192
|
+
.search-field { width: min(260px, 25vw); height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 5px 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-raised); }
|
|
193
|
+
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; font-size: 13px; }
|
|
194
|
+
.search-field .icon-button { width: 25px; height: 25px; flex-basis: 25px; }
|
|
195
|
+
.menu-anchor { position: relative; }
|
|
196
|
+
.action-menu { position: absolute; top: 41px; right: 0; width: 190px; padding: 6px; z-index: 30; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); box-shadow: var(--shadow); }
|
|
197
|
+
.action-menu button { width: 100%; height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; text-align: left; font-size: 13px; cursor: pointer; }
|
|
198
|
+
.action-menu button:hover { background: var(--surface-soft); }
|
|
199
|
+
.action-menu button:disabled { opacity: 0.4; }
|
|
200
|
+
.action-menu hr { margin: 5px 4px; border: 0; border-top: 1px solid var(--line); }
|
|
201
|
+
.danger-text { color: var(--red); }
|
|
202
|
+
|
|
203
|
+
.transcript { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
|
|
204
|
+
.transcript-inner { width: min(920px, calc(100% - 36px)); min-height: 100%; margin: 0 auto; padding: 30px 0 26px; }
|
|
205
|
+
.message { margin: 0; }
|
|
206
|
+
.assistant-message { margin: 0; }
|
|
207
|
+
.assistant-message .message-body { min-width: 0; }
|
|
208
|
+
.user-message.timeline-item { --timeline-dot: var(--green-bright); margin: 0; }
|
|
209
|
+
.user-message .message-body { width: fit-content; max-width: 100%; min-width: 0; background: var(--ink); }
|
|
210
|
+
.user-message .message-body > p { margin: 0; color: var(--on-ink); font-size: 14px; font-weight: 620; line-height: var(--timeline-line-height, 1.72); overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
211
|
+
.markdown { min-width: 0; color: var(--ink); font-size: 14px; line-height: var(--timeline-line-height, 1.72); overflow-wrap: anywhere; }
|
|
212
|
+
.markdown > :first-child { margin-top: 0; }
|
|
213
|
+
.markdown > :last-child { margin-bottom: 0; }
|
|
214
|
+
.markdown p, .markdown ul, .markdown ol, .markdown blockquote, .markdown pre, .markdown table { margin: 0 0 13px; }
|
|
215
|
+
.markdown h1, .markdown h2, .markdown h3 { margin: 22px 0 9px; line-height: 1.35; }
|
|
216
|
+
.markdown h1 { font-size: 20px; }.markdown h2 { font-size: 17px; }.markdown h3 { font-size: 15px; }
|
|
217
|
+
.markdown ul, .markdown ol { padding-left: 23px; }
|
|
218
|
+
.markdown code { padding: 2px 5px; border-radius: 4px; background: var(--chip); color: var(--green-dark); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
|
|
219
|
+
.markdown pre { overflow-x: auto; padding: 14px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--code-ink); background: var(--code-bg); }
|
|
220
|
+
.markdown pre code { padding: 0; color: inherit; background: transparent; }
|
|
221
|
+
.markdown blockquote { padding-left: 12px; border-left: 3px solid var(--line-strong); color: var(--muted); }
|
|
222
|
+
.markdown table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
223
|
+
.markdown th, .markdown td { padding: 7px 9px; border: 1px solid var(--line); text-align: left; }
|
|
224
|
+
.markdown th { background: var(--surface-soft); }
|
|
225
|
+
.markdown a { color: var(--green); text-underline-offset: 2px; }
|
|
226
|
+
.timeline-item { --timeline-dot: var(--faint); position: relative; min-width: 0; margin: 0; padding: var(--timeline-item-padding, 2px) 0; padding-left: 30px; color: var(--muted); line-height: var(--timeline-line-height, 1.72); }
|
|
227
|
+
.timeline-item::before { content: ''; position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: var(--line-strong); }
|
|
228
|
+
.timeline-item::after { content: ''; position: absolute; top: var(--timeline-dot-offset, 9px); left: var(--timeline-dot-left, 4px); z-index: 1; width: var(--timeline-dot-size, 7px); height: var(--timeline-dot-size, 7px); border-radius: 50%; background: var(--timeline-dot); box-shadow: 0 0 0 var(--timeline-dot-ring, 2px) var(--app-bg); }
|
|
229
|
+
.timeline-item.running, .tool-call.done { --timeline-dot: var(--green); }
|
|
230
|
+
.timeline-item.error { --timeline-dot: var(--red); color: var(--red); }
|
|
231
|
+
.timeline-item.running::after { animation: timeline-pulse 1.5s ease-in-out infinite; }
|
|
232
|
+
.timeline-item summary { max-width: 100%; min-height: var(--timeline-summary-height, 21px); align-items: center; gap: var(--timeline-summary-gap, 4px); padding: 0; list-style: none; cursor: pointer; line-height: var(--timeline-summary-line-height, 1.4); }
|
|
233
|
+
.timeline-item summary:hover, .timeline-item[open] summary { color: var(--ink); }
|
|
234
|
+
.thinking-block summary { width: max-content; display: inline-grid; grid-template-columns: minmax(0, auto) 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
|
|
235
|
+
.thinking-block summary::-webkit-details-marker, .tool-call summary::-webkit-details-marker { display: none; }
|
|
236
|
+
.thinking-block[open] summary svg:last-child, .tool-call[open] summary svg:last-child { transform: rotate(90deg); }
|
|
237
|
+
.thinking-block > div { margin-top: var(--thinking-content-margin, 1px); padding: var(--thinking-content-padding-top, 1px) 0 var(--thinking-content-padding-bottom, 3px); }
|
|
238
|
+
.thinking-block .markdown { color: var(--muted); font-size: 12px; line-height: var(--timeline-thinking-line-height, 1.62); }
|
|
239
|
+
.timeline-item .markdown > :not(:last-child) { margin-bottom: var(--timeline-markdown-gap, 9px); }
|
|
240
|
+
.timeline-item .markdown code { padding-top: var(--timeline-inline-code-padding, 2px); padding-bottom: var(--timeline-inline-code-padding, 2px); }
|
|
241
|
+
.timeline-item .markdown pre { padding: var(--timeline-markdown-pre-padding, 14px); }
|
|
242
|
+
.timeline-item .markdown th, .timeline-item .markdown td { padding-top: var(--timeline-table-cell-padding, 7px); padding-bottom: var(--timeline-table-cell-padding, 7px); }
|
|
243
|
+
.assistant-output .markdown { font-size: 14px; }
|
|
244
|
+
.tool-call summary { width: max-content; display: inline-grid; grid-template-columns: auto minmax(0, auto) auto 14px; color: var(--muted); font-size: 13px; }
|
|
245
|
+
.tool-call summary strong { color: var(--ink); font-weight: 700; }
|
|
246
|
+
.tool-call summary code { min-width: 0; max-width: min(560px, 60vw); overflow: hidden; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
247
|
+
.tool-call summary small { color: inherit; font-size: 10px; white-space: nowrap; }
|
|
248
|
+
.tool-call.done summary small { display: none; }
|
|
249
|
+
.tool-call.error summary strong, .tool-call.error summary small { color: var(--red); }
|
|
250
|
+
.tool-details { display: grid; gap: var(--tool-details-gap, 5px); margin-top: var(--tool-details-margin, 1px); padding: 0 0 var(--tool-details-padding-bottom, 4px); }
|
|
251
|
+
.code-block { min-width: 0; padding-top: var(--timeline-code-padding-top, 7px); }
|
|
252
|
+
.code-block > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
|
|
253
|
+
.code-block pre { max-height: 260px; margin: 5px 0 0; overflow: auto; padding: 10px; border-radius: 5px; color: var(--code-ink); background: var(--code-bg); font: 11px/1.55 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
254
|
+
.timeline-item .code-block pre { padding-top: var(--timeline-code-pre-padding, 10px); padding-bottom: var(--timeline-code-pre-padding, 10px); line-height: var(--timeline-code-line-height, 1.55); }
|
|
255
|
+
.image-output { font-size: 11px; color: var(--muted); }
|
|
256
|
+
.timeline-item .markdown h1, .timeline-item .markdown h2, .timeline-item .markdown h3 { line-height: var(--timeline-heading-line-height, 1.35); }
|
|
257
|
+
.timeline-item .inline-error { margin-top: var(--timeline-inline-error-margin, 10px); padding: var(--timeline-inline-error-padding, 9px); }
|
|
258
|
+
.inline-error { display: flex; gap: 7px; margin-top: 10px; padding: 9px; color: var(--red); background: var(--red-soft); font-size: 12px; line-height: var(--timeline-line-height, 1.72); }
|
|
259
|
+
.assistant-wait { min-height: var(--assistant-wait-height, 27px); display: flex; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
|
|
260
|
+
.empty-state { min-height: 58vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
|
|
261
|
+
.empty-state > svg { color: var(--green); }
|
|
262
|
+
.empty-state h1 { margin: 12px 0 16px; color: var(--ink); font-size: 18px; font-weight: 680; }
|
|
263
|
+
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
|
|
264
|
+
.empty-actions button { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); font-size: 12px; cursor: pointer; }
|
|
265
|
+
.empty-actions button:hover { border-color: var(--green); color: var(--green); }
|
|
266
|
+
.jump-latest { position: sticky; left: 50%; bottom: 8px; transform: translateX(-50%); height: 32px; display: flex; align-items: center; gap: 6px; margin: 0 auto; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface-raised); box-shadow: 0 4px 14px rgba(20, 30, 25, 0.12); font-size: 11px; cursor: pointer; }
|
|
267
|
+
|
|
268
|
+
.composer-wrap { padding: 12px 18px 9px; border-top: 1px solid var(--line); background: var(--composer-bg); }
|
|
269
|
+
.composer-shell { width: min(920px, 100%); margin: 0 auto; }
|
|
270
|
+
.composer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); box-shadow: 0 2px 7px rgba(25, 35, 30, 0.05); }
|
|
271
|
+
.composer:focus-within { border-color: var(--accent-bright); box-shadow: 0 0 0 3px var(--focus); }
|
|
272
|
+
.composer textarea { width: 100%; min-height: 68px; max-height: 180px; field-sizing: content; resize: none; padding: 14px 15px 8px; border: 0; outline: 0; background: transparent; color: var(--ink); line-height: 1.5; font-size: 14px; }
|
|
273
|
+
.composer textarea::placeholder { color: var(--faint); }
|
|
274
|
+
.composer-toolbar { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 7px 7px 9px; }
|
|
275
|
+
.composer-toolbar-left, .composer-toolbar-right { min-width: 0; display: flex; align-items: center; gap: 3px; }
|
|
276
|
+
.composer-toolbar-left { flex: 1; }
|
|
277
|
+
.composer-toolbar-right { justify-content: flex-end; }
|
|
278
|
+
.composer-workspace { min-width: 0; max-width: 260px; height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 8px; color: var(--muted); border-radius: 6px; }
|
|
279
|
+
.timeline-density-anchor { position: relative; flex: 0 0 auto; }
|
|
280
|
+
.timeline-density-toggle { min-width: 47px; height: 32px; display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); background: var(--green-soft); font: 700 10px/1 "SFMono-Regular", Consolas, monospace; cursor: pointer; }
|
|
281
|
+
.timeline-density-toggle:hover, .timeline-density-toggle.active { border-color: var(--accent-bright); color: var(--green-dark); background: var(--accent-soft); }
|
|
282
|
+
.timeline-density-popover { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 25; width: 220px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); box-shadow: var(--shadow); }
|
|
283
|
+
.timeline-density-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 650; }
|
|
284
|
+
.timeline-density-heading > span:last-child { color: var(--faint); font-size: 10px; font-weight: 500; }
|
|
285
|
+
.timeline-density-popover input { width: 100%; height: 18px; margin: 8px 0 0; accent-color: var(--green); cursor: pointer; }
|
|
286
|
+
.composer-workspace > svg { flex: 0 0 auto; color: var(--green); }
|
|
287
|
+
.composer-workspace > span { min-width: 0; display: flex; align-items: baseline; gap: 5px; }
|
|
288
|
+
.composer-workspace small { color: var(--faint); font-size: 9px; white-space: nowrap; }
|
|
289
|
+
.composer-workspace strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
|
|
290
|
+
.composer-control.select-control { height: 32px; padding: 0 7px; border-color: transparent; background: transparent; }
|
|
291
|
+
.composer-control.select-control:hover { border-color: var(--line); background: var(--surface-soft); }
|
|
292
|
+
.composer-control.model-control select { max-width: 170px; }
|
|
293
|
+
.composer-control.thinking-control select { max-width: 50px; }
|
|
294
|
+
.composer-context { height: 32px; display: inline-flex; align-items: center; padding: 0 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
|
|
295
|
+
.composer-login { min-height: 32px; height: 32px; padding: 0 10px; font-size: 11px; }
|
|
296
|
+
.send-button, .stop-button { width: 34px; height: 34px; flex-basis: 34px; margin: 0; color: var(--on-accent); background: var(--green); }
|
|
297
|
+
.send-button:hover { color: var(--on-accent); background: var(--green-dark); border-color: var(--green-dark); }
|
|
298
|
+
.stop-button { color: var(--red); background: var(--red-soft); }
|
|
299
|
+
.composer-meta { min-height: 27px; display: flex; align-items: center; flex-wrap: wrap; gap: 0; padding: 6px 4px 0; color: var(--faint); font-size: 10px; }
|
|
300
|
+
.composer-meta > span, .composer-meta > button { min-width: 0; display: inline-flex; align-items: center; gap: 5px; border: 0; color: inherit; background: transparent; white-space: nowrap; }
|
|
301
|
+
.composer-meta > button { padding: 0; cursor: pointer; }
|
|
302
|
+
.composer-meta > button:hover { color: var(--ink); }
|
|
303
|
+
.composer-meta > * + *::before { content: ''; width: 1px; height: 10px; margin: 0 10px; background: var(--line-strong); }
|
|
304
|
+
.composer-meta .runtime-status { color: var(--green-dark); font-weight: 650; }
|
|
305
|
+
.composer-meta .runtime-status.warning { color: var(--amber); }
|
|
306
|
+
.composer-meta .runtime-status.error { color: var(--red); }
|
|
307
|
+
.composer-notification { min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 6px; color: var(--muted); animation: notification-in 160ms ease-out; }
|
|
308
|
+
.composer-notification > svg { flex: 0 0 auto; }
|
|
309
|
+
.composer-notification > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
310
|
+
.composer-notification.success { color: var(--green-dark); }
|
|
311
|
+
.composer-notification.warning { color: var(--amber); }
|
|
312
|
+
.composer-notification.error { color: var(--red); }
|
|
313
|
+
.command-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 7px); z-index: 20; max-height: 300px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-raised); box-shadow: var(--shadow); }
|
|
314
|
+
.command-menu button { width: 100%; min-height: 37px; display: grid; grid-template-columns: 20px 90px 1fr auto; align-items: center; gap: 5px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; text-align: left; font-size: 12px; cursor: pointer; }
|
|
315
|
+
.command-menu button.active, .command-menu button:hover { background: var(--green-soft); }
|
|
316
|
+
.command-menu button strong { font-family: "SFMono-Regular", Consolas, monospace; }
|
|
317
|
+
.command-menu button span { color: var(--muted); }.command-menu button small { color: var(--faint); }
|
|
318
|
+
.statusbar { min-width: 0; display: flex; align-items: center; gap: 15px; padding: 0 18px; border-top: 1px solid var(--line); color: var(--muted); background: var(--status-bg); font-size: 10px; }
|
|
319
|
+
.statusbar .workspace { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
320
|
+
.connection { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
|
|
321
|
+
.connection i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
|
|
322
|
+
.connection.connected i { background: var(--green-bright); }.connection.reconnecting i, .connection.connecting i { background: var(--amber); }.connection.disconnected i { background: var(--red); }
|
|
323
|
+
|
|
324
|
+
.market-workspace { min-width: 0; min-height: 0; display: grid; grid-template-columns: 196px minmax(0, 1fr) clamp(320px, 25vw, 370px); overflow: hidden; background: var(--surface); }
|
|
325
|
+
.market-instruments { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border-right: 1px solid var(--line); background: var(--surface-soft); }
|
|
326
|
+
.market-panel-header { display: grid; gap: 10px; padding: 14px 12px 12px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
|
|
327
|
+
.market-panel-header > div { min-width: 0; display: flex; align-items: center; gap: 7px; }
|
|
328
|
+
.market-panel-header strong { font-size: 12px; }
|
|
329
|
+
.market-panel-header > div > span { min-width: 20px; padding: 2px 5px; border-radius: 4px; color: var(--muted); background: var(--chip); text-align: center; font-size: 9px; }
|
|
330
|
+
.market-search { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); background: var(--surface-soft); }
|
|
331
|
+
.market-search:focus-within { border-color: var(--accent-bright); background: var(--surface-raised); }
|
|
332
|
+
.market-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
|
|
333
|
+
.market-search input::placeholder { color: var(--faint); }
|
|
334
|
+
.instrument-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 5px 0; }
|
|
335
|
+
.instrument-list > button { position: relative; width: 100%; height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 8px auto; align-items: center; gap: 7px; padding: 0 12px 0 15px; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; cursor: pointer; }
|
|
336
|
+
.instrument-list > button:hover { background: var(--hover); }
|
|
337
|
+
.instrument-list > button.selected { border-left-color: var(--green); background: var(--green-soft); }
|
|
338
|
+
.instrument-list > button > span { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
|
|
339
|
+
.instrument-list > button strong { overflow: hidden; font: 700 12px/1.2 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
|
|
340
|
+
.instrument-list > button small { color: var(--faint); font-size: 9px; }
|
|
341
|
+
.instrument-list > button em { color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; }
|
|
342
|
+
.subscription-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
|
|
343
|
+
.subscription-dot.active { background: var(--green-bright); }
|
|
344
|
+
.subscription-dot.pending { background: var(--amber); }
|
|
345
|
+
.market-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; color: var(--muted); text-align: center; font-size: 11px; }
|
|
346
|
+
.market-empty svg { color: var(--faint); }
|
|
347
|
+
|
|
348
|
+
.market-chart-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: 72px minmax(0, 1fr) 28px; background: var(--surface); }
|
|
349
|
+
.market-chart-header { position: relative; z-index: 5; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--line); }
|
|
350
|
+
.market-symbol { min-width: 0; display: flex; align-items: center; gap: 9px; }
|
|
351
|
+
.market-symbol > svg { color: var(--green); }
|
|
352
|
+
.market-symbol > span { min-width: 0; display: grid; gap: 3px; }
|
|
353
|
+
.market-symbol strong { font: 750 14px/1.2 "SFMono-Regular", Consolas, monospace; }
|
|
354
|
+
.market-symbol small { color: var(--muted); font-size: 9px; }
|
|
355
|
+
.market-timeframes { width: 112px; height: 27px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-soft); }
|
|
356
|
+
.market-timeframes button { min-width: 0; border: 0; border-left: 1px solid var(--line); color: var(--muted); background: transparent; font: 650 9px/1 "SFMono-Regular", Consolas, monospace; cursor: pointer; }
|
|
357
|
+
.market-timeframes button:first-child { border-left: 0; }
|
|
358
|
+
.market-timeframes button:hover { color: var(--ink); background: var(--hover); }
|
|
359
|
+
.market-timeframes button.selected { color: var(--on-accent); background: var(--green); }
|
|
360
|
+
.sma-tool { position: relative; display: inline-flex; flex: 0 0 auto; }
|
|
361
|
+
.sma-tool-toggle { height: 27px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); background: var(--surface-soft); font: 700 9px/1 "SFMono-Regular", Consolas, monospace; cursor: pointer; }
|
|
362
|
+
.sma-tool-toggle:hover, .sma-tool-toggle.active { color: var(--ink); border-color: var(--accent); background: var(--surface-raised); }
|
|
363
|
+
.sma-tool-toggle svg { color: var(--accent); }
|
|
364
|
+
.sma-tool-toggle small { min-width: 15px; height: 15px; display: grid; place-items: center; border-radius: 3px; color: var(--on-accent); background: var(--accent); font: 700 8px/1 "SFMono-Regular", Consolas, monospace; }
|
|
365
|
+
.sma-tool-popover { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 218px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); box-shadow: var(--shadow); }
|
|
366
|
+
.sma-tool.end .sma-tool-popover { right: 0; left: auto; }
|
|
367
|
+
.sma-tool-form { display: grid; grid-template-columns: minmax(0, 1fr) 29px; gap: 5px; }
|
|
368
|
+
.sma-tool-form input { width: 100%; min-width: 0; height: 29px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; color: var(--ink); background: var(--surface); font: 650 10px/1 "SFMono-Regular", Consolas, monospace; }
|
|
369
|
+
.sma-tool-add { width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid var(--green); border-radius: 5px; color: var(--on-accent); background: var(--green); cursor: pointer; }
|
|
370
|
+
.sma-tool-add:hover { background: var(--green-dark); }
|
|
371
|
+
.sma-tool-error { margin: 6px 1px 0; color: var(--red); font-size: 9px; line-height: 1.3; }
|
|
372
|
+
.sma-tool-list { max-height: 170px; display: grid; gap: 2px; overflow-y: auto; margin: 7px 0 0; padding: 7px 0 0; border-top: 1px solid var(--line); list-style: none; }
|
|
373
|
+
.sma-tool-list li { min-width: 0; height: 28px; display: grid; grid-template-columns: 10px minmax(0, 1fr) 25px; align-items: center; gap: 7px; padding-left: 3px; border-radius: 4px; }
|
|
374
|
+
.sma-tool-list li:hover { background: var(--surface-soft); }
|
|
375
|
+
.sma-tool-list li > i { width: 10px; height: 10px; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
|
|
376
|
+
.sma-tool-list li > span { overflow: hidden; color: var(--ink); font: 700 10px/1 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
|
|
377
|
+
.sma-tool-list li > button { width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; color: var(--faint); background: transparent; cursor: pointer; }
|
|
378
|
+
.sma-tool-list li > button:hover { color: var(--red); background: var(--red-soft); }
|
|
379
|
+
.market-ohlc { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
|
|
380
|
+
.market-ohlc span { color: var(--faint); font-size: 9px; white-space: nowrap; }
|
|
381
|
+
.market-ohlc b { margin-left: 3px; color: var(--ink); font: 650 10px/1.2 "SFMono-Regular", Consolas, monospace; }
|
|
382
|
+
.market-last { min-width: 112px; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 9px; text-align: right; }
|
|
383
|
+
.market-last > strong { color: var(--ink); font: 760 20px/1.1 "SFMono-Regular", Consolas, monospace; }
|
|
384
|
+
.market-last > span { font: 650 9px/1.2 "SFMono-Regular", Consolas, monospace; white-space: nowrap; }
|
|
385
|
+
.market-last > small { grid-column: 1 / -1; margin-top: 5px; color: var(--faint); font-size: 9px; }
|
|
386
|
+
.up, .market-last .up, .market-ohlc .up { color: var(--up); }
|
|
387
|
+
.down, .market-last .down, .market-ohlc .down { color: var(--down); }
|
|
388
|
+
.market-chart-body { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
|
|
389
|
+
.kline-chart { position: absolute; inset: 0; min-width: 0; min-height: 0; }
|
|
390
|
+
.chart-empty { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: var(--chart-empty-bg); font-size: 11px; pointer-events: none; }
|
|
391
|
+
.market-chart-footer { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--faint); background: var(--surface-soft); font-size: 9px; }
|
|
392
|
+
.market-chart-footer > span:last-child { margin-left: auto; }
|
|
393
|
+
.market-error { min-width: 0; overflow: hidden; color: var(--red); text-overflow: ellipsis; white-space: nowrap; }
|
|
394
|
+
|
|
395
|
+
.market-assistant { min-width: 0; min-height: 0; display: grid; grid-template-rows: 56px minmax(0, 1fr) auto; overflow: hidden; border-left: 1px solid var(--line); background: var(--surface); }
|
|
396
|
+
.market-assistant-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 13px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
|
|
397
|
+
.market-assistant-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
|
|
398
|
+
.market-assistant-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border: 1px solid var(--accent-soft); border-radius: 6px; color: var(--green); background: var(--green-soft); }
|
|
399
|
+
.market-assistant-title > span:last-child { min-width: 0; display: grid; gap: 3px; }
|
|
400
|
+
.market-assistant-title strong { overflow: hidden; font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
|
|
401
|
+
.market-assistant-title small { color: var(--muted); font-size: 9px; }
|
|
402
|
+
.market-assistant-status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; white-space: nowrap; }
|
|
403
|
+
.market-assistant-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
|
|
404
|
+
.market-assistant-status.idle i { background: var(--green-bright); }
|
|
405
|
+
.market-assistant-status.busy i { background: var(--amber); animation: timeline-pulse 1.5s ease-in-out infinite; }
|
|
406
|
+
.market-assistant-status.warning i { background: var(--amber); }
|
|
407
|
+
.market-assistant-status.error { color: var(--red); }.market-assistant-status.error i { background: var(--red); }
|
|
408
|
+
.market-assistant-transcript { min-width: 0; min-height: 0; overflow: hidden; background: var(--surface); }
|
|
409
|
+
.market-assistant-transcript > .transcript { height: 100%; background: transparent; }
|
|
410
|
+
.market-assistant-transcript .transcript-inner { width: 100%; min-height: 100%; padding: 18px 14px 20px; }
|
|
411
|
+
.market-assistant-transcript .empty-state { min-height: 100%; padding: 18px 10px; }
|
|
412
|
+
.market-assistant-transcript .empty-state h1 { font-size: 15px; }
|
|
413
|
+
.market-assistant-composer { min-width: 0; border-top: 1px solid var(--line); background: var(--composer-bg); }
|
|
414
|
+
.market-assistant-composer .composer-wrap { padding: 10px 10px 8px; border-top: 0; }
|
|
415
|
+
.market-assistant-composer .composer-shell { width: 100%; }
|
|
416
|
+
.market-assistant-composer .composer textarea { min-height: 58px; padding: 11px 12px 7px; font-size: 12px; }
|
|
417
|
+
.market-assistant-composer .composer-toolbar { gap: 4px; padding: 0 5px 5px 7px; }
|
|
418
|
+
.market-assistant-composer .composer-toolbar-left { display: none; }
|
|
419
|
+
.market-assistant-composer .composer-toolbar-right { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 2px; }
|
|
420
|
+
.market-assistant-composer .timeline-density-anchor, .market-assistant-composer .composer-context { display: none; }
|
|
421
|
+
.market-assistant-composer .composer-control.model-control { min-width: 0; }
|
|
422
|
+
.market-assistant-composer .composer-control.model-control select { width: 100%; max-width: none; }
|
|
423
|
+
.market-assistant-composer .composer-meta { min-height: 24px; max-height: 29px; overflow: hidden; padding: 4px 2px 0; }
|
|
424
|
+
.market-assistant-composer .composer-meta > * + *::before { margin-left: 6px; margin-right: 6px; }
|
|
425
|
+
|
|
426
|
+
.strategy-workspace { min-width: 0; min-height: 0; display: grid; grid-template-columns: 214px minmax(400px, 0.75fr) minmax(500px, 1.4fr); overflow: hidden; background: var(--surface); }
|
|
427
|
+
.strategy-workspace.inspector-only { grid-template-columns: minmax(0, 1fr); }
|
|
428
|
+
.strategy-workspace.inspector-only > .strategy-files, .strategy-workspace.inspector-only > .strategy-conversation { display: none; }
|
|
429
|
+
.strategy-files { min-width: 0; min-height: 0; display: grid; grid-template-rows: 46px minmax(0, 1fr); border-right: 1px solid var(--line); background: var(--surface-soft); }
|
|
430
|
+
.strategy-files > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 0 13px; border-bottom: 1px solid var(--line); }
|
|
431
|
+
.strategy-files > header > div { min-width: 0; display: flex; align-items: center; gap: 7px; }
|
|
432
|
+
.strategy-files > header > div:first-child svg { color: var(--accent); }
|
|
433
|
+
.strategy-files > header strong { font-size: 12px; }
|
|
434
|
+
.strategy-files > header span { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; color: var(--muted); background: var(--chip); font-size: 9px; }
|
|
435
|
+
.strategy-files .icon-button { width: 28px; height: 28px; flex-basis: 28px; }
|
|
436
|
+
.strategy-file-list { min-height: 0; overflow-y: auto; padding: 5px 0; }
|
|
437
|
+
.strategy-file-list > button { width: 100%; min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 6px 9px 6px 12px; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; cursor: pointer; }
|
|
438
|
+
.strategy-file-list > button:hover { background: var(--hover); }
|
|
439
|
+
.strategy-file-list > button.selected { border-left-color: var(--accent); background: var(--accent-soft); }
|
|
440
|
+
.strategy-file-list > button > span { min-width: 0; display: grid; gap: 5px; }
|
|
441
|
+
.strategy-file-list strong { overflow: hidden; font: 680 11px/1.25 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
|
|
442
|
+
.strategy-file-list small { overflow: hidden; color: var(--faint); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
|
|
443
|
+
.strategy-create-first { min-height: 42px !important; display: flex !important; grid-template-columns: none !important; justify-content: center; margin: 8px 10px; padding: 0 8px !important; border: 1px dashed var(--line-strong) !important; border-radius: 6px; color: var(--muted); font-size: 11px; }
|
|
444
|
+
|
|
445
|
+
.strategy-conversation { min-width: 0; min-height: 0; display: grid; grid-template-rows: 46px minmax(0, 1fr) auto; border-right: 1px solid var(--line); background: var(--surface); }
|
|
446
|
+
.strategy-panel-header { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 13px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
|
|
447
|
+
.strategy-panel-header > span:first-child { min-width: 0; display: flex; align-items: center; gap: 7px; }
|
|
448
|
+
.strategy-panel-header svg { color: var(--accent); }
|
|
449
|
+
.strategy-panel-header strong { overflow: hidden; font: 680 11px/1.2 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
|
|
450
|
+
.strategy-panel-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
|
|
451
|
+
.strategy-panel-actions .icon-button { width: 28px; height: 28px; flex-basis: 28px; }
|
|
452
|
+
.strategy-panel-actions .strategy-delete-button svg { color: var(--red); }
|
|
453
|
+
.strategy-conversation .transcript-inner { width: 100%; padding: 20px 15px; }
|
|
454
|
+
.strategy-conversation .empty-state { min-height: 100%; }
|
|
455
|
+
.strategy-conversation .composer-wrap { padding: 10px 10px 8px; border-top: 1px solid var(--line); }
|
|
456
|
+
.strategy-conversation .composer-shell { width: 100%; }
|
|
457
|
+
.strategy-conversation .composer textarea { min-height: 64px; }
|
|
458
|
+
.strategy-conversation .composer-toolbar-left { display: none; }
|
|
459
|
+
.strategy-conversation .composer-toolbar-right { width: 100%; display: grid; grid-template-columns: auto minmax(110px, 1fr) auto auto auto; }
|
|
460
|
+
.strategy-conversation .composer-control.model-control select { width: 100%; max-width: none; }
|
|
461
|
+
.strategy-conversation .composer-meta { max-height: 29px; overflow: hidden; }
|
|
462
|
+
.strategy-no-selection { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--muted); font-size: 11px; }
|
|
463
|
+
|
|
464
|
+
.strategy-inspector { min-width: 0; min-height: 0; display: grid; grid-template-rows: 46px minmax(0, 1fr); background: var(--surface); }
|
|
465
|
+
.strategy-inspector-header { position: relative; z-index: 10; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 0 11px; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
|
|
466
|
+
.strategy-view-tabs { height: 30px; display: flex; flex: 0 0 auto; align-items: center; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
|
|
467
|
+
.strategy-view-tabs button { height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
|
|
468
|
+
.strategy-view-tabs button.active { color: var(--accent-dark); background: var(--surface-raised); box-shadow: 0 1px 3px rgba(25, 37, 31, 0.12); }
|
|
469
|
+
.strategy-inspector-actions { min-width: 0; display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 3px; }
|
|
470
|
+
.strategy-inspector-actions .icon-button { width: 30px; height: 30px; flex-basis: 30px; }
|
|
471
|
+
.backtest-run-action.button { min-width: 60px; min-height: 30px; height: 30px; padding: 0 9px; font-size: 10px; }
|
|
472
|
+
.backtest-settings-anchor { position: relative; display: flex; }
|
|
473
|
+
.backtest-settings-popover { position: absolute; top: calc(100% + 7px); right: 0; z-index: 45; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 82px); overflow-y: auto; padding: 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-raised); box-shadow: var(--shadow); }
|
|
474
|
+
.backtest-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
|
|
475
|
+
.backtest-settings-grid label { min-width: 0; display: grid; gap: 5px; }
|
|
476
|
+
.backtest-settings-grid label > span { color: var(--muted); font-size: 9px; font-weight: 700; }
|
|
477
|
+
.backtest-settings-grid select, .backtest-settings-grid input { width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; color: var(--ink); background: var(--surface); font-size: 10px; }
|
|
478
|
+
.backtest-settings-grid .backtest-source, .backtest-settings-grid .backtest-csv { grid-column: 1 / -1; }
|
|
479
|
+
.backtest-setting-heading { grid-column: 1 / -1; padding-top: 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 9px; font-weight: 750; line-height: 22px; }
|
|
480
|
+
.backtest-contract-symbol { min-width: 0; }
|
|
481
|
+
.backtest-contract-query.button { align-self: end; width: 100%; height: 32px; min-height: 32px; padding: 0 9px; font-size: 10px; }
|
|
482
|
+
.strategy-tab-panel { min-width: 0; min-height: 0; overflow: hidden; }
|
|
483
|
+
.strategy-tab-panel > * { height: 100%; }
|
|
484
|
+
.backtest-charts { min-width: 0; min-height: 0; display: grid; grid-template-rows: 45px minmax(0, 1fr); overflow: hidden; }
|
|
485
|
+
.backtest-chart-grid { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(480px, 1fr); overflow-y: auto; padding: 8px 12px 12px; overscroll-behavior: contain; }
|
|
486
|
+
.backtest-chart-section { min-width: 0; min-height: 0; display: grid; grid-template-rows: 34px minmax(0, 1fr); }
|
|
487
|
+
.backtest-report { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
488
|
+
.backtest-empty { min-width: 0; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 24px; color: var(--muted); text-align: center; }
|
|
489
|
+
.backtest-empty strong { font-size: 12px; }.backtest-empty p { max-width: 480px; margin: 0; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
490
|
+
.backtest-empty.error { color: var(--red); }
|
|
491
|
+
.backtest-summary-line { min-height: 45px; display: flex; align-items: center; gap: 14px; padding: 7px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
|
|
492
|
+
.backtest-summary-line > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
|
|
493
|
+
.backtest-summary-line > span:first-child { min-width: 0; display: grid; gap: 2px; margin-right: auto; }
|
|
494
|
+
.backtest-summary-line strong { overflow: hidden; color: var(--ink); font: 700 11px/1.2 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; }
|
|
495
|
+
.backtest-summary-line small { color: var(--faint); font-size: 8px; }
|
|
496
|
+
.backtest-stale { color: var(--amber); }
|
|
497
|
+
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(72px, 1fr)); border-bottom: 1px solid var(--line); }
|
|
498
|
+
.metric { min-width: 0; display: grid; gap: 5px; padding: 10px 11px; border-right: 1px solid var(--line); }
|
|
499
|
+
.metric:last-child { border-right: 0; }
|
|
500
|
+
.metric span { color: var(--faint); font-size: 8px; }.metric strong { overflow: hidden; font: 720 13px/1.2 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
|
|
501
|
+
.liquidation-summary { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
|
|
502
|
+
.liquidation-summary .metric { border-bottom: 1px solid var(--line); }
|
|
503
|
+
.liquidation-summary .metric:nth-child(4n) { border-right: 0; }
|
|
504
|
+
.liquidation-summary .metric:nth-last-child(-n + 4) { border-bottom: 0; }
|
|
505
|
+
.backtest-section { min-width: 0; padding: 0 12px 13px; border-bottom: 1px solid var(--line); }
|
|
506
|
+
.backtest-section-header { position: relative; z-index: 3; height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
507
|
+
.backtest-section-header h3 { min-width: 0; margin: 0; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
|
|
508
|
+
.backtest-chart-header { justify-content: flex-start; }
|
|
509
|
+
.backtest-chart-tools { display: flex; align-items: center; gap: 6px; }
|
|
510
|
+
.backtest-timeframes { width: 126px; height: 25px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface-soft); }
|
|
511
|
+
.backtest-timeframes button { min-width: 0; padding: 0; border: 0; border-left: 1px solid var(--line); color: var(--muted); background: transparent; font: 650 9px/1 "SFMono-Regular", Consolas, monospace; cursor: pointer; }
|
|
512
|
+
.backtest-timeframes button:first-child { border-left: 0; }
|
|
513
|
+
.backtest-timeframes button:hover { color: var(--ink); background: var(--hover); }
|
|
514
|
+
.backtest-timeframes button.selected { color: var(--on-accent); background: var(--green); }
|
|
515
|
+
.backtest-section-header .sma-tool-toggle { height: 25px; }
|
|
516
|
+
.backtest-chart { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
|
|
517
|
+
.backtest-chart-canvas { position: absolute; inset: 0; min-width: 0; min-height: 0; }
|
|
518
|
+
.backtest-trade-tooltip { --trade-color: var(--green); position: absolute; top: 13px; left: 14px; z-index: 8; max-width: min(620px, calc(100% - 90px)); color: var(--ink); font: 650 10px/1.55 "SFMono-Regular", Consolas, monospace; pointer-events: none; }
|
|
519
|
+
.backtest-trade-tooltip p { margin: 0; overflow-wrap: anywhere; }
|
|
520
|
+
.backtest-trade-tooltip p + p { margin-top: 2px; }
|
|
521
|
+
.backtest-trade-tooltip time { color: var(--muted); font-weight: 500; white-space: nowrap; }
|
|
522
|
+
.backtest-trade-tooltip strong { color: var(--trade-color); font-weight: 800; }
|
|
523
|
+
.trade-table-wrap { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
|
|
524
|
+
.trade-table { width: 100%; border-collapse: collapse; font: 9px/1.35 "SFMono-Regular", Consolas, monospace; }
|
|
525
|
+
.trade-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: var(--surface-soft); text-align: left; }
|
|
526
|
+
.trade-table th, .trade-table td { height: 30px; padding: 0 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
|
|
527
|
+
.trade-table tbody tr:last-child td { border-bottom: 0; }.trade-table tbody tr:hover { background: var(--hover); }
|
|
528
|
+
.table-empty { padding: 26px; color: var(--muted); text-align: center; font-size: 10px; }
|
|
529
|
+
.diagnostics { display: grid; gap: 5px; }
|
|
530
|
+
.diagnostics p { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 5px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
|
|
531
|
+
.diagnostics p svg { margin-top: 1px; color: var(--accent); }.diagnostics p:first-child svg { color: var(--amber); }
|
|
532
|
+
.strategy-code { min-width: 0; min-height: 0; display: grid; grid-template-rows: 34px minmax(0, 1fr); }
|
|
533
|
+
.strategy-code > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font: 9px "SFMono-Regular", Consolas, monospace; }
|
|
534
|
+
.strategy-code > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.strategy-code > div small { color: var(--faint); }
|
|
535
|
+
.strategy-code pre { min-width: 0; min-height: 0; overflow: auto; margin: 0; padding: 15px; color: var(--code-ink); background: var(--code-bg); tab-size: 2; }
|
|
536
|
+
.strategy-code code { font: 11px/1.55 "SFMono-Regular", Consolas, monospace; white-space: pre; }
|
|
537
|
+
.create-strategy-form > label { display: grid; gap: 7px; }.create-strategy-form > label span { color: var(--muted); font-size: 11px; font-weight: 650; }
|
|
538
|
+
.create-strategy-form input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; }
|
|
539
|
+
|
|
540
|
+
.dialog-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--overlay); backdrop-filter: blur(2px); }
|
|
541
|
+
.dialog { width: min(100%, 520px); max-height: min(780px, calc(100vh - 40px)); display: grid; grid-template-rows: 52px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); box-shadow: var(--shadow); }
|
|
542
|
+
.dialog.small { width: min(100%, 390px); }.dialog.wide { width: min(100%, 760px); }
|
|
543
|
+
.dialog > header { display: grid; grid-template-columns: 27px 1fr 34px; align-items: center; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
|
|
544
|
+
.dialog > header > span { color: var(--green); }.dialog > header h2 { margin: 0; font-size: 14px; font-weight: 720; }
|
|
545
|
+
.dialog-content { min-height: 0; overflow-y: auto; padding: 17px; }
|
|
546
|
+
.dialog-search { height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; }
|
|
547
|
+
.dialog-search input { width: 100%; border: 0; outline: 0; }
|
|
548
|
+
.selection-list { display: grid; gap: 5px; margin-top: 10px; }
|
|
549
|
+
.selection-list button { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; background: var(--surface-soft); text-align: left; cursor: pointer; }
|
|
550
|
+
.selection-list button:hover, .selection-list button.selected { border-color: var(--accent-bright); background: var(--green-soft); }
|
|
551
|
+
.selection-list button > span { display: grid; gap: 3px; }.selection-list button strong { font-size: 13px; }.selection-list button small { color: var(--muted); font-size: 10px; }
|
|
552
|
+
.selection-list.compact { margin-top: 0; }.no-results { padding: 25px; color: var(--muted); text-align: center; font-size: 12px; }
|
|
553
|
+
.auth-form > p { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.55; }
|
|
554
|
+
.auth-input-row { display: flex; gap: 8px; }
|
|
555
|
+
.auth-input-row input { min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; }
|
|
556
|
+
.auth-events { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
|
|
557
|
+
.auth-events > div { padding: 10px; border-left: 3px solid var(--green); background: var(--green-soft); font-size: 12px; }
|
|
558
|
+
.auth-events p { margin: 0 0 6px; }.auth-events a { display: inline-flex; align-items: center; gap: 4px; color: var(--green); }
|
|
559
|
+
.device-code { display: grid; gap: 5px; }.device-code strong { font: 700 22px/1.3 "SFMono-Regular", Consolas, monospace; letter-spacing: 1px; }
|
|
560
|
+
.question-tabs { display: flex; gap: 5px; margin-bottom: 18px; overflow-x: auto; }
|
|
561
|
+
.question-tabs button { min-width: 0; flex: 1; height: 36px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface-soft); font-size: 11px; white-space: nowrap; cursor: pointer; }
|
|
562
|
+
.question-tabs button.active { color: var(--green-dark); border-color: var(--accent-bright); background: var(--green-soft); }
|
|
563
|
+
.question-tabs button span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--on-accent); background: var(--faint); font-size: 9px; }
|
|
564
|
+
.question-tabs button.active span { background: var(--green); }
|
|
565
|
+
.question-heading small { color: var(--green); font-size: 10px; font-weight: 750; text-transform: uppercase; }.question-heading h2 { margin: 6px 0 13px; font-size: 16px; line-height: 1.45; }
|
|
566
|
+
.question-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
|
|
567
|
+
.question-options label { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); cursor: pointer; }
|
|
568
|
+
.question-options label:hover, .question-options label.checked { border-color: var(--accent-bright); background: var(--green-soft); }
|
|
569
|
+
.question-options input { position: absolute; opacity: 0; pointer-events: none; }
|
|
570
|
+
.choice-control { width: 18px; height: 18px; display: grid; place-items: center; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-raised); }
|
|
571
|
+
.question-options input[type="radio"] + .choice-control { border-radius: 50%; }
|
|
572
|
+
.checked .choice-control { color: var(--on-accent); border-color: var(--green); background: var(--green); }
|
|
573
|
+
.question-options label > span:last-child { display: grid; gap: 4px; min-width: 0; }.question-options strong { font-size: 12px; }.question-options small { color: var(--muted); font-size: 10px; line-height: 1.45; }
|
|
574
|
+
.question-textarea, .notes-field textarea { width: 100%; resize: vertical; margin-top: 9px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; line-height: 1.5; }
|
|
575
|
+
.question-textarea { min-height: 74px; }
|
|
576
|
+
.notes-field { display: block; margin-top: 12px; }.notes-field > span { color: var(--muted); font-size: 11px; font-weight: 650; }.notes-field > span small { font-weight: 400; }.notes-field textarea { min-height: 50px; margin-top: 5px; }
|
|
577
|
+
.question-preview { margin-top: 13px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
|
|
578
|
+
.preview-label { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; }
|
|
579
|
+
.question-preview > .markdown { max-height: 220px; overflow: auto; padding: 10px; font-size: 12px; }
|
|
580
|
+
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 18px -17px -17px; padding: 12px 17px; border-top: 1px solid var(--line); background: var(--surface-soft); }
|
|
581
|
+
.questionnaire-footer { justify-content: space-between; }.questionnaire-footer > span { color: var(--muted); font-size: 11px; }.rotate-left { transform: rotate(-90deg); }
|
|
582
|
+
.confirm-copy { margin: 0; color: var(--muted); font-size: 13px; }
|
|
583
|
+
.delete-strategy-copy code { color: var(--ink); font-family: "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
|
|
584
|
+
.capability-grid { display: grid; gap: 20px; }.capability-grid section > h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; font-size: 12px; text-transform: uppercase; }
|
|
585
|
+
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }.tag-list span { padding: 5px 7px; border-radius: 4px; color: var(--ink); background: var(--chip); font: 10px "SFMono-Regular", Consolas, monospace; }
|
|
586
|
+
.capability-item { padding: 9px 0; border-bottom: 1px solid var(--line); }.capability-item:last-child { border-bottom: 0; }.capability-item strong { font-size: 12px; }.capability-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
|
|
587
|
+
.toast { position: fixed; right: 18px; bottom: 42px; z-index: 200; max-width: min(440px, calc(100vw - 36px)); min-height: 42px; display: grid; grid-template-columns: 20px minmax(0, 1fr) 30px; align-items: center; gap: 7px; padding: 5px 6px 5px 11px; border: 1px solid var(--red); border-radius: 7px; color: var(--red); background: var(--red-soft); box-shadow: var(--shadow); font-size: 12px; }
|
|
588
|
+
.app-shell:not(.market-mode) .toast { top: 70px; bottom: auto; }
|
|
589
|
+
.toast .icon-button { width: 28px; height: 28px; flex-basis: 28px; }
|
|
590
|
+
.boot-screen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); background: var(--app-bg); }
|
|
591
|
+
.boot-screen p { margin: 0; font-size: 12px; }.boot-error { max-width: 420px; color: var(--red); text-align: center; }
|
|
592
|
+
|
|
593
|
+
.theme-dialog { min-width: 0; }
|
|
594
|
+
.theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
|
595
|
+
.theme-card { position: relative; min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr) 24px; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
|
|
596
|
+
.theme-card:hover { border-color: var(--accent-bright); transform: translateY(-1px); }
|
|
597
|
+
.theme-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
|
|
598
|
+
.theme-preview { position: relative; display: block; width: 112px; height: 76px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
|
|
599
|
+
.theme-preview::before { content: ''; position: absolute; inset: 0; opacity: 0.42; background: repeating-linear-gradient(to right, transparent 0 22px, rgba(120, 145, 136, 0.25) 22px 23px), repeating-linear-gradient(to bottom, transparent 0 18px, rgba(120, 145, 136, 0.25) 18px 19px); }
|
|
600
|
+
.theme-preview-bar { position: absolute; left: 9px; top: 9px; width: 50px; height: 5px; border-radius: 2px; opacity: 0.85; }
|
|
601
|
+
.theme-preview-candle { position: absolute; display: block; width: 7px; border-radius: 1px; box-shadow: 0 -5px 0 -3px currentColor, 0 5px 0 -3px currentColor; }
|
|
602
|
+
.theme-preview-candle.up { left: 55px; top: 26px; height: 27px; color: inherit; }
|
|
603
|
+
.theme-preview-candle.down { left: 73px; top: 36px; height: 20px; color: inherit; }
|
|
604
|
+
.theme-preview-line { position: absolute; left: 8px; right: 8px; bottom: 9px; height: 2px; border-radius: 2px; transform: skewY(-7deg); opacity: 0.8; }
|
|
605
|
+
.theme-card-copy { min-width: 0; display: grid; gap: 5px; }
|
|
606
|
+
.theme-card-copy strong { overflow: hidden; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
|
|
607
|
+
.theme-card-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
|
|
608
|
+
.theme-swatches { display: flex; gap: 5px; }
|
|
609
|
+
.theme-swatches i { width: 13px; height: 13px; display: block; border: 1px solid rgba(127, 127, 127, 0.22); border-radius: 50%; }
|
|
610
|
+
.theme-check { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: transparent; background: var(--surface-soft); }
|
|
611
|
+
.theme-card.selected .theme-check { color: var(--on-accent); border-color: var(--accent); background: var(--accent); }
|
|
612
|
+
|
|
613
|
+
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
|
|
614
|
+
@keyframes timeline-pulse { 50% { opacity: 0.45; transform: scale(0.82); } }
|
|
615
|
+
@keyframes notification-in { from { opacity: 0; transform: translateY(2px); } }
|
|
616
|
+
|
|
617
|
+
@media (max-width: 760px) {
|
|
618
|
+
.topbar { gap: 10px; padding: 0 10px; }
|
|
619
|
+
.topbar-left { gap: 10px; }
|
|
620
|
+
.brand-copy { display: none; }
|
|
621
|
+
.composer-wrap { padding: 10px 10px 8px; }
|
|
622
|
+
.composer-toolbar { align-items: stretch; flex-wrap: wrap; gap: 2px; }
|
|
623
|
+
.composer-toolbar-left, .composer-toolbar-right { width: 100%; }
|
|
624
|
+
.composer-toolbar-right { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; }
|
|
625
|
+
.composer-control.model-control select { width: 100%; max-width: none; }
|
|
626
|
+
.composer-workspace { max-width: 100%; }
|
|
627
|
+
.composer-meta > * + *::before { margin: 0 7px; }
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
@media (max-width: 520px) {
|
|
631
|
+
.workspace-tabs button { padding: 0 7px; }
|
|
632
|
+
.search-field { position: absolute; left: 10px; right: 54px; width: auto; z-index: 2; }
|
|
633
|
+
.composer textarea { min-height: 58px; }
|
|
634
|
+
.composer-meta { column-gap: 12px; row-gap: 5px; }
|
|
635
|
+
.composer-meta > * + *::before { display: none; }
|
|
636
|
+
.app-shell:not(.market-mode) .toast { left: 10px; right: 10px; max-width: none; }
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
@media (max-width: 620px) {
|
|
640
|
+
.theme-options { grid-template-columns: 1fr; }
|
|
641
|
+
.theme-card { grid-template-columns: 96px minmax(0, 1fr) 24px; }
|
|
642
|
+
.theme-preview { width: 96px; }
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
@media (max-width: 360px) {
|
|
646
|
+
.composer-context-label { display: none; }
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
@media (prefers-reduced-motion: reduce) {
|
|
650
|
+
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
|
|
651
|
+
}
|