File size: 7,437 Bytes
212c959
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48b8720
212c959
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48b8720
212c959
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    color-scheme: dark;
    --background: 0 0% 13%;
    --foreground: 0 0% 94%;
    --card: 0 0% 17%;
    --panel: 0 0% 10%;
    --muted: 0 0% 22%;
    --muted-foreground: 0 0% 68%;
    --border: 0 0% 25%;
    --input: 0 0% 28%;
    --accent: 0 0% 8%;
    --accent-foreground: 0 0% 100%;
    --secondary: 0 0% 24%;
    --secondary-foreground: 0 0% 94%;
    --success: 155 62% 45%;
    --warning: 38 92% 54%;
    --danger: 0 75% 60%;
    --ring: 212 90% 60%;
  }

  [data-theme='light'] {
    color-scheme: light;
    --background: 0 0% 100%;
    --foreground: 0 0% 13%;
    --card: 0 0% 100%;
    --panel: 0 0% 97%;
    --muted: 0 0% 94%;
    --muted-foreground: 0 0% 42%;
    --border: 0 0% 88%;
    --input: 0 0% 82%;
    --accent: 0 0% 8%;
    --accent-foreground: 0 0% 100%;
    --secondary: 0 0% 94%;
    --secondary-foreground: 0 0% 13%;
    --success: 155 58% 38%;
    --warning: 38 90% 44%;
    --danger: 0 72% 50%;
    --ring: 212 92% 50%;
  }

  * {
    @apply border-border;
    letter-spacing: 0 !important;
  }

  html,
  body,
  #root {
    height: 100%;
  }

  html {
    @apply antialiased;
  }

  body {
    @apply overflow-hidden bg-background font-sans text-foreground;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    transition:
      background-color 180ms ease,
      color 180ms ease;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: inherit;
  }

  code,
  pre,
  kbd {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

  button {
    border-radius: 0.5rem !important;
  }

  ::selection {
    background: hsl(var(--accent) / 0.18);
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@layer components {
  .app-background {
    background: hsl(var(--background));
  }

  [data-theme='light'] .app-background {
    background: hsl(var(--background));
  }

  .app-background-glow {
    display: none;
  }

  .app-background-grid {
    display: none;
  }

  [data-theme='light'] .app-background-grid {
    opacity: 0.18;
  }

  .brand-gradient {
    background: hsl(var(--accent));
  }

  .text-gradient {
    color: hsl(var(--foreground));
  }

  .surface-card,
  .editorial-card,
  .editorial-surface {
    @apply rounded-lg border border-border bg-card;
  }

  .surface-soft,
  .editorial-card-soft {
    @apply rounded-lg border border-border bg-panel;
  }

  .label-pill,
  .editorial-pill {
    @apply inline-flex items-center rounded-lg border border-border bg-background px-3 py-1 text-[11px] font-medium text-muted-foreground;
  }

  .field {
    @apply border border-input bg-card transition;
  }

  .field:focus-within {
    border-color: hsl(var(--accent) / 0.42);
    box-shadow: 0 0 0 2px hsl(var(--accent) / 0.14);
  }

  .rich-scroll {
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--border)) transparent;
  }

  .rich-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  .rich-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .rich-scroll::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: hsl(var(--border));
    background-clip: padding-box;
  }

  .markdown-body {
    @apply space-y-4 break-words text-sm leading-7 text-foreground;
  }

  .markdown-body > :first-child {
    @apply mt-0;
  }

  .markdown-body > :last-child {
    @apply mb-0;
  }

  .markdown-body h1,
  .markdown-body h2,
  .markdown-body h3 {
    @apply font-display font-semibold tracking-tight text-foreground;
  }

  .markdown-body h1 {
    @apply text-2xl;
  }

  .markdown-body h2 {
    @apply text-xl;
  }

  .markdown-body h3 {
    @apply text-lg;
  }

  .markdown-body p,
  .markdown-body ul,
  .markdown-body ol,
  .markdown-body blockquote,
  .markdown-body pre,
  .markdown-body table {
    @apply my-4;
  }

  .markdown-body a {
    @apply font-medium text-accent underline decoration-accent/35 underline-offset-4 transition hover:decoration-accent;
  }

  .markdown-body strong {
    @apply font-semibold text-foreground;
  }

  .markdown-body code:not(pre code) {
    @apply rounded-md bg-secondary px-1.5 py-1 text-[0.85em] text-foreground;
  }

  .markdown-body ul,
  .markdown-body ol {
    @apply pl-6;
  }

  .markdown-body ul {
    @apply list-disc;
  }

  .markdown-body ol {
    @apply list-decimal;
  }

  .markdown-body blockquote {
    @apply rounded-lg border-l-4 border-border bg-secondary px-4 py-3 text-muted-foreground;
  }

  .markdown-body hr {
    @apply border-border;
  }

  .markdown-body img {
    @apply rounded-lg border border-border;
  }

  .markdown-body table {
    @apply w-full overflow-hidden rounded-lg border border-border text-left text-sm;
  }

  .markdown-body thead {
    @apply bg-background;
  }

  .markdown-body th,
  .markdown-body td {
    @apply border-b border-border px-4 py-3;
  }

  .markdown-body pre {
    @apply overflow-x-auto rounded-lg border border-border bg-background p-4 text-sm;
  }

  .markdown-body pre code {
    @apply bg-transparent p-0 text-foreground;
  }

  .code-shell {
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid hsl(var(--border) / 0.8);
    background: hsl(var(--background) / 0.92);
  }

  .code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid hsl(var(--border) / 0.8);
    padding: 0.75rem 1rem;
    background: hsl(var(--panel) / 0.88);
  }

  .code-badge {
    border-radius: 8px;
    border: 1px solid hsl(var(--border) / 0.8);
    background: hsl(var(--background) / 0.75);
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
  }

  .code-copy-button {
    border-radius: 8px;
    border: 1px solid hsl(var(--border) / 0.8);
    background: hsl(var(--background) / 0.78);
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    transition: background-color 180ms ease, border-color 180ms ease;
  }

  .code-copy-button:hover {
    border-color: hsl(var(--accent) / 0.28);
    background: hsl(var(--panel) / 0.95);
  }

  .typing-cursor {
    display: inline-block;
    width: 0.65rem;
    height: 1rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background: hsl(var(--accent));
    animation: blink 1s step-end infinite;
    vertical-align: middle;
  }

  .auth-panel {
    background:
      linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--panel)) 100%);
  }

  .auth-sweep {
    pointer-events: none;
    position: absolute;
    inset: -40% -20% auto;
    height: 8rem;
    background: linear-gradient(
      90deg,
      transparent,
      hsl(var(--accent) / 0.16),
      transparent
    );
    transform: rotate(-8deg) translateX(-40%);
    animation: auth-sweep 5s ease-in-out infinite;
  }

  @keyframes auth-sweep {
    0%,
    100% {
      transform: rotate(-8deg) translateX(-45%);
      opacity: 0.2;
    }

    50% {
      transform: rotate(-8deg) translateX(45%);
      opacity: 0.55;
    }
  }
}