@mobile-reality/mdma-renderer-react 0.1.0 → 0.2.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.
Files changed (48) hide show
  1. package/dist/components/ApprovalGateRenderer.d.ts.map +1 -1
  2. package/dist/components/ApprovalGateRenderer.js +1 -1
  3. package/dist/components/ApprovalGateRenderer.js.map +1 -1
  4. package/dist/components/ButtonRenderer.d.ts.map +1 -1
  5. package/dist/components/ButtonRenderer.js +1 -1
  6. package/dist/components/ButtonRenderer.js.map +1 -1
  7. package/dist/components/CalloutRenderer.d.ts.map +1 -1
  8. package/dist/components/CalloutRenderer.js +1 -1
  9. package/dist/components/CalloutRenderer.js.map +1 -1
  10. package/dist/components/ChartRenderer.d.ts.map +1 -1
  11. package/dist/components/ChartRenderer.js +9 -6
  12. package/dist/components/ChartRenderer.js.map +1 -1
  13. package/dist/components/FormRenderer.d.ts.map +1 -1
  14. package/dist/components/FormRenderer.js +29 -10
  15. package/dist/components/FormRenderer.js.map +1 -1
  16. package/dist/components/MdastRenderer.d.ts.map +1 -1
  17. package/dist/components/MdastRenderer.js +6 -2
  18. package/dist/components/MdastRenderer.js.map +1 -1
  19. package/dist/components/MdmaBlock.d.ts.map +1 -1
  20. package/dist/components/MdmaBlock.js.map +1 -1
  21. package/dist/components/MdmaBlockLoading.d.ts.map +1 -1
  22. package/dist/components/MdmaBlockLoading.js +1 -3
  23. package/dist/components/MdmaBlockLoading.js.map +1 -1
  24. package/dist/components/MdmaDocument.d.ts.map +1 -1
  25. package/dist/components/MdmaDocument.js +5 -7
  26. package/dist/components/MdmaDocument.js.map +1 -1
  27. package/dist/components/TableRenderer.d.ts.map +1 -1
  28. package/dist/components/TableRenderer.js +13 -3
  29. package/dist/components/TableRenderer.js.map +1 -1
  30. package/dist/components/TasklistRenderer.d.ts.map +1 -1
  31. package/dist/components/TasklistRenderer.js +1 -1
  32. package/dist/components/TasklistRenderer.js.map +1 -1
  33. package/dist/components/ThinkingRenderer.d.ts.map +1 -1
  34. package/dist/components/ThinkingRenderer.js.map +1 -1
  35. package/dist/components/WebhookRenderer.d.ts.map +1 -1
  36. package/dist/components/WebhookRenderer.js +1 -1
  37. package/dist/components/WebhookRenderer.js.map +1 -1
  38. package/dist/context/ElementOverridesContext.d.ts +6 -0
  39. package/dist/context/ElementOverridesContext.d.ts.map +1 -1
  40. package/dist/context/ElementOverridesContext.js.map +1 -1
  41. package/dist/hooks/use-document-store.d.ts.map +1 -1
  42. package/dist/hooks/use-document-store.js.map +1 -1
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +2 -2
  46. package/dist/index.js.map +1 -1
  47. package/package.json +8 -6
  48. package/styles.css +794 -0
package/styles.css ADDED
@@ -0,0 +1,794 @@
1
+ /* ===== MDMA Document ===== */
2
+ .mdma-document {
3
+ max-width: 720px;
4
+ margin: 0 auto;
5
+ }
6
+
7
+ /* ===== Entrance animation for all MDMA children ===== */
8
+ @keyframes mdma-fade-in-up {
9
+ from {
10
+ opacity: 0;
11
+ transform: translateY(8px);
12
+ }
13
+ to {
14
+ opacity: 1;
15
+ transform: translateY(0);
16
+ }
17
+ }
18
+
19
+ .mdma-document > * {
20
+ animation: mdma-fade-in-up 0.3s ease-out both;
21
+ }
22
+
23
+ /* ===== MDMA Block Loading Skeleton ===== */
24
+ @keyframes mdma-loading-enter {
25
+ from {
26
+ opacity: 0;
27
+ transform: translateY(12px) scale(0.97);
28
+ }
29
+ to {
30
+ opacity: 1;
31
+ transform: translateY(0) scale(1);
32
+ }
33
+ }
34
+
35
+ .mdma-block-loading {
36
+ position: relative;
37
+ overflow: hidden;
38
+ background: #fff;
39
+ border: 1px dashed #c4bfff;
40
+ border-radius: 10px;
41
+ padding: 28px 24px;
42
+ margin-bottom: 20px;
43
+ min-height: 80px;
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ animation: mdma-loading-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
48
+ }
49
+
50
+ .mdma-block-loading-shimmer {
51
+ position: absolute;
52
+ inset: 0;
53
+ background: linear-gradient(
54
+ 90deg,
55
+ transparent 0%,
56
+ rgba(108, 99, 255, 0.05) 30%,
57
+ rgba(108, 99, 255, 0.1) 50%,
58
+ rgba(108, 99, 255, 0.05) 70%,
59
+ transparent 100%
60
+ );
61
+ animation: mdma-shimmer 2s ease-in-out infinite;
62
+ }
63
+
64
+ @keyframes mdma-shimmer {
65
+ 0% {
66
+ transform: translateX(-100%);
67
+ }
68
+ 100% {
69
+ transform: translateX(100%);
70
+ }
71
+ }
72
+
73
+ .mdma-block-loading-content {
74
+ position: relative;
75
+ display: flex;
76
+ align-items: center;
77
+ gap: 10px;
78
+ color: #8b82d4;
79
+ font-size: 13px;
80
+ }
81
+
82
+ .mdma-block-loading-icon {
83
+ width: 18px;
84
+ height: 18px;
85
+ border: 2px solid rgba(108, 99, 255, 0.2);
86
+ border-top-color: #6c63ff;
87
+ border-radius: 50%;
88
+ animation: mdma-spin 0.8s linear infinite;
89
+ }
90
+
91
+ @keyframes mdma-spin {
92
+ to {
93
+ transform: rotate(360deg);
94
+ }
95
+ }
96
+
97
+ .mdma-block-loading-text {
98
+ font-style: italic;
99
+ }
100
+
101
+ /* ===== Rendered component entrance (replacing loading skeleton) ===== */
102
+ @keyframes mdma-component-enter {
103
+ from {
104
+ opacity: 0;
105
+ transform: scale(0.98);
106
+ }
107
+ to {
108
+ opacity: 1;
109
+ transform: scale(1);
110
+ }
111
+ }
112
+
113
+ .mdma-form,
114
+ .mdma-tasklist,
115
+ .mdma-table,
116
+ .mdma-callout,
117
+ .mdma-approval-gate,
118
+ .mdma-webhook,
119
+ .mdma-button,
120
+ .mdma-thinking {
121
+ animation: mdma-component-enter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
122
+ }
123
+
124
+ /* ===== Markdown content entrance ===== */
125
+ .mdma-markdown-content {
126
+ margin-bottom: 12px;
127
+ animation: mdma-fade-in-up 0.25s ease-out both;
128
+ }
129
+
130
+ .mdma-markdown-content h1,
131
+ .mdma-markdown-content h2,
132
+ .mdma-markdown-content h3,
133
+ .mdma-markdown-content h4,
134
+ .mdma-markdown-content h5,
135
+ .mdma-markdown-content h6 {
136
+ margin: 16px 0 8px;
137
+ font-weight: 600;
138
+ line-height: 1.3;
139
+ color: #1a1a2e;
140
+ }
141
+
142
+ .mdma-markdown-content h1 {
143
+ font-size: 1.8em;
144
+ }
145
+ .mdma-markdown-content h2 {
146
+ font-size: 1.4em;
147
+ }
148
+ .mdma-markdown-content h3 {
149
+ font-size: 1.15em;
150
+ }
151
+ .mdma-markdown-content h4 {
152
+ font-size: 1em;
153
+ }
154
+
155
+ .mdma-markdown-content p {
156
+ margin: 0 0 10px;
157
+ line-height: 1.65;
158
+ }
159
+
160
+ .mdma-markdown-content ul,
161
+ .mdma-markdown-content ol {
162
+ margin: 0 0 10px;
163
+ padding-left: 24px;
164
+ }
165
+
166
+ .mdma-markdown-content li {
167
+ margin-bottom: 4px;
168
+ }
169
+
170
+ .mdma-markdown-content li.mdast-task-item {
171
+ list-style: none;
172
+ margin-left: -24px;
173
+ display: flex;
174
+ align-items: baseline;
175
+ gap: 6px;
176
+ }
177
+
178
+ .mdma-markdown-content blockquote {
179
+ margin: 0 0 10px;
180
+ padding: 8px 16px;
181
+ border-left: 3px solid #6c63ff;
182
+ background: #f8f8ff;
183
+ color: #444;
184
+ }
185
+
186
+ .mdma-markdown-content blockquote p:last-child {
187
+ margin-bottom: 0;
188
+ }
189
+
190
+ .mdma-markdown-content pre.mdast-code-block {
191
+ margin: 0 0 10px;
192
+ padding: 12px 16px;
193
+ background: #1e1e2e;
194
+ color: #e0e0e0;
195
+ border-radius: 6px;
196
+ overflow-x: auto;
197
+ font-size: 13px;
198
+ line-height: 1.5;
199
+ }
200
+
201
+ .mdma-markdown-content pre.mdast-code-block code {
202
+ background: none;
203
+ padding: 0;
204
+ font-size: inherit;
205
+ color: inherit;
206
+ }
207
+
208
+ .mdma-markdown-content code.mdast-inline-code {
209
+ background: #f0f0f5;
210
+ padding: 2px 6px;
211
+ border-radius: 3px;
212
+ font-size: 0.9em;
213
+ color: #c0392b;
214
+ }
215
+
216
+ .mdma-markdown-content hr {
217
+ margin: 16px 0;
218
+ border: none;
219
+ border-top: 1px solid #ddd;
220
+ }
221
+
222
+ .mdma-markdown-content a {
223
+ color: #6c63ff;
224
+ text-decoration: none;
225
+ }
226
+
227
+ .mdma-markdown-content a:hover {
228
+ text-decoration: underline;
229
+ }
230
+
231
+ .mdma-markdown-content img {
232
+ max-width: 100%;
233
+ height: auto;
234
+ border-radius: 6px;
235
+ }
236
+
237
+ .mdma-markdown-content table.mdast-table {
238
+ width: 100%;
239
+ border-collapse: collapse;
240
+ margin: 0 0 10px;
241
+ font-size: 14px;
242
+ }
243
+
244
+ .mdma-markdown-content table.mdast-table th,
245
+ .mdma-markdown-content table.mdast-table td {
246
+ padding: 8px 12px;
247
+ border: 1px solid #e0e0e0;
248
+ text-align: left;
249
+ }
250
+
251
+ .mdma-markdown-content table.mdast-table th {
252
+ background: #f5f6fa;
253
+ font-weight: 600;
254
+ }
255
+
256
+ .mdma-markdown-content table.mdast-table tbody tr:hover {
257
+ background: #f9f9fc;
258
+ }
259
+
260
+ .mdma-markdown-content strong {
261
+ font-weight: 600;
262
+ }
263
+
264
+ .mdma-markdown-content em {
265
+ font-style: italic;
266
+ }
267
+
268
+ .mdma-markdown-content del {
269
+ text-decoration: line-through;
270
+ color: #888;
271
+ }
272
+
273
+ /* ===== Form ===== */
274
+ .mdma-form {
275
+ background: #fff;
276
+ border: 1px solid #e0e0e0;
277
+ border-radius: 10px;
278
+ padding: 24px;
279
+ margin-bottom: 20px;
280
+ }
281
+
282
+ .mdma-form-label {
283
+ font-size: 18px;
284
+ font-weight: 600;
285
+ margin-bottom: 16px;
286
+ color: #1a1a2e;
287
+ }
288
+
289
+ .mdma-form-field {
290
+ margin-bottom: 16px;
291
+ }
292
+
293
+ .mdma-form-field label {
294
+ display: block;
295
+ font-size: 13px;
296
+ font-weight: 600;
297
+ color: #444;
298
+ margin-bottom: 4px;
299
+ }
300
+
301
+ .mdma-form-field input[type="text"],
302
+ .mdma-form-field input[type="email"],
303
+ .mdma-form-field input[type="number"],
304
+ .mdma-form-field input[type="datetime"],
305
+ .mdma-form-field input[type="datetime-local"],
306
+ .mdma-form-field select,
307
+ .mdma-form-field textarea {
308
+ width: 100%;
309
+ padding: 8px 12px;
310
+ font-size: 14px;
311
+ border: 1px solid #d1d5db;
312
+ border-radius: 6px;
313
+ background: #fafafa;
314
+ color: #1a1a2e;
315
+ transition: border-color 0.15s, box-shadow 0.15s;
316
+ outline: none;
317
+ }
318
+
319
+ .mdma-form-field input:focus,
320
+ .mdma-form-field select:focus,
321
+ .mdma-form-field textarea:focus {
322
+ border-color: #6c5ce7;
323
+ box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
324
+ }
325
+
326
+ .mdma-form-field textarea {
327
+ min-height: 80px;
328
+ resize: vertical;
329
+ }
330
+
331
+ .mdma-form-field input[type="checkbox"] {
332
+ width: auto;
333
+ margin-right: 8px;
334
+ accent-color: #6c5ce7;
335
+ }
336
+
337
+ .mdma-form-submit {
338
+ margin-top: 8px;
339
+ padding: 8px 20px;
340
+ font-size: 14px;
341
+ font-weight: 600;
342
+ color: #fff;
343
+ background: #6c5ce7;
344
+ border: none;
345
+ border-radius: 6px;
346
+ cursor: pointer;
347
+ transition: background 0.15s;
348
+ }
349
+
350
+ .mdma-form-submit:hover {
351
+ background: #5a4bd1;
352
+ }
353
+
354
+ /* ===== Button ===== */
355
+ .mdma-button {
356
+ display: inline-block;
357
+ padding: 10px 24px;
358
+ font-size: 14px;
359
+ font-weight: 600;
360
+ border: none;
361
+ border-radius: 6px;
362
+ cursor: pointer;
363
+ transition: background 0.15s, transform 0.1s;
364
+ margin-bottom: 20px;
365
+ }
366
+
367
+ .mdma-button:active {
368
+ transform: scale(0.98);
369
+ }
370
+
371
+ .mdma-button--primary {
372
+ background: #6c5ce7;
373
+ color: #fff;
374
+ }
375
+
376
+ .mdma-button--primary:hover {
377
+ background: #5a4bd1;
378
+ }
379
+
380
+ .mdma-button--secondary {
381
+ background: #dfe6e9;
382
+ color: #2d3436;
383
+ }
384
+
385
+ .mdma-button--secondary:hover {
386
+ background: #c8d6db;
387
+ }
388
+
389
+ .mdma-button--danger {
390
+ background: #e74c3c;
391
+ color: #fff;
392
+ }
393
+
394
+ .mdma-button--danger:hover {
395
+ background: #c0392b;
396
+ }
397
+
398
+ /* ===== Tasklist ===== */
399
+ .mdma-tasklist {
400
+ background: #fff;
401
+ border: 1px solid #e0e0e0;
402
+ border-radius: 10px;
403
+ padding: 24px;
404
+ margin-bottom: 20px;
405
+ }
406
+
407
+ .mdma-tasklist-label {
408
+ font-size: 18px;
409
+ font-weight: 600;
410
+ margin-bottom: 12px;
411
+ color: #1a1a2e;
412
+ }
413
+
414
+ .mdma-tasklist-items {
415
+ list-style: none;
416
+ }
417
+
418
+ .mdma-tasklist-item {
419
+ padding: 8px 0;
420
+ border-bottom: 1px solid #f0f0f0;
421
+ }
422
+
423
+ .mdma-tasklist-item:last-child {
424
+ border-bottom: none;
425
+ }
426
+
427
+ .mdma-tasklist-item label {
428
+ display: flex;
429
+ align-items: center;
430
+ gap: 8px;
431
+ cursor: pointer;
432
+ font-size: 14px;
433
+ color: #333;
434
+ }
435
+
436
+ .mdma-tasklist-item input[type="checkbox"] {
437
+ accent-color: #6c5ce7;
438
+ width: 16px;
439
+ height: 16px;
440
+ }
441
+
442
+ .mdma-tasklist-item input[type="checkbox"]:checked + span {
443
+ text-decoration: line-through;
444
+ color: #999;
445
+ }
446
+
447
+ /* ===== Table ===== */
448
+ .mdma-table {
449
+ background: #fff;
450
+ border: 1px solid #e0e0e0;
451
+ border-radius: 10px;
452
+ padding: 24px;
453
+ margin-bottom: 20px;
454
+ overflow-x: auto;
455
+ }
456
+
457
+ .mdma-table-label {
458
+ font-size: 18px;
459
+ font-weight: 600;
460
+ margin-bottom: 12px;
461
+ color: #1a1a2e;
462
+ }
463
+
464
+ .mdma-table table {
465
+ width: 100%;
466
+ border-collapse: collapse;
467
+ }
468
+
469
+ .mdma-table th {
470
+ text-align: left;
471
+ padding: 10px 12px;
472
+ font-size: 12px;
473
+ font-weight: 600;
474
+ text-transform: uppercase;
475
+ letter-spacing: 0.5px;
476
+ color: #666;
477
+ background: #f8f9fa;
478
+ border-bottom: 2px solid #e0e0e0;
479
+ }
480
+
481
+ .mdma-table td {
482
+ padding: 10px 12px;
483
+ font-size: 14px;
484
+ border-bottom: 1px solid #f0f0f0;
485
+ color: #333;
486
+ }
487
+
488
+ .mdma-table tr:hover td {
489
+ background: #f8f9fa;
490
+ }
491
+
492
+ .mdma-table-empty {
493
+ text-align: center;
494
+ padding: 20px;
495
+ color: #999;
496
+ font-style: italic;
497
+ }
498
+
499
+ /* ===== Callout ===== */
500
+ .mdma-callout {
501
+ border-radius: 10px;
502
+ padding: 16px 20px;
503
+ margin-bottom: 20px;
504
+ position: relative;
505
+ border-left: 4px solid;
506
+ }
507
+
508
+ .mdma-callout--info {
509
+ background: #ebf5fb;
510
+ border-left-color: #3498db;
511
+ color: #1a5276;
512
+ }
513
+
514
+ .mdma-callout--warning {
515
+ background: #fef9e7;
516
+ border-left-color: #f39c12;
517
+ color: #7d6608;
518
+ }
519
+
520
+ .mdma-callout--error {
521
+ background: #fdedec;
522
+ border-left-color: #e74c3c;
523
+ color: #78281f;
524
+ }
525
+
526
+ .mdma-callout--success {
527
+ background: #eafaf1;
528
+ border-left-color: #27ae60;
529
+ color: #1e8449;
530
+ }
531
+
532
+ .mdma-callout-title {
533
+ display: block;
534
+ font-size: 14px;
535
+ font-weight: 700;
536
+ margin-bottom: 4px;
537
+ }
538
+
539
+ .mdma-callout-content {
540
+ font-size: 14px;
541
+ line-height: 1.5;
542
+ }
543
+
544
+ .mdma-callout-dismiss {
545
+ position: absolute;
546
+ top: 8px;
547
+ right: 12px;
548
+ background: none;
549
+ border: none;
550
+ font-size: 18px;
551
+ cursor: pointer;
552
+ color: inherit;
553
+ opacity: 0.6;
554
+ }
555
+
556
+ .mdma-callout-dismiss:hover {
557
+ opacity: 1;
558
+ }
559
+
560
+ /* ===== Approval Gate ===== */
561
+ .mdma-approval-gate {
562
+ background: #fff;
563
+ border: 2px solid #e0e0e0;
564
+ border-radius: 10px;
565
+ padding: 24px;
566
+ margin-bottom: 20px;
567
+ }
568
+
569
+ .mdma-approval-gate--pending {
570
+ border-color: #f39c12;
571
+ }
572
+
573
+ .mdma-approval-gate--approved {
574
+ border-color: #27ae60;
575
+ background: #f0faf4;
576
+ }
577
+
578
+ .mdma-approval-gate--denied {
579
+ border-color: #e74c3c;
580
+ background: #fdf2f2;
581
+ }
582
+
583
+ .mdma-approval-gate-title {
584
+ font-size: 16px;
585
+ font-weight: 600;
586
+ margin-bottom: 8px;
587
+ color: #1a1a2e;
588
+ }
589
+
590
+ .mdma-approval-gate-description {
591
+ font-size: 14px;
592
+ color: #555;
593
+ margin-bottom: 12px;
594
+ }
595
+
596
+ .mdma-approval-gate-status {
597
+ font-size: 13px;
598
+ color: #666;
599
+ margin-bottom: 16px;
600
+ }
601
+
602
+ .mdma-approval-gate-status strong {
603
+ text-transform: uppercase;
604
+ letter-spacing: 0.5px;
605
+ }
606
+
607
+ .mdma-approval-gate--pending .mdma-approval-gate-status strong {
608
+ color: #f39c12;
609
+ }
610
+ .mdma-approval-gate--approved .mdma-approval-gate-status strong {
611
+ color: #27ae60;
612
+ }
613
+ .mdma-approval-gate--denied .mdma-approval-gate-status strong {
614
+ color: #e74c3c;
615
+ }
616
+
617
+ .mdma-approval-gate-actions {
618
+ display: flex;
619
+ gap: 10px;
620
+ }
621
+
622
+ /* ===== Webhook ===== */
623
+ .mdma-webhook {
624
+ display: flex;
625
+ align-items: center;
626
+ gap: 10px;
627
+ padding: 12px 16px;
628
+ background: #fff;
629
+ border: 1px solid #e0e0e0;
630
+ border-radius: 8px;
631
+ margin-bottom: 20px;
632
+ font-size: 13px;
633
+ }
634
+
635
+ .mdma-webhook-label {
636
+ font-weight: 600;
637
+ color: #333;
638
+ }
639
+
640
+ .mdma-webhook-status {
641
+ padding: 2px 8px;
642
+ border-radius: 4px;
643
+ font-size: 12px;
644
+ font-weight: 500;
645
+ }
646
+
647
+ .mdma-webhook-status--idle {
648
+ background: #f0f0f0;
649
+ color: #666;
650
+ }
651
+ .mdma-webhook-status--executing {
652
+ background: #ffeaa7;
653
+ color: #6b5900;
654
+ }
655
+ .mdma-webhook-status--success {
656
+ background: #55efc4;
657
+ color: #00473e;
658
+ }
659
+ .mdma-webhook-status--error {
660
+ background: #fab1a0;
661
+ color: #6b1900;
662
+ }
663
+
664
+ /* ===== Unknown Component ===== */
665
+ .mdma-unknown-component {
666
+ padding: 12px 16px;
667
+ background: #fff3cd;
668
+ border: 1px solid #ffc107;
669
+ border-radius: 8px;
670
+ color: #856404;
671
+ font-size: 13px;
672
+ margin-bottom: 20px;
673
+ }
674
+
675
+ .mdma-chart {
676
+ background: rgba(255, 255, 255, 0.02);
677
+ border: 1px solid rgba(108, 92, 231, 0.15);
678
+ border-radius: 14px;
679
+ padding: 18px;
680
+ margin-bottom: 20px;
681
+ animation: mdma-component-enter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
682
+ }
683
+
684
+ .mdma-chart-label {
685
+ font-size: 14px;
686
+ font-weight: 700;
687
+ color: #a29bfe;
688
+ margin-bottom: 12px;
689
+ }
690
+
691
+ .mdma-chart--empty {
692
+ min-height: 80px;
693
+ display: flex;
694
+ flex-direction: column;
695
+ }
696
+
697
+ .mdma-chart-empty {
698
+ flex: 1;
699
+ display: flex;
700
+ align-items: center;
701
+ justify-content: center;
702
+ color: #636e72;
703
+ font-size: 13px;
704
+ font-style: italic;
705
+ }
706
+
707
+ /* recharts overrides for MDMA theme */
708
+ .mdma-chart .recharts-text {
709
+ fill: #636e72;
710
+ }
711
+
712
+ .mdma-chart .recharts-legend-item-text {
713
+ color: #b2bec3 !important;
714
+ font-size: 12px;
715
+ }
716
+
717
+ .mdma-chart .recharts-default-tooltip {
718
+ background: #1a1a2e !important;
719
+ border: 1px solid rgba(162, 155, 254, 0.3) !important;
720
+ border-radius: 8px !important;
721
+ }
722
+ /* ─── Thinking Component (basic) ─────────────────────────────────────────── */
723
+
724
+ .mdma-thinking {
725
+ background: #fff;
726
+ border: 1px solid #e0e0e0;
727
+ border-radius: 10px;
728
+ margin: 16px 0;
729
+ overflow: hidden;
730
+ }
731
+
732
+ .mdma-thinking-summary {
733
+ display: flex;
734
+ align-items: center;
735
+ gap: 8px;
736
+ padding: 12px 16px;
737
+ cursor: pointer;
738
+ font-size: 14px;
739
+ font-weight: 600;
740
+ color: #555;
741
+ user-select: none;
742
+ list-style: none;
743
+ }
744
+
745
+ .mdma-thinking-summary::-webkit-details-marker {
746
+ display: none;
747
+ }
748
+
749
+ .mdma-thinking-summary::after {
750
+ content: "\25B6";
751
+ font-size: 10px;
752
+ margin-left: auto;
753
+ transition: transform 0.2s;
754
+ color: #999;
755
+ }
756
+
757
+ .mdma-thinking[open] .mdma-thinking-summary::after {
758
+ transform: rotate(90deg);
759
+ }
760
+
761
+ .mdma-thinking-indicator {
762
+ display: inline-block;
763
+ width: 8px;
764
+ height: 8px;
765
+ border-radius: 50%;
766
+ background: #6c5ce7;
767
+ animation: mdma-thinking-pulse 1.5s ease-in-out infinite;
768
+ }
769
+
770
+ @keyframes mdma-thinking-pulse {
771
+ 0%,
772
+ 100% {
773
+ opacity: 1;
774
+ transform: scale(1);
775
+ }
776
+ 50% {
777
+ opacity: 0.4;
778
+ transform: scale(0.8);
779
+ }
780
+ }
781
+
782
+ .mdma-thinking-label {
783
+ flex: 1;
784
+ }
785
+
786
+ .mdma-thinking-content {
787
+ padding: 0 16px 16px;
788
+ font-size: 13px;
789
+ line-height: 1.6;
790
+ color: #555;
791
+ white-space: pre-wrap;
792
+ border-top: 1px solid #f0f0f0;
793
+ padding-top: 12px;
794
+ }