@poolse/react-ui 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.
@@ -0,0 +1,841 @@
1
+ /* ============================================================
2
+ @poolse/react-ui — default styles + design tokens
3
+ Realtime chat infrastructure, with a pulse.
4
+
5
+ Customers import this file once:
6
+
7
+ import '@poolse/react-ui/styles.css';
8
+
9
+ All visuals are driven by `--poolse-*` CSS variables so the
10
+ whole UI can be rebranded by redefining variables in your own
11
+ stylesheet — no component ejection required. Dark mode is
12
+ handled automatically via [data-theme="dark"] OR the user's
13
+ `prefers-color-scheme` setting (override per-app).
14
+ ============================================================ */
15
+
16
+ :root {
17
+ /* ── Brand ── */
18
+ --poolse-brand: #ff5436; /* Pulse Coral — brand + primary action */
19
+ --poolse-brand-strong: #d63415; /* AA text/links on light surfaces */
20
+ --poolse-brand-soft: #ffe9e2; /* tinted fills, hover, badges */
21
+ --poolse-on-brand: #fbf7f4; /* foreground on coral fills */
22
+
23
+ /* ── Surfaces & ink (warm neutrals) ── */
24
+ --poolse-paper: #fbf7f4; /* page background */
25
+ --poolse-surface: #ffffff; /* cards / panels */
26
+ --poolse-surface-2: #f4eee9; /* insets / fields */
27
+ --poolse-ink: #1c1a19; /* primary text */
28
+ --poolse-ink-2: #6b6560; /* secondary text */
29
+ --poolse-ink-3: #9a938c; /* tertiary / hints */
30
+ --poolse-border: #eae3dc;
31
+
32
+ /* ── Semantic (do not substitute brand for these) ── */
33
+ --poolse-presence: #16c172; /* online / live — reserved green */
34
+ --poolse-success: #16a34a;
35
+ --poolse-warning: #e08c16;
36
+ --poolse-error: #e5484d; /* a true red, distinct from coral */
37
+ --poolse-info: #3b82f6;
38
+
39
+ /* ── Type ── */
40
+ --poolse-font-display: 'Bricolage Grotesque', Georgia, serif;
41
+ --poolse-font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
42
+ --poolse-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
43
+
44
+ /* ── Radii ── */
45
+ --poolse-radius-sm: 8px;
46
+ --poolse-radius-md: 12px;
47
+ --poolse-radius-lg: 16px;
48
+ --poolse-radius-xl: 24px;
49
+ --poolse-radius-pill: 999px;
50
+
51
+ /* ── Elevation (warm-tinted) ── */
52
+ --poolse-shadow-sm: 0 1px 2px rgba(28, 26, 25, 0.08);
53
+ --poolse-shadow-md: 0 1px 2px rgba(28, 26, 25, 0.06), 0 10px 30px -12px rgba(28, 26, 25, 0.18);
54
+ --poolse-shadow-lg: 0 1px 2px rgba(28, 26, 25, 0.06), 0 24px 60px -18px rgba(28, 26, 25, 0.28);
55
+
56
+ /* ── Chat-specific aliases (kept for back-compat + ergonomics) ── */
57
+ --poolse-color-bg: var(--poolse-paper);
58
+ --poolse-color-surface: var(--poolse-surface);
59
+ --poolse-color-border: var(--poolse-border);
60
+ --poolse-color-text: var(--poolse-ink);
61
+ --poolse-color-muted: var(--poolse-ink-2);
62
+ --poolse-color-primary: var(--poolse-brand);
63
+ --poolse-color-primary-text: var(--poolse-on-brand);
64
+ --poolse-color-self-bubble: var(--poolse-brand);
65
+ --poolse-color-self-bubble-text: var(--poolse-on-brand);
66
+ --poolse-color-other-bubble: var(--poolse-surface);
67
+ --poolse-color-other-bubble-text: var(--poolse-ink);
68
+
69
+ /* Convenience aliases pre-dating the brand kit — kept for
70
+ callers who already inlined these names. */
71
+ --poolse-font-family: var(--poolse-font-body);
72
+ --poolse-radius: var(--poolse-radius-lg);
73
+ --poolse-spacing-xs: 4px;
74
+ --poolse-spacing-sm: 8px;
75
+ --poolse-spacing-md: 12px;
76
+ --poolse-spacing-lg: 16px;
77
+ --poolse-font-size: 15px; /* matches Hanken Grotesk at "body" size */
78
+ --poolse-line-height: 1.5;
79
+ }
80
+
81
+ /* ── Dark theme (opt-in via [data-theme="dark"] on any ancestor) ── */
82
+ [data-theme='dark'] {
83
+ --poolse-brand: #ff6a4d;
84
+ --poolse-brand-strong: #ff8366;
85
+ --poolse-brand-soft: #2c1712;
86
+ --poolse-on-brand: #fbf7f4;
87
+
88
+ --poolse-paper: #0e0d10;
89
+ --poolse-surface: #16141a;
90
+ --poolse-surface-2: #201d25;
91
+ --poolse-ink: #f6f2ee;
92
+ --poolse-ink-2: #a8a29b;
93
+ --poolse-ink-3: #766f68;
94
+ --poolse-border: #2a2630;
95
+
96
+ --poolse-presence: #22d37a;
97
+ --poolse-success: #34d399;
98
+ --poolse-warning: #fbbf24;
99
+ --poolse-error: #f87171;
100
+ --poolse-info: #60a5fa;
101
+
102
+ --poolse-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
103
+ --poolse-shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -14px rgba(0, 0, 0, 0.7);
104
+ --poolse-shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 30px 70px -20px rgba(0, 0, 0, 0.8);
105
+ }
106
+
107
+ /* Follow the OS automatically when nothing explicit is set. Apps
108
+ that want to pin one theme can set [data-theme="light"] to opt out. */
109
+ @media (prefers-color-scheme: dark) {
110
+ :root:not([data-theme='light']) {
111
+ --poolse-brand: #ff6a4d;
112
+ --poolse-brand-strong: #ff8366;
113
+ --poolse-brand-soft: #2c1712;
114
+ --poolse-on-brand: #fbf7f4;
115
+
116
+ --poolse-paper: #0e0d10;
117
+ --poolse-surface: #16141a;
118
+ --poolse-surface-2: #201d25;
119
+ --poolse-ink: #f6f2ee;
120
+ --poolse-ink-2: #a8a29b;
121
+ --poolse-ink-3: #766f68;
122
+ --poolse-border: #2a2630;
123
+
124
+ --poolse-presence: #22d37a;
125
+ --poolse-success: #34d399;
126
+ --poolse-warning: #fbbf24;
127
+ --poolse-error: #f87171;
128
+ --poolse-info: #60a5fa;
129
+ }
130
+ }
131
+
132
+ /* ─────────────────────────────────────────────────────────────
133
+ Icon helpers — stroke-based, inherit `color`
134
+ ───────────────────────────────────────────────────────────── */
135
+
136
+ .poolse-icon {
137
+ display: inline-block;
138
+ width: 1.2em;
139
+ height: 1.2em;
140
+ vertical-align: -0.15em;
141
+ color: inherit;
142
+ flex-shrink: 0;
143
+ }
144
+
145
+ .poolse-icon--muted {
146
+ color: var(--poolse-ink-2);
147
+ }
148
+ .poolse-icon--brand {
149
+ color: var(--poolse-brand);
150
+ }
151
+ .poolse-icon--presence {
152
+ color: var(--poolse-presence);
153
+ }
154
+
155
+ /* ─────────────────────────────────────────────────────────────
156
+ Logo helpers — for CSS-variable–driven recoloring
157
+ ───────────────────────────────────────────────────────────── */
158
+
159
+ .poolse-logo .mk-tile {
160
+ fill: var(--poolse-brand);
161
+ }
162
+ .poolse-logo .mk-pulse {
163
+ stroke: var(--poolse-on-brand);
164
+ }
165
+ .poolse-logo .mk-pulse-dot {
166
+ fill: var(--poolse-on-brand);
167
+ }
168
+ .poolse-logo .wm-ink {
169
+ fill: var(--poolse-ink);
170
+ }
171
+ .poolse-logo .wm-o {
172
+ fill: var(--poolse-brand);
173
+ }
174
+
175
+ .poolse-logo--mono .mk-tile {
176
+ fill: none;
177
+ stroke: currentColor;
178
+ stroke-width: 5;
179
+ }
180
+ .poolse-logo--mono .mk-pulse {
181
+ stroke: currentColor;
182
+ }
183
+ .poolse-logo--mono .mk-pulse-dot {
184
+ fill: currentColor;
185
+ }
186
+ .poolse-logo--mono .wm-ink {
187
+ fill: currentColor;
188
+ }
189
+ .poolse-logo--mono .wm-o {
190
+ fill: currentColor;
191
+ }
192
+
193
+ /* ─────────────────────────────────────────────────────────────
194
+ Avatar — initials gradient w/ optional presence dot
195
+ ───────────────────────────────────────────────────────────── */
196
+
197
+ .poolse-avatar {
198
+ position: relative;
199
+ display: inline-flex;
200
+ align-items: center;
201
+ justify-content: center;
202
+ width: 40px;
203
+ height: 40px;
204
+ border-radius: 50%;
205
+ background: linear-gradient(135deg, var(--poolse-brand), var(--poolse-brand-strong));
206
+ color: var(--poolse-on-brand);
207
+ font-family: var(--poolse-font-display);
208
+ font-weight: 800;
209
+ font-size: 15px;
210
+ letter-spacing: -0.01em;
211
+ flex-shrink: 0;
212
+ overflow: hidden;
213
+ user-select: none;
214
+ }
215
+
216
+ .poolse-avatar--sm {
217
+ width: 28px;
218
+ height: 28px;
219
+ font-size: 12px;
220
+ }
221
+ .poolse-avatar--lg {
222
+ width: 56px;
223
+ height: 56px;
224
+ font-size: 20px;
225
+ }
226
+
227
+ .poolse-avatar img {
228
+ width: 100%;
229
+ height: 100%;
230
+ object-fit: cover;
231
+ }
232
+
233
+ .poolse-avatar__presence {
234
+ position: absolute;
235
+ right: -1px;
236
+ bottom: -1px;
237
+ width: 12px;
238
+ height: 12px;
239
+ border-radius: 50%;
240
+ background: var(--poolse-presence);
241
+ border: 2.5px solid var(--poolse-surface);
242
+ }
243
+
244
+ /* ─────────────────────────────────────────────────────────────
245
+ ConversationView container
246
+ ───────────────────────────────────────────────────────────── */
247
+
248
+ .poolse-conversation {
249
+ display: flex;
250
+ flex-direction: column;
251
+ height: 100%;
252
+ min-height: 0;
253
+ background: var(--poolse-paper);
254
+ color: var(--poolse-ink);
255
+ font-family: var(--poolse-font-body);
256
+ font-size: var(--poolse-font-size);
257
+ line-height: var(--poolse-line-height);
258
+ -webkit-font-smoothing: antialiased;
259
+ }
260
+
261
+ .poolse-conversation__status {
262
+ padding: 8px 16px;
263
+ font-size: 12px;
264
+ font-weight: 600;
265
+ color: var(--poolse-ink-2);
266
+ background: var(--poolse-surface-2);
267
+ border-bottom: 1px solid var(--poolse-border);
268
+ }
269
+
270
+ .poolse-conversation__messages {
271
+ flex: 1 1 auto;
272
+ min-height: 0;
273
+ overflow-y: auto;
274
+ padding: 18px;
275
+ display: flex;
276
+ flex-direction: column;
277
+ gap: 10px;
278
+ }
279
+
280
+ .poolse-conversation__load-more {
281
+ align-self: center;
282
+ margin-bottom: 8px;
283
+ padding: 6px 14px;
284
+ font: 600 12px / 1 var(--poolse-font-body);
285
+ color: var(--poolse-ink-2);
286
+ background: var(--poolse-surface);
287
+ border: 1px solid var(--poolse-border);
288
+ border-radius: var(--poolse-radius-pill);
289
+ cursor: pointer;
290
+ transition:
291
+ border-color 0.15s,
292
+ color 0.15s;
293
+ }
294
+
295
+ .poolse-conversation__load-more:hover {
296
+ border-color: var(--poolse-brand);
297
+ color: var(--poolse-ink);
298
+ }
299
+
300
+ .poolse-conversation__empty {
301
+ margin: auto;
302
+ color: var(--poolse-ink-3);
303
+ font-size: 13px;
304
+ }
305
+
306
+ /* ─────────────────────────────────────────────────────────────
307
+ MessageBubble — asymmetric tail per side
308
+ ───────────────────────────────────────────────────────────── */
309
+
310
+ .poolse-message {
311
+ display: flex;
312
+ flex-direction: column;
313
+ max-width: 78%;
314
+ padding: 10px 13px;
315
+ border-radius: var(--poolse-radius-lg);
316
+ font-size: 14.5px;
317
+ line-height: 1.4;
318
+ word-wrap: break-word;
319
+ overflow-wrap: anywhere;
320
+ }
321
+
322
+ .poolse-message--self {
323
+ align-self: flex-end;
324
+ background: var(--poolse-brand);
325
+ color: var(--poolse-on-brand);
326
+ border-bottom-right-radius: 5px;
327
+ }
328
+
329
+ .poolse-message--other {
330
+ align-self: flex-start;
331
+ background: var(--poolse-surface);
332
+ color: var(--poolse-ink);
333
+ border: 1px solid var(--poolse-border);
334
+ border-bottom-left-radius: 5px;
335
+ }
336
+
337
+ .poolse-message__meta {
338
+ display: flex;
339
+ align-items: center;
340
+ gap: 4px;
341
+ justify-content: flex-end;
342
+ font-size: 10.5px;
343
+ margin-top: 5px;
344
+ opacity: 0.85;
345
+ }
346
+
347
+ .poolse-message--self .poolse-message__meta {
348
+ color: var(--poolse-on-brand);
349
+ }
350
+ .poolse-message--other .poolse-message__meta {
351
+ color: var(--poolse-ink-3);
352
+ }
353
+
354
+ .poolse-message__body--deleted {
355
+ font-style: italic;
356
+ opacity: 0.6;
357
+ }
358
+
359
+ /* ─────────────────────────────────────────────────────────────
360
+ TypingIndicator — three bouncing dots
361
+ ───────────────────────────────────────────────────────────── */
362
+
363
+ .poolse-typing {
364
+ padding: 0 16px 6px;
365
+ min-height: 22px;
366
+ }
367
+
368
+ .poolse-typing__dots {
369
+ display: inline-flex;
370
+ gap: 5px;
371
+ align-items: center;
372
+ padding: 10px 14px;
373
+ background: var(--poolse-surface);
374
+ border: 1px solid var(--poolse-border);
375
+ border-radius: var(--poolse-radius-lg);
376
+ border-bottom-left-radius: 5px;
377
+ }
378
+
379
+ .poolse-typing__dot {
380
+ width: 6px;
381
+ height: 6px;
382
+ border-radius: 50%;
383
+ background: var(--poolse-ink-3);
384
+ animation: poolse-bounce 1.3s infinite;
385
+ }
386
+
387
+ .poolse-typing__dot:nth-child(2) {
388
+ animation-delay: 0.18s;
389
+ }
390
+ .poolse-typing__dot:nth-child(3) {
391
+ animation-delay: 0.36s;
392
+ }
393
+
394
+ @keyframes poolse-bounce {
395
+ 0%,
396
+ 60%,
397
+ 100% {
398
+ transform: translateY(0);
399
+ opacity: 0.4;
400
+ }
401
+ 30% {
402
+ transform: translateY(-5px);
403
+ opacity: 1;
404
+ }
405
+ }
406
+
407
+ .poolse-typing__label {
408
+ margin-left: 8px;
409
+ font-size: 12px;
410
+ color: var(--poolse-ink-2);
411
+ vertical-align: middle;
412
+ }
413
+
414
+ /* ─────────────────────────────────────────────────────────────
415
+ MessageComposer — pill input + circular brand send button
416
+ ───────────────────────────────────────────────────────────── */
417
+
418
+ .poolse-composer {
419
+ display: flex;
420
+ align-items: center;
421
+ gap: 10px;
422
+ padding: 12px 14px;
423
+ background: var(--poolse-surface);
424
+ border-top: 1px solid var(--poolse-border);
425
+ }
426
+
427
+ .poolse-composer__input {
428
+ flex: 1 1 auto;
429
+ padding: 10px 16px;
430
+ background: var(--poolse-surface-2);
431
+ color: var(--poolse-ink);
432
+ border: 1px solid var(--poolse-border);
433
+ border-radius: var(--poolse-radius-pill);
434
+ font: 14.5px / 1.45 var(--poolse-font-body);
435
+ resize: none;
436
+ outline: none;
437
+ transition:
438
+ border-color 0.15s,
439
+ background-color 0.15s;
440
+ max-height: 140px;
441
+ }
442
+
443
+ .poolse-composer__input:focus {
444
+ border-color: var(--poolse-brand);
445
+ background: var(--poolse-surface);
446
+ }
447
+
448
+ .poolse-composer__input::placeholder {
449
+ color: var(--poolse-ink-3);
450
+ }
451
+
452
+ .poolse-composer__send {
453
+ width: 40px;
454
+ height: 40px;
455
+ border-radius: 50%;
456
+ border: none;
457
+ background: var(--poolse-brand);
458
+ color: var(--poolse-on-brand);
459
+ display: inline-flex;
460
+ align-items: center;
461
+ justify-content: center;
462
+ cursor: pointer;
463
+ flex-shrink: 0;
464
+ box-shadow: 0 6px 16px -4px color-mix(in oklab, var(--poolse-brand) 60%, transparent);
465
+ transition:
466
+ filter 0.15s,
467
+ transform 0.05s;
468
+ }
469
+
470
+ .poolse-composer__send:hover:not(:disabled) {
471
+ filter: brightness(1.04);
472
+ }
473
+ .poolse-composer__send:active:not(:disabled) {
474
+ transform: scale(0.97);
475
+ }
476
+
477
+ .poolse-composer__send:disabled {
478
+ opacity: 0.45;
479
+ cursor: not-allowed;
480
+ box-shadow: none;
481
+ }
482
+
483
+ .poolse-composer__send .poolse-icon {
484
+ width: 18px;
485
+ height: 18px;
486
+ transform: translateX(-1px); /* visual-center the send glyph */
487
+ }
488
+
489
+ /* ─────────────────────────────────────────────────────────────
490
+ List primitive — used by ConversationList + MemberList
491
+ ───────────────────────────────────────────────────────────── */
492
+
493
+ .poolse-list {
494
+ margin: 0;
495
+ padding: 6px;
496
+ list-style: none;
497
+ display: flex;
498
+ flex-direction: column;
499
+ gap: 2px;
500
+ background: var(--poolse-surface);
501
+ color: var(--poolse-ink);
502
+ font-family: var(--poolse-font-body);
503
+ font-size: 14px;
504
+ overflow-y: auto;
505
+ height: 100%;
506
+ }
507
+
508
+ .poolse-list--placeholder {
509
+ display: flex;
510
+ align-items: center;
511
+ justify-content: center;
512
+ padding: 24px;
513
+ color: var(--poolse-ink-3);
514
+ font-size: 13px;
515
+ }
516
+
517
+ .poolse-list--error {
518
+ color: var(--poolse-error);
519
+ }
520
+
521
+ .poolse-list__item {
522
+ display: flex;
523
+ align-items: center;
524
+ gap: 12px;
525
+ padding: 10px 12px;
526
+ border-radius: var(--poolse-radius-md);
527
+ cursor: pointer;
528
+ transition: background-color 0.12s;
529
+ outline: none;
530
+ }
531
+
532
+ .poolse-list__item:hover {
533
+ background: var(--poolse-surface-2);
534
+ }
535
+
536
+ .poolse-list__item:focus-visible {
537
+ background: var(--poolse-surface-2);
538
+ box-shadow: 0 0 0 2px var(--poolse-brand);
539
+ }
540
+
541
+ .poolse-list__item--selected {
542
+ background: var(--poolse-brand-soft);
543
+ color: var(--poolse-ink);
544
+ }
545
+
546
+ .poolse-list__item--selected:hover {
547
+ background: var(--poolse-brand-soft);
548
+ }
549
+
550
+ .poolse-list__body {
551
+ flex: 1 1 auto;
552
+ min-width: 0;
553
+ }
554
+
555
+ .poolse-list__head {
556
+ display: flex;
557
+ align-items: baseline;
558
+ justify-content: space-between;
559
+ gap: 8px;
560
+ }
561
+
562
+ .poolse-list__title {
563
+ font-weight: 600;
564
+ font-size: 14px;
565
+ overflow: hidden;
566
+ text-overflow: ellipsis;
567
+ white-space: nowrap;
568
+ }
569
+
570
+ .poolse-list__time {
571
+ font-size: 11.5px;
572
+ color: var(--poolse-ink-3);
573
+ font-variant-numeric: tabular-nums;
574
+ flex-shrink: 0;
575
+ }
576
+
577
+ .poolse-list__preview {
578
+ font-size: 12.5px;
579
+ color: var(--poolse-ink-2);
580
+ overflow: hidden;
581
+ text-overflow: ellipsis;
582
+ white-space: nowrap;
583
+ }
584
+
585
+ /* ─────────────────────────────────────────────────────────────
586
+ Member roster
587
+ ───────────────────────────────────────────────────────────── */
588
+
589
+ .poolse-member-row {
590
+ display: flex;
591
+ align-items: center;
592
+ gap: 12px;
593
+ width: 100%;
594
+ }
595
+
596
+ .poolse-member-row__body {
597
+ flex: 1 1 auto;
598
+ min-width: 0;
599
+ }
600
+
601
+ .poolse-member-row__name {
602
+ font-weight: 600;
603
+ font-size: 14px;
604
+ color: var(--poolse-ink);
605
+ overflow: hidden;
606
+ text-overflow: ellipsis;
607
+ white-space: nowrap;
608
+ }
609
+
610
+ .poolse-member-row__sub {
611
+ font-size: 12px;
612
+ color: var(--poolse-ink-3);
613
+ font-family: var(--poolse-font-mono);
614
+ }
615
+
616
+ .poolse-badge {
617
+ display: inline-flex;
618
+ align-items: center;
619
+ padding: 2px 8px;
620
+ font-family: var(--poolse-font-mono);
621
+ font-size: 10.5px;
622
+ letter-spacing: 0.04em;
623
+ text-transform: uppercase;
624
+ border-radius: var(--poolse-radius-pill);
625
+ background: var(--poolse-surface-2);
626
+ color: var(--poolse-ink-2);
627
+ border: 1px solid var(--poolse-border);
628
+ }
629
+
630
+ .poolse-badge--owner {
631
+ background: var(--poolse-brand-soft);
632
+ color: var(--poolse-brand-strong);
633
+ border-color: transparent;
634
+ }
635
+
636
+ .poolse-badge--admin {
637
+ color: var(--poolse-info);
638
+ border-color: transparent;
639
+ background: color-mix(in oklab, var(--poolse-info) 12%, var(--poolse-surface));
640
+ }
641
+
642
+ .poolse-icon-btn {
643
+ display: inline-flex;
644
+ align-items: center;
645
+ justify-content: center;
646
+ width: 28px;
647
+ height: 28px;
648
+ background: transparent;
649
+ border: none;
650
+ border-radius: var(--poolse-radius-sm);
651
+ color: var(--poolse-ink-2);
652
+ cursor: pointer;
653
+ transition:
654
+ background-color 0.12s,
655
+ color 0.12s;
656
+ }
657
+
658
+ .poolse-icon-btn:hover {
659
+ background: var(--poolse-surface-2);
660
+ color: var(--poolse-ink);
661
+ }
662
+
663
+ .poolse-icon-btn--danger:hover {
664
+ color: var(--poolse-error);
665
+ }
666
+
667
+ /* ─────────────────────────────────────────────────────────────
668
+ Attachment preview
669
+ ───────────────────────────────────────────────────────────── */
670
+
671
+ .poolse-attachment {
672
+ display: inline-flex;
673
+ flex-direction: column;
674
+ gap: 6px;
675
+ max-width: 320px;
676
+ }
677
+
678
+ .poolse-attachment__image {
679
+ display: block;
680
+ max-width: 100%;
681
+ max-height: 260px;
682
+ border-radius: var(--poolse-radius-md);
683
+ cursor: zoom-in;
684
+ background: var(--poolse-surface-2);
685
+ }
686
+
687
+ .poolse-attachment__file {
688
+ display: flex;
689
+ align-items: center;
690
+ gap: 10px;
691
+ padding: 10px 12px;
692
+ background: var(--poolse-surface);
693
+ border: 1px solid var(--poolse-border);
694
+ border-radius: var(--poolse-radius-md);
695
+ color: var(--poolse-ink);
696
+ text-decoration: none;
697
+ font-size: 13.5px;
698
+ min-width: 200px;
699
+ }
700
+
701
+ .poolse-attachment__file:hover {
702
+ border-color: var(--poolse-brand);
703
+ }
704
+
705
+ .poolse-attachment__file-icon {
706
+ flex-shrink: 0;
707
+ color: var(--poolse-ink-2);
708
+ }
709
+
710
+ .poolse-attachment__file-body {
711
+ flex: 1 1 auto;
712
+ min-width: 0;
713
+ }
714
+
715
+ .poolse-attachment__file-name {
716
+ font-weight: 600;
717
+ overflow: hidden;
718
+ text-overflow: ellipsis;
719
+ white-space: nowrap;
720
+ }
721
+
722
+ .poolse-attachment__file-meta {
723
+ font-size: 11.5px;
724
+ color: var(--poolse-ink-3);
725
+ font-family: var(--poolse-font-mono);
726
+ }
727
+
728
+ /* ─────────────────────────────────────────────────────────────
729
+ Reactions
730
+ ───────────────────────────────────────────────────────────── */
731
+
732
+ .poolse-reactions {
733
+ display: inline-flex;
734
+ flex-wrap: wrap;
735
+ gap: 4px;
736
+ margin-top: 6px;
737
+ }
738
+
739
+ .poolse-reaction-pill {
740
+ display: inline-flex;
741
+ align-items: center;
742
+ gap: 4px;
743
+ padding: 2px 8px;
744
+ background: var(--poolse-surface);
745
+ border: 1px solid var(--poolse-border);
746
+ border-radius: var(--poolse-radius-pill);
747
+ font-size: 12.5px;
748
+ font-family: var(--poolse-font-body);
749
+ color: var(--poolse-ink);
750
+ cursor: pointer;
751
+ transition:
752
+ border-color 0.12s,
753
+ background-color 0.12s;
754
+ }
755
+
756
+ .poolse-reaction-pill:hover {
757
+ border-color: var(--poolse-brand);
758
+ }
759
+
760
+ .poolse-reaction-pill--mine {
761
+ background: var(--poolse-brand-soft);
762
+ border-color: transparent;
763
+ color: var(--poolse-brand-strong);
764
+ }
765
+
766
+ .poolse-reaction-pill__count {
767
+ font-variant-numeric: tabular-nums;
768
+ font-weight: 600;
769
+ font-size: 11.5px;
770
+ }
771
+
772
+ .poolse-reaction-picker {
773
+ display: inline-flex;
774
+ gap: 4px;
775
+ padding: 6px;
776
+ background: var(--poolse-surface);
777
+ border: 1px solid var(--poolse-border);
778
+ border-radius: var(--poolse-radius-lg);
779
+ box-shadow: var(--poolse-shadow-md);
780
+ }
781
+
782
+ .poolse-reaction-picker__btn {
783
+ width: 32px;
784
+ height: 32px;
785
+ display: inline-flex;
786
+ align-items: center;
787
+ justify-content: center;
788
+ font-size: 18px;
789
+ border: none;
790
+ background: transparent;
791
+ border-radius: var(--poolse-radius-sm);
792
+ cursor: pointer;
793
+ transition: background-color 0.1s;
794
+ }
795
+
796
+ .poolse-reaction-picker__btn:hover {
797
+ background: var(--poolse-surface-2);
798
+ }
799
+
800
+ /* ─────────────────────────────────────────────────────────────
801
+ Mention dropdown
802
+ ───────────────────────────────────────────────────────────── */
803
+
804
+ .poolse-mention-menu {
805
+ position: absolute;
806
+ bottom: 100%;
807
+ left: 0;
808
+ margin-bottom: 8px;
809
+ min-width: 220px;
810
+ max-height: 200px;
811
+ overflow-y: auto;
812
+ background: var(--poolse-surface);
813
+ border: 1px solid var(--poolse-border);
814
+ border-radius: var(--poolse-radius-md);
815
+ box-shadow: var(--poolse-shadow-md);
816
+ padding: 4px;
817
+ z-index: 10;
818
+ }
819
+
820
+ .poolse-mention-menu__item {
821
+ display: flex;
822
+ align-items: center;
823
+ gap: 8px;
824
+ padding: 6px 10px;
825
+ border-radius: var(--poolse-radius-sm);
826
+ cursor: pointer;
827
+ font-size: 14px;
828
+ }
829
+
830
+ .poolse-mention-menu__item--active {
831
+ background: var(--poolse-brand-soft);
832
+ color: var(--poolse-brand-strong);
833
+ }
834
+
835
+ .poolse-mention-menu__item:hover {
836
+ background: var(--poolse-surface-2);
837
+ }
838
+
839
+ .poolse-mention-menu__item--active:hover {
840
+ background: var(--poolse-brand-soft);
841
+ }