@soron-ai/next 0.0.0-stage → 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,2210 @@
1
+ /* `@soron-ai/next/styles.css`: the widget's styles, ported from ohmydata's widget skin (its
2
+ `soron.css`) and made standalone: every class `soron-`, every colour a variable of the widget's
3
+ root (`.soron-root`, light by default, `data-theme='dark'`), nothing outside the widget's own
4
+ elements. A back-office tunes the look by setting these variables on `.soron-root`.
5
+ Lights tell a state, never decorate: the Aurora = Soron works, the gold flame = Soron waits for
6
+ the staff. At rest only the effort glows: its edge on the composer, gold for High, a teal-violet
7
+ saber for Medium, and the orange saber of the day's spend inside the effort box. */
8
+
9
+ .soron-root {
10
+ --soron-panel-bg: #f3f6f9;
11
+ --soron-surface: #fff;
12
+ /* Glass, tints (hover, bubbles, rules) and shadows, as `r g b` for their alpha. */
13
+ --soron-glass-rgb: 255 255 255;
14
+ --soron-tint-rgb: 15 23 42;
15
+ --soron-shadow-rgb: 15 23 42;
16
+ /* Text, from the headings to the greys that hold 4.5:1 on the panel. */
17
+ --soron-strong: #0f172a;
18
+ --soron-body: #1e293b;
19
+ --soron-text: #334155;
20
+ --soron-subtle: #45536a;
21
+ --soron-muted: #5a6a7e;
22
+ --soron-line: #e2e8f0;
23
+ --soron-line-strong: #cbd5e1;
24
+ --soron-accent: #0891b2;
25
+ --soron-on-accent: #fff;
26
+ --soron-link: #0e7490;
27
+ --soron-focus: rgb(28 127 166);
28
+ --soron-warn: #f97316;
29
+ --soron-warn-text: #c2410c;
30
+ --soron-warn-bg: #fff7ed;
31
+ --soron-ok: #059669;
32
+ --soron-danger: #dc2626;
33
+ --soron-danger-text: #b91c1c;
34
+ --soron-danger-bg: #fef2f2;
35
+ --soron-danger-line: #fecaca;
36
+ /* GitHub's alerts: the colour says the weight, the title says it in words. */
37
+ --soron-note: #2563eb;
38
+ --soron-note-bg: #eff6ff;
39
+ --soron-tip: #059669;
40
+ --soron-tip-bg: #ecfdf5;
41
+ --soron-important: #7c3aed;
42
+ --soron-important-bg: #f5f3ff;
43
+ --soron-warning: #b45309;
44
+ --soron-warning-bg: #fffbeb;
45
+ --soron-caution: #dc2626;
46
+ --soron-caution-bg: #fef2f2;
47
+ /* The Aurora's three colours. */
48
+ --soron-aurora-1: 8 186 186;
49
+ --soron-aurora-2: 54 159 221;
50
+ --soron-aurora-3: 132 99 244;
51
+ --soron-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
52
+ --soron-ease: cubic-bezier(0.22, 1, 0.36, 1);
53
+ --soron-flame: conic-gradient(
54
+ from 0deg,
55
+ transparent 0 52%,
56
+ #c2410c 64%,
57
+ #f97316 72%,
58
+ #f5b544 79%,
59
+ #fde7b0 83%,
60
+ #f5b544 87%,
61
+ #f97316 92%,
62
+ transparent 98%
63
+ );
64
+ /* No box of its own: the eye and the panel place themselves, the page's layout is untouched. */
65
+ display: contents;
66
+ color-scheme: light;
67
+ }
68
+ .soron-root[data-theme='dark'] {
69
+ --soron-panel-bg: #0b1220;
70
+ --soron-surface: #182133;
71
+ --soron-glass-rgb: 30 41 59;
72
+ --soron-tint-rgb: 226 232 240;
73
+ --soron-shadow-rgb: 0 0 0;
74
+ --soron-strong: #f1f5f9;
75
+ --soron-body: #e2e8f0;
76
+ --soron-text: #cbd5e1;
77
+ --soron-subtle: #a7b4c6;
78
+ --soron-muted: #8d9bb0;
79
+ --soron-line: #1e293b;
80
+ --soron-line-strong: #334155;
81
+ --soron-accent: #22b8cf;
82
+ --soron-on-accent: #04141a;
83
+ --soron-link: #67e8f9;
84
+ --soron-focus: #38bdf8;
85
+ --soron-warn: #fb923c;
86
+ --soron-warn-text: #fdba74;
87
+ --soron-warn-bg: rgb(249 115 22 / 0.14);
88
+ --soron-ok: #34d399;
89
+ --soron-danger: #f87171;
90
+ --soron-danger-text: #fca5a5;
91
+ --soron-danger-bg: rgb(239 68 68 / 0.14);
92
+ --soron-danger-line: rgb(239 68 68 / 0.35);
93
+ --soron-note: #60a5fa;
94
+ --soron-note-bg: rgb(59 130 246 / 0.14);
95
+ --soron-tip: #34d399;
96
+ --soron-tip-bg: rgb(16 185 129 / 0.14);
97
+ --soron-important: #a78bfa;
98
+ --soron-important-bg: rgb(139 92 246 / 0.16);
99
+ --soron-warning: #fbbf24;
100
+ --soron-warning-bg: rgb(245 158 11 / 0.14);
101
+ --soron-caution: #f87171;
102
+ --soron-caution-bg: rgb(239 68 68 / 0.14);
103
+ color-scheme: dark;
104
+ }
105
+
106
+ /* The widget's own reset, as weak as one class: the page's element rules never reach it, its own
107
+ classes below always win. */
108
+ .soron-root :where(*, *::before, *::after) {
109
+ box-sizing: border-box;
110
+ }
111
+ .soron-root :where(button) {
112
+ margin: 0;
113
+ padding: 0;
114
+ border: 0;
115
+ background: none;
116
+ color: inherit;
117
+ font: inherit;
118
+ letter-spacing: inherit;
119
+ text-align: inherit;
120
+ text-transform: none;
121
+ cursor: pointer;
122
+ -webkit-tap-highlight-color: transparent;
123
+ }
124
+ .soron-root :where(button:disabled) {
125
+ cursor: default;
126
+ }
127
+ .soron-root :where(input, textarea) {
128
+ margin: 0;
129
+ font: inherit;
130
+ color: inherit;
131
+ letter-spacing: inherit;
132
+ }
133
+ .soron-root :where(h1, h2, h3, h4, h5, h6, p, ol, ul, blockquote, pre, figure) {
134
+ margin: 0;
135
+ }
136
+ .soron-root :where(h1, h2, h3, h4, h5, h6) {
137
+ font-size: inherit;
138
+ font-weight: inherit;
139
+ }
140
+ .soron-root :where(ol, ul) {
141
+ padding: 0;
142
+ }
143
+ .soron-root :where(a) {
144
+ color: inherit;
145
+ }
146
+ .soron-sr-only {
147
+ position: absolute;
148
+ width: 1px;
149
+ height: 1px;
150
+ padding: 0;
151
+ margin: -1px;
152
+ overflow: hidden;
153
+ clip: rect(0, 0, 0, 0);
154
+ white-space: nowrap;
155
+ border: 0;
156
+ }
157
+
158
+ @keyframes soron-fade {
159
+ from {
160
+ opacity: 0;
161
+ }
162
+ to {
163
+ opacity: 1;
164
+ }
165
+ }
166
+ @keyframes soron-rot {
167
+ to {
168
+ transform: rotate(360deg);
169
+ }
170
+ }
171
+ @keyframes soron-shine {
172
+ 0% {
173
+ background-position: 0% 0%;
174
+ }
175
+ 50% {
176
+ background-position: 100% 100%;
177
+ }
178
+ 100% {
179
+ background-position: 0% 0%;
180
+ }
181
+ }
182
+ @keyframes soron-pop {
183
+ from {
184
+ opacity: 0;
185
+ transform: scale(0.97) translateY(-4px);
186
+ }
187
+ to {
188
+ opacity: 1;
189
+ transform: none;
190
+ }
191
+ }
192
+ @keyframes soron-pop-up {
193
+ from {
194
+ opacity: 0;
195
+ transform: scale(0.97) translateY(4px);
196
+ }
197
+ to {
198
+ opacity: 1;
199
+ transform: none;
200
+ }
201
+ }
202
+
203
+ /* ── Liquid glass ── */
204
+ .soron-glass {
205
+ position: relative;
206
+ isolation: isolate;
207
+ border: 1px solid transparent;
208
+ background:
209
+ linear-gradient(180deg, rgb(var(--soron-glass-rgb) / 0.62), rgb(var(--soron-glass-rgb) / 0.36)) padding-box,
210
+ linear-gradient(
211
+ 140deg,
212
+ rgb(var(--soron-glass-rgb) / 0.98),
213
+ rgb(var(--soron-glass-rgb) / 0.3) 40%,
214
+ rgb(var(--soron-tint-rgb) / 0.12)
215
+ )
216
+ border-box;
217
+ -webkit-backdrop-filter: blur(20px) saturate(190%);
218
+ backdrop-filter: blur(20px) saturate(190%);
219
+ box-shadow:
220
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
221
+ inset 0 0 14px rgb(var(--soron-glass-rgb) / 0.45),
222
+ inset 0 -1px 0 rgb(var(--soron-tint-rgb) / 0.05),
223
+ 0 1px 2px rgb(var(--soron-shadow-rgb) / 0.08),
224
+ 0 14px 34px -14px rgb(var(--soron-shadow-rgb) / 0.32);
225
+ }
226
+ .soron-glass::before {
227
+ content: '';
228
+ position: absolute;
229
+ inset: 0;
230
+ z-index: -1;
231
+ border-radius: inherit;
232
+ pointer-events: none;
233
+ background:
234
+ radial-gradient(120% 90% at 18% 0%, rgb(var(--soron-glass-rgb) / 0.75), transparent 55%),
235
+ radial-gradient(80% 60% at 100% 100%, rgb(var(--soron-aurora-1) / 0.08), transparent 70%);
236
+ }
237
+ /* Aurora: on the composer's edge while a passage runs, nowhere else. */
238
+ .soron-shine {
239
+ position: absolute;
240
+ inset: -1px;
241
+ z-index: 2;
242
+ pointer-events: none;
243
+ border-radius: inherit;
244
+ padding: 2px;
245
+ opacity: 0;
246
+ transition: opacity 400ms var(--soron-ease);
247
+ background-image: radial-gradient(
248
+ transparent,
249
+ transparent,
250
+ rgb(var(--soron-aurora-1)),
251
+ rgb(var(--soron-aurora-2)),
252
+ rgb(var(--soron-aurora-3)),
253
+ transparent,
254
+ transparent
255
+ );
256
+ background-size: 300% 300%;
257
+ background-position: 50% 50%;
258
+ -webkit-mask:
259
+ linear-gradient(#000 0 0) content-box,
260
+ linear-gradient(#000 0 0);
261
+ -webkit-mask-composite: xor;
262
+ mask:
263
+ linear-gradient(#000 0 0) content-box,
264
+ linear-gradient(#000 0 0);
265
+ mask-composite: exclude;
266
+ }
267
+ .soron-root [data-phase='running'] .soron-shine {
268
+ opacity: 1;
269
+ }
270
+ .soron-flame {
271
+ position: absolute;
272
+ left: 50%;
273
+ top: 50%;
274
+ width: 260%;
275
+ aspect-ratio: 1;
276
+ margin: -130% 0 0 -130%;
277
+ background: var(--soron-flame);
278
+ }
279
+ .soron-flame.soron-b {
280
+ opacity: 0.7;
281
+ }
282
+ @media (prefers-reduced-motion: no-preference) {
283
+ .soron-root [data-phase='running'] .soron-shine {
284
+ animation: soron-shine 4s linear infinite;
285
+ }
286
+ .soron-flame {
287
+ animation: soron-rot 2.2s linear infinite;
288
+ }
289
+ .soron-flame.soron-b {
290
+ animation-direction: reverse;
291
+ animation-duration: 3.1s;
292
+ }
293
+ }
294
+ /* Reduced motion: a still edge in the logo's colours. */
295
+ @media (prefers-reduced-motion: reduce) {
296
+ .soron-root [data-phase='running'] .soron-shine {
297
+ background-size: 100% 100%;
298
+ background-image: linear-gradient(
299
+ 135deg,
300
+ rgb(var(--soron-aurora-1) / 0.6),
301
+ rgb(var(--soron-aurora-2) / 0.6),
302
+ rgb(var(--soron-aurora-3) / 0.6)
303
+ );
304
+ }
305
+ }
306
+
307
+ /* ── The effort's current: the moment the staff picks an effort, a current runs
308
+ through the panel — the composer first, round the panel's edge, then the pill — flickers and
309
+ dies out in about 1.3 s; then its edge stays on the composer while the next question waits to
310
+ leave at that effort. Gold for High, the teal-violet saber for Medium. One pass, never a loop: the
311
+ gold flame that turns round a clarification says « Soron waits ». ── */
312
+ @property --soron-a {
313
+ syntax: '<angle>';
314
+ inherits: false;
315
+ initial-value: 0deg;
316
+ }
317
+ @keyframes soron-surge-flash {
318
+ 0% {
319
+ opacity: 0;
320
+ }
321
+ 9% {
322
+ opacity: 1;
323
+ }
324
+ 15% {
325
+ opacity: 0.4;
326
+ }
327
+ 21% {
328
+ opacity: 1;
329
+ }
330
+ 33% {
331
+ opacity: 0.65;
332
+ }
333
+ 45% {
334
+ opacity: 1;
335
+ }
336
+ 100% {
337
+ opacity: 0;
338
+ }
339
+ }
340
+ @keyframes soron-surge-run {
341
+ to {
342
+ --soron-a: 540deg;
343
+ }
344
+ }
345
+ /* Each effort's colours: the spark from its deep end to its white-hot head, then its glow. */
346
+ .soron-root [data-effort='high'] {
347
+ --soron-s-deep: #c2410c;
348
+ --soron-s-mid: #f97316;
349
+ --soron-s-light: #f5b544;
350
+ --soron-s-core: #fffbe8;
351
+ --soron-s-ring: rgb(253 231 176 / 0.9);
352
+ --soron-s-glow: rgb(245 181 68 / 0.6);
353
+ --soron-s-halo: rgb(249 115 22 / 0.4);
354
+ --soron-edge: rgb(245 181 68 / 0.9);
355
+ --soron-edge-glow: rgb(249 115 22 / 0.5);
356
+ }
357
+ /* Medium: the teal-violet saber, with the aurora's blue between. */
358
+ .soron-root [data-effort='medium'] {
359
+ --soron-s-deep: rgb(139 92 246);
360
+ --soron-s-mid: rgb(var(--soron-aurora-2));
361
+ --soron-s-light: rgb(6 182 182);
362
+ --soron-s-core: #effdff;
363
+ --soron-s-ring: rgb(205 243 255 / 0.9);
364
+ --soron-s-glow: rgb(6 182 182 / 0.6);
365
+ --soron-s-halo: rgb(139 92 246 / 0.4);
366
+ --soron-edge: rgb(6 182 182 / 0.85);
367
+ --soron-edge-glow: rgb(139 92 246 / 0.4);
368
+ }
369
+ .soron-surge {
370
+ position: absolute;
371
+ inset: -1px;
372
+ z-index: 3;
373
+ pointer-events: none;
374
+ border-radius: inherit;
375
+ opacity: 0;
376
+ box-shadow:
377
+ 0 0 0 1px var(--soron-s-ring),
378
+ 0 0 14px 2px var(--soron-s-glow),
379
+ 0 0 36px 6px var(--soron-s-halo);
380
+ }
381
+ /* Two sparks, white-hot at their head, run round the edge. */
382
+ .soron-surge::before {
383
+ content: '';
384
+ position: absolute;
385
+ inset: 0;
386
+ border-radius: inherit;
387
+ padding: 2px;
388
+ background: repeating-conic-gradient(
389
+ from var(--soron-a),
390
+ transparent 0deg 100deg,
391
+ var(--soron-s-deep) 130deg,
392
+ var(--soron-s-mid) 148deg,
393
+ var(--soron-s-light) 162deg,
394
+ var(--soron-s-core) 172deg,
395
+ var(--soron-s-light) 176deg,
396
+ transparent 180deg
397
+ );
398
+ -webkit-mask:
399
+ linear-gradient(#000 0 0) content-box,
400
+ linear-gradient(#000 0 0);
401
+ -webkit-mask-composite: xor;
402
+ mask:
403
+ linear-gradient(#000 0 0) content-box,
404
+ linear-gradient(#000 0 0);
405
+ mask-composite: exclude;
406
+ }
407
+ /* The panel's own edge: the shell clips outside, so its glow shines inward. */
408
+ .soron-surge.soron-frame {
409
+ inset: 0;
410
+ z-index: 8;
411
+ border-radius: 0;
412
+ box-shadow:
413
+ inset 0 0 0 1px var(--soron-s-ring),
414
+ inset 0 0 28px var(--soron-s-glow),
415
+ inset 0 0 70px var(--soron-s-halo);
416
+ }
417
+ .soron-surge.soron-frame::before {
418
+ padding: 2.5px;
419
+ }
420
+ @media (prefers-reduced-motion: no-preference) {
421
+ .soron-surge {
422
+ animation: soron-surge-flash 1000ms var(--soron-ease) both;
423
+ }
424
+ .soron-surge::before {
425
+ animation: soron-surge-run 1000ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
426
+ }
427
+ .soron-surge.soron-frame,
428
+ .soron-surge.soron-frame::before {
429
+ animation-delay: 120ms;
430
+ animation-duration: 1100ms;
431
+ }
432
+ .soron-head .soron-surge,
433
+ .soron-head .soron-surge::before {
434
+ animation-delay: 320ms;
435
+ }
436
+ }
437
+ /* The effort's edge, still (the Aurora takes the edge while a passage runs). */
438
+ .soron-root [data-effort]:not([data-phase]) .soron-input {
439
+ box-shadow:
440
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
441
+ inset 0 0 14px rgb(var(--soron-glass-rgb) / 0.45),
442
+ 0 0 0 1px var(--soron-edge),
443
+ 0 0 18px -4px var(--soron-edge-glow),
444
+ 0 14px 34px -14px rgb(var(--soron-shadow-rgb) / 0.32);
445
+ }
446
+ .soron-root [data-effort]:not([data-phase]) .soron-input:focus-within {
447
+ box-shadow:
448
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
449
+ 0 0 0 1.5px var(--soron-focus),
450
+ 0 0 0 3px var(--soron-edge),
451
+ 0 0 20px -4px var(--soron-edge-glow),
452
+ 0 14px 36px -14px rgb(var(--soron-shadow-rgb) / 0.34);
453
+ }
454
+
455
+ /* ── The pixel eye: 16 grid, true hues at rest, alive only for a state ── */
456
+ .soron-eye {
457
+ display: block;
458
+ flex: none;
459
+ overflow: visible;
460
+ --p0: #ffefb8;
461
+ --p1: #ffd38f;
462
+ --p2: #ffb07e;
463
+ --p3: #f58d6a;
464
+ --pu: #4a3530;
465
+ }
466
+ .soron-px0 {
467
+ fill: var(--p0);
468
+ }
469
+ .soron-px1 {
470
+ fill: var(--p1);
471
+ }
472
+ .soron-px2 {
473
+ fill: var(--p2);
474
+ }
475
+ .soron-px3 {
476
+ fill: var(--p3);
477
+ }
478
+ .soron-pu {
479
+ fill: var(--pu);
480
+ }
481
+ .soron-eye rect,
482
+ .soron-halo {
483
+ transition:
484
+ fill 400ms var(--soron-ease),
485
+ opacity 400ms var(--soron-ease);
486
+ }
487
+ .soron-halo {
488
+ opacity: 0;
489
+ }
490
+ .soron-eye.is-reading,
491
+ .soron-root [data-phase='running'] .soron-eye-live .soron-eye {
492
+ --p0: #ffe066;
493
+ --p1: #ffb12e;
494
+ --p2: #ff7a1a;
495
+ --p3: #e3471f;
496
+ --pu: #140302;
497
+ }
498
+ .soron-eye.is-waiting,
499
+ .soron-root [data-phase='waiting'] .soron-eye-live .soron-eye {
500
+ --p0: #fff4b8;
501
+ --p1: #ffd24a;
502
+ --p2: #ffa11c;
503
+ --p3: #ff6c1a;
504
+ --pu: #140302;
505
+ }
506
+ .soron-eye.is-waiting .soron-halo,
507
+ .soron-root [data-phase='waiting'] .soron-eye-live .soron-halo {
508
+ opacity: 1;
509
+ }
510
+ @media (hover: hover) {
511
+ .soron-eye-btn:hover .soron-eye {
512
+ --p0: #ffe48a;
513
+ --p1: #ffbe55;
514
+ --p2: #ff9045;
515
+ --p3: #e8603a;
516
+ --pu: #140302;
517
+ }
518
+ }
519
+ @keyframes soron-pixread {
520
+ 0% {
521
+ transform: translateX(-1px);
522
+ }
523
+ 25% {
524
+ transform: none;
525
+ }
526
+ 50% {
527
+ transform: translateX(1px);
528
+ }
529
+ 75% {
530
+ transform: none;
531
+ }
532
+ }
533
+ @keyframes soron-pixblink {
534
+ 0% {
535
+ opacity: 1;
536
+ }
537
+ 15% {
538
+ opacity: 0;
539
+ }
540
+ 30% {
541
+ opacity: 1;
542
+ }
543
+ 45% {
544
+ opacity: 0;
545
+ }
546
+ 60%,
547
+ 100% {
548
+ opacity: 1;
549
+ }
550
+ }
551
+ @keyframes soron-pulse {
552
+ from {
553
+ opacity: 0.7;
554
+ }
555
+ to {
556
+ opacity: 1;
557
+ }
558
+ }
559
+ @media (prefers-reduced-motion: no-preference) {
560
+ /* The pupil moves one pixel at a time, like reading. */
561
+ .soron-eye.is-reading .soron-look,
562
+ .soron-root [data-phase='running'] .soron-eye-live .soron-look {
563
+ animation: soron-pixread 2.4s steps(1, end) infinite;
564
+ }
565
+ .soron-eye.is-waiting .soron-halo,
566
+ .soron-root [data-phase='waiting'] .soron-eye-live .soron-halo {
567
+ animation: soron-pulse 1.6s ease-in-out infinite alternate;
568
+ }
569
+ /* Answer ready, panel closed: the pupil goes out twice. */
570
+ .soron-trigger[data-signal='ready'] .soron-slit {
571
+ animation: soron-pixblink 700ms steps(1, end) 1;
572
+ }
573
+ }
574
+
575
+ /* ── Header button: the eye in a 44 px glass bubble ── */
576
+ .soron-eye-btn {
577
+ position: relative;
578
+ width: 44px;
579
+ height: 44px;
580
+ padding: 0;
581
+ border-radius: 999px;
582
+ display: grid;
583
+ place-items: center;
584
+ transition:
585
+ transform 150ms var(--soron-ease),
586
+ box-shadow 300ms var(--soron-ease);
587
+ }
588
+ @media (hover: hover) {
589
+ .soron-eye-btn:hover {
590
+ box-shadow:
591
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
592
+ inset 0 0 14px rgb(var(--soron-glass-rgb) / 0.45),
593
+ inset 0 -1px 0 rgb(var(--soron-tint-rgb) / 0.05),
594
+ 0 2px 4px rgb(var(--soron-shadow-rgb) / 0.1),
595
+ 0 16px 30px -12px rgb(var(--soron-shadow-rgb) / 0.4);
596
+ }
597
+ }
598
+ @media (hover: hover) and (prefers-reduced-motion: no-preference) {
599
+ .soron-eye-btn:hover {
600
+ transform: translateY(-1px);
601
+ }
602
+ }
603
+ .soron-eye-btn:focus-visible {
604
+ outline: 2px solid var(--soron-focus);
605
+ outline-offset: 1px;
606
+ }
607
+ /* State rings, added to the glass shadows: gold waits, green ready, red interrupted. */
608
+ .soron-trigger[data-phase='waiting'] .soron-eye-btn {
609
+ box-shadow:
610
+ 0 0 0 1.5px color-mix(in srgb, var(--soron-warn) 60%, transparent),
611
+ 0 0 18px 2px color-mix(in srgb, var(--soron-warn) 35%, transparent),
612
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
613
+ inset 0 0 14px rgb(var(--soron-glass-rgb) / 0.45),
614
+ 0 1px 2px rgb(var(--soron-shadow-rgb) / 0.08),
615
+ 0 14px 34px -14px rgb(var(--soron-shadow-rgb) / 0.32);
616
+ }
617
+ .soron-trigger[data-signal='ready'] .soron-eye-btn {
618
+ box-shadow:
619
+ 0 0 0 1.5px color-mix(in srgb, var(--soron-ok) 60%, transparent),
620
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
621
+ inset 0 0 14px rgb(var(--soron-glass-rgb) / 0.45),
622
+ 0 1px 2px rgb(var(--soron-shadow-rgb) / 0.08),
623
+ 0 14px 34px -14px rgb(var(--soron-shadow-rgb) / 0.32);
624
+ }
625
+ .soron-trigger[data-signal='failed'] .soron-eye-btn {
626
+ box-shadow:
627
+ 0 0 0 1.5px color-mix(in srgb, var(--soron-danger) 60%, transparent),
628
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
629
+ inset 0 0 14px rgb(var(--soron-glass-rgb) / 0.45),
630
+ 0 1px 2px rgb(var(--soron-shadow-rgb) / 0.08),
631
+ 0 14px 34px -14px rgb(var(--soron-shadow-rgb) / 0.32);
632
+ }
633
+
634
+ /* ── Controls: rest · hover · press · selected · focus · disabled ── */
635
+ .soron-root :focus-visible {
636
+ outline: 2px solid var(--soron-focus);
637
+ outline-offset: 2px;
638
+ }
639
+ /* A text field never draws this ring itself: its capsule does (composer, search), or its own thin
640
+ ring — two nested rings otherwise. */
641
+ .soron-root :is(input, textarea):focus-visible {
642
+ outline: none;
643
+ }
644
+ .soron-root svg.soron-i {
645
+ width: 16px;
646
+ height: 16px;
647
+ flex: none;
648
+ }
649
+ .soron-root svg.soron-i.soron-sm {
650
+ width: 14px;
651
+ height: 14px;
652
+ }
653
+ .soron-ib {
654
+ width: 32px;
655
+ height: 32px;
656
+ border-radius: 999px;
657
+ display: inline-grid;
658
+ place-items: center;
659
+ color: var(--soron-subtle);
660
+ flex: none;
661
+ transition:
662
+ background-color 150ms var(--soron-ease),
663
+ color 150ms var(--soron-ease),
664
+ transform 150ms var(--soron-ease);
665
+ }
666
+ @media (hover: hover) {
667
+ .soron-ib:hover {
668
+ background: rgb(var(--soron-tint-rgb) / 0.06);
669
+ color: var(--soron-strong);
670
+ }
671
+ }
672
+ .soron-ib:active {
673
+ transform: scale(0.94);
674
+ background: rgb(var(--soron-tint-rgb) / 0.09);
675
+ }
676
+ .soron-ib[aria-expanded='true'] {
677
+ background: rgb(var(--soron-tint-rgb) / 0.09);
678
+ color: var(--soron-strong);
679
+ }
680
+ .soron-ib[aria-pressed='true'] {
681
+ color: var(--soron-strong);
682
+ }
683
+ .soron-ib[aria-pressed='true'] svg {
684
+ fill: currentColor;
685
+ }
686
+ /* Already noted, or a rating on its way: the button says it cannot act now. */
687
+ .soron-ib[aria-disabled='true'] {
688
+ opacity: 0.45;
689
+ cursor: default;
690
+ }
691
+ .soron-ib.soron-sm {
692
+ width: 26px;
693
+ height: 26px;
694
+ color: var(--soron-muted);
695
+ }
696
+ /* Quiet: every action of the thread but the send. */
697
+ .soron-quiet {
698
+ display: inline-flex;
699
+ align-items: center;
700
+ gap: 5px;
701
+ min-height: 28px;
702
+ padding: 0 6px;
703
+ margin-left: -6px;
704
+ border-radius: 999px;
705
+ color: var(--soron-muted);
706
+ text-align: left;
707
+ max-width: 100%;
708
+ transition:
709
+ color 150ms var(--soron-ease),
710
+ background-color 150ms var(--soron-ease);
711
+ }
712
+ @media (hover: hover) {
713
+ .soron-quiet:hover {
714
+ color: var(--soron-strong);
715
+ background: rgb(var(--soron-tint-rgb) / 0.04);
716
+ }
717
+ }
718
+ .soron-quiet[aria-expanded='true'] {
719
+ color: var(--soron-strong);
720
+ }
721
+ .soron-quiet .soron-turn {
722
+ transition: transform 150ms var(--soron-ease);
723
+ }
724
+ .soron-quiet[aria-expanded='true'] .soron-turn {
725
+ transform: rotate(90deg);
726
+ }
727
+ .soron-quiet.soron-gap-btn {
728
+ color: var(--soron-warn-text);
729
+ margin-left: 0;
730
+ }
731
+ @media (hover: hover) {
732
+ .soron-quiet.soron-gap-btn:hover {
733
+ background: var(--soron-warn-bg);
734
+ }
735
+ }
736
+ .soron-field {
737
+ flex: 1;
738
+ min-width: 0;
739
+ height: 34px;
740
+ padding: 0 14px;
741
+ border: 0;
742
+ border-radius: 999px;
743
+ background: rgb(var(--soron-tint-rgb) / 0.05);
744
+ outline: none;
745
+ }
746
+ .soron-field:focus {
747
+ background: var(--soron-surface);
748
+ box-shadow: 0 0 0 1.5px var(--soron-focus);
749
+ }
750
+
751
+ /* ── Panel (top layer) ── */
752
+ .soron-panel {
753
+ --soron-fs: 14px;
754
+ --soron-composer-h: 76px;
755
+ /* The pill's place and the composer's gap to the bottom: the thread, its fade and the overlays
756
+ read them, a phone changes them (safe areas, keyboard, short screens). */
757
+ --soron-head-top: 10px;
758
+ --soron-head-h: 48px;
759
+ --soron-top: calc(var(--soron-head-top) + var(--soron-head-h) + 30px);
760
+ --soron-foot: 12px;
761
+ --soron-bottom: calc(var(--soron-composer-h) + var(--soron-foot) + 40px);
762
+ --soron-side: 20px;
763
+ position: fixed;
764
+ inset: 0 0 0 auto;
765
+ margin: 0;
766
+ padding: 0;
767
+ border: 0;
768
+ width: var(--soron-w, 420px);
769
+ max-width: 100vw;
770
+ /* What the staff sees, keyboard open or not (`--soron-vh`, `--soron-vt`: viewport.ts). */
771
+ top: var(--soron-vt, 0px);
772
+ bottom: auto;
773
+ height: var(--soron-vh, 100dvh);
774
+ max-height: none;
775
+ overflow: visible;
776
+ color: var(--soron-text);
777
+ background: transparent;
778
+ font-size: 14px;
779
+ line-height: 1.55;
780
+ display: none;
781
+ flex-direction: column;
782
+ /* A finger: no double-tap zoom on the panel. */
783
+ touch-action: manipulation;
784
+ }
785
+ .soron-panel:popover-open,
786
+ .soron-panel.soron-no-popover {
787
+ display: flex;
788
+ }
789
+ .soron-panel.soron-no-popover {
790
+ z-index: 2147483000;
791
+ }
792
+ @media (prefers-reduced-motion: no-preference) {
793
+ .soron-panel:popover-open,
794
+ .soron-panel.soron-no-popover {
795
+ animation: soron-slide 200ms var(--soron-ease) both;
796
+ }
797
+ }
798
+ @keyframes soron-slide {
799
+ from {
800
+ transform: translateX(100%);
801
+ }
802
+ to {
803
+ transform: none;
804
+ }
805
+ }
806
+ .soron-panel[data-fs='16'] {
807
+ --soron-fs: 16px;
808
+ }
809
+ .soron-panel[data-fs='18'] {
810
+ --soron-fs: 18px;
811
+ }
812
+ .soron-shell {
813
+ position: relative;
814
+ flex: 1;
815
+ min-height: 0;
816
+ display: flex;
817
+ flex-direction: column;
818
+ overflow: hidden;
819
+ --soron-fade: linear-gradient(
820
+ 180deg,
821
+ transparent 0,
822
+ transparent calc(var(--soron-top) - 34px),
823
+ #000 calc(var(--soron-top) + 4px),
824
+ #000 calc(100% - var(--soron-bottom) + 12px),
825
+ transparent calc(100% - var(--soron-bottom) + 54px)
826
+ );
827
+ background:
828
+ radial-gradient(80% 34% at 100% 0%, rgb(var(--soron-aurora-1) / 0.17), transparent 70%),
829
+ radial-gradient(70% 28% at 0% 0%, rgb(var(--soron-aurora-2) / 0.09), transparent 70%),
830
+ radial-gradient(80% 32% at 0% 100%, rgb(var(--soron-aurora-3) / 0.15), transparent 70%),
831
+ radial-gradient(70% 28% at 100% 100%, rgb(var(--soron-aurora-1) / 0.1), transparent 70%),
832
+ var(--soron-panel-bg);
833
+ border-left: 1px solid var(--soron-line);
834
+ box-shadow: -24px 0 48px -28px rgb(var(--soron-shadow-rgb) / 0.22);
835
+ }
836
+ .soron-resize {
837
+ position: absolute;
838
+ left: 0;
839
+ top: 0;
840
+ bottom: 0;
841
+ width: 8px;
842
+ cursor: col-resize;
843
+ z-index: 9;
844
+ touch-action: none;
845
+ }
846
+ .soron-resize::after {
847
+ content: '';
848
+ position: absolute;
849
+ left: 3px;
850
+ top: 50%;
851
+ width: 3px;
852
+ height: 40px;
853
+ margin-top: -20px;
854
+ border-radius: 3px;
855
+ background: var(--soron-line-strong);
856
+ opacity: 0;
857
+ transition: opacity 150ms var(--soron-ease);
858
+ }
859
+ .soron-resize:hover::after,
860
+ .soron-resize:focus-visible::after,
861
+ .soron-resize.is-drag::after {
862
+ opacity: 1;
863
+ }
864
+ .soron-head {
865
+ position: absolute;
866
+ top: var(--soron-head-top);
867
+ left: calc(12px + env(safe-area-inset-left, 0px));
868
+ right: calc(12px + env(safe-area-inset-right, 0px));
869
+ z-index: 5;
870
+ height: var(--soron-head-h);
871
+ display: flex;
872
+ align-items: center;
873
+ gap: 2px;
874
+ padding: 0 6px;
875
+ border-radius: 999px;
876
+ }
877
+ .soron-mascot {
878
+ display: grid;
879
+ place-items: center;
880
+ width: 40px;
881
+ height: 40px;
882
+ flex: none;
883
+ }
884
+ .soron-title {
885
+ display: flex;
886
+ align-items: center;
887
+ gap: 4px;
888
+ min-width: 0;
889
+ height: 34px;
890
+ padding: 0 8px 0 10px;
891
+ border-radius: 999px;
892
+ font-weight: 600;
893
+ color: var(--soron-strong);
894
+ }
895
+ .soron-title span {
896
+ overflow: hidden;
897
+ text-overflow: ellipsis;
898
+ white-space: nowrap;
899
+ }
900
+ @media (hover: hover) {
901
+ .soron-title:hover {
902
+ background: rgb(var(--soron-tint-rgb) / 0.06);
903
+ }
904
+ }
905
+ .soron-grow {
906
+ flex: 1;
907
+ }
908
+ /* The thread fades before it passes under the pill and the composer. */
909
+ .soron-scroll {
910
+ position: relative;
911
+ flex: 1;
912
+ min-height: 0;
913
+ overflow-y: auto;
914
+ overscroll-behavior: contain;
915
+ -webkit-mask-image: var(--soron-fade);
916
+ mask-image: var(--soron-fade);
917
+ padding: var(--soron-top) var(--soron-side) var(--soron-bottom);
918
+ scroll-padding: var(--soron-top) 0 var(--soron-bottom);
919
+ /* The pinned question's block fills what the thread shows, and follows it when the keyboard
920
+ opens or the composer grows. */
921
+ --soron-pin-h: calc(var(--soron-vh, 100dvh) - var(--soron-top) - var(--soron-bottom));
922
+ }
923
+
924
+ /* ── Thread ── */
925
+ .soron-ex {
926
+ padding: 4px 0 26px;
927
+ }
928
+ .soron-q {
929
+ display: flex;
930
+ justify-content: flex-end;
931
+ }
932
+ .soron-q-bubble {
933
+ margin: 0;
934
+ max-width: 86%;
935
+ padding: 9px 16px;
936
+ border-radius: 22px;
937
+ background: rgb(var(--soron-tint-rgb) / 0.07);
938
+ color: var(--soron-strong);
939
+ font-size: var(--soron-fs);
940
+ white-space: pre-wrap;
941
+ overflow-wrap: anywhere;
942
+ }
943
+ .soron-q-page {
944
+ display: flex;
945
+ justify-content: flex-end;
946
+ align-items: center;
947
+ gap: 5px;
948
+ margin: 6px 6px 0;
949
+ font-size: 12px;
950
+ color: var(--soron-muted);
951
+ }
952
+ .soron-choice-note {
953
+ margin: 10px 0 0;
954
+ font-size: 12px;
955
+ color: var(--soron-muted);
956
+ }
957
+ .soron-steps {
958
+ margin-top: 14px;
959
+ font-size: var(--soron-fs);
960
+ }
961
+ .soron-steps-label {
962
+ overflow: hidden;
963
+ text-overflow: ellipsis;
964
+ white-space: nowrap;
965
+ }
966
+ .soron-log {
967
+ margin: 6px 0 4px;
968
+ padding: 2px 0 2px 12px;
969
+ box-shadow: inset 1px 0 0 rgb(var(--soron-tint-rgb) / 0.12);
970
+ font-size: 12px;
971
+ color: var(--soron-subtle);
972
+ }
973
+ .soron-log h3 {
974
+ font-size: 12px;
975
+ font-weight: 600;
976
+ color: var(--soron-body);
977
+ margin: 0 0 6px;
978
+ }
979
+ .soron-log ol + h3 {
980
+ margin-top: 12px;
981
+ }
982
+ .soron-log ol {
983
+ list-style: none;
984
+ margin: 0;
985
+ padding: 0;
986
+ display: grid;
987
+ gap: 4px;
988
+ }
989
+ .soron-log li {
990
+ display: flex;
991
+ gap: 8px;
992
+ align-items: center;
993
+ }
994
+ .soron-log .soron-end {
995
+ margin-left: auto;
996
+ color: var(--soron-muted);
997
+ white-space: nowrap;
998
+ font-variant-numeric: tabular-nums;
999
+ }
1000
+ .soron-log .soron-end.is-gap {
1001
+ color: var(--soron-warn-text);
1002
+ }
1003
+ .soron-ok {
1004
+ color: var(--soron-ok);
1005
+ display: inline-flex;
1006
+ }
1007
+ .soron-none {
1008
+ color: var(--soron-muted);
1009
+ display: inline-flex;
1010
+ }
1011
+ /* Clarification: a frame, the staff must act; the gold flame circles it while Soron waits. */
1012
+ .soron-ask {
1013
+ position: relative;
1014
+ margin: 14px 0 4px;
1015
+ padding: 2px;
1016
+ border-radius: 22px;
1017
+ overflow: hidden;
1018
+ isolation: isolate;
1019
+ background: rgb(var(--soron-tint-rgb) / 0.1);
1020
+ transition: box-shadow 400ms var(--soron-ease);
1021
+ }
1022
+ .soron-ask.is-waiting {
1023
+ box-shadow:
1024
+ 0 0 10px rgb(245 181 68 / 0.45),
1025
+ 0 0 26px rgb(249 115 22 / 0.25);
1026
+ }
1027
+ .soron-ask-fire {
1028
+ position: absolute;
1029
+ inset: 0;
1030
+ opacity: 0;
1031
+ transition: opacity 400ms var(--soron-ease);
1032
+ pointer-events: none;
1033
+ }
1034
+ .soron-ask.is-waiting .soron-ask-fire {
1035
+ opacity: 1;
1036
+ }
1037
+ .soron-ask-body {
1038
+ position: relative;
1039
+ border-radius: 20px;
1040
+ background: var(--soron-surface);
1041
+ padding: 14px 16px;
1042
+ }
1043
+ .soron-ask-body p {
1044
+ margin: 0 0 12px;
1045
+ color: var(--soron-strong);
1046
+ }
1047
+ .soron-ask-opts {
1048
+ display: flex;
1049
+ flex-wrap: wrap;
1050
+ gap: 8px;
1051
+ }
1052
+ .soron-ask-other {
1053
+ display: flex;
1054
+ margin-top: 10px;
1055
+ gap: 8px;
1056
+ }
1057
+ .soron-ask .soron-field {
1058
+ font-size: var(--soron-fs);
1059
+ }
1060
+ /* Answer: the whole of GitHub's Markdown. */
1061
+ .soron-ans {
1062
+ margin-top: 10px;
1063
+ color: var(--soron-body);
1064
+ font-size: var(--soron-fs);
1065
+ line-height: 1.62;
1066
+ overflow-wrap: anywhere;
1067
+ }
1068
+ .soron-ans:empty {
1069
+ display: none;
1070
+ }
1071
+ .soron-ans p {
1072
+ margin: 0 0 10px;
1073
+ }
1074
+ .soron-ans strong {
1075
+ color: var(--soron-strong);
1076
+ font-weight: 600;
1077
+ }
1078
+ .soron-ans ol,
1079
+ .soron-ans ul {
1080
+ margin: 0 0 10px;
1081
+ padding-left: 20px;
1082
+ }
1083
+ .soron-ans ul {
1084
+ list-style: disc;
1085
+ }
1086
+ .soron-ans ol {
1087
+ list-style: decimal;
1088
+ }
1089
+ .soron-ans li {
1090
+ margin: 2px 0;
1091
+ }
1092
+ .soron-ans li::marker {
1093
+ color: var(--soron-muted);
1094
+ font-variant-numeric: tabular-nums;
1095
+ }
1096
+ .soron-ans h3 {
1097
+ font-family: inherit;
1098
+ font-weight: 600;
1099
+ font-size: var(--soron-fs);
1100
+ line-height: 1.4;
1101
+ color: var(--soron-strong);
1102
+ margin: 16px 0 6px;
1103
+ }
1104
+ .soron-ans code {
1105
+ font-family: var(--soron-mono);
1106
+ font-size: calc(var(--soron-fs) - 2px);
1107
+ padding: 1px 5px;
1108
+ border-radius: 6px;
1109
+ background: rgb(var(--soron-tint-rgb) / 0.06);
1110
+ }
1111
+ .soron-table-wrap {
1112
+ position: relative;
1113
+ overflow-x: auto;
1114
+ margin: 0 0 12px;
1115
+ border-radius: 12px;
1116
+ background: rgb(var(--soron-glass-rgb) / 0.7);
1117
+ box-shadow: 0 0 0 1px rgb(var(--soron-tint-rgb) / 0.08);
1118
+ }
1119
+ .soron-ans table {
1120
+ border-collapse: collapse;
1121
+ width: 100%;
1122
+ }
1123
+ .soron-ans th,
1124
+ .soron-ans td {
1125
+ text-align: left;
1126
+ vertical-align: top;
1127
+ padding: 7px 10px;
1128
+ border-bottom: 1px solid rgb(var(--soron-tint-rgb) / 0.06);
1129
+ overflow-wrap: break-word;
1130
+ }
1131
+ .soron-ans th {
1132
+ font-weight: 600;
1133
+ color: var(--soron-strong);
1134
+ background: rgb(var(--soron-tint-rgb) / 0.03);
1135
+ }
1136
+ .soron-ans tr:last-child td {
1137
+ border-bottom: 0;
1138
+ }
1139
+ /* A proved passage: a very light dotted underline; hover tints it and shows its source. */
1140
+ .soron-proof {
1141
+ text-decoration: underline dotted rgb(8 145 178 / 0.5);
1142
+ text-decoration-thickness: 1px;
1143
+ text-underline-offset: 4px;
1144
+ border-radius: 4px;
1145
+ cursor: pointer;
1146
+ -webkit-box-decoration-break: clone;
1147
+ box-decoration-break: clone;
1148
+ transition:
1149
+ background-color 150ms var(--soron-ease),
1150
+ text-decoration-color 150ms var(--soron-ease);
1151
+ }
1152
+ .soron-proof:focus-visible {
1153
+ background: rgb(var(--soron-aurora-1) / 0.12);
1154
+ text-decoration-color: var(--soron-accent);
1155
+ }
1156
+ @media (hover: hover) {
1157
+ .soron-proof:hover {
1158
+ background: rgb(var(--soron-aurora-1) / 0.12);
1159
+ text-decoration-color: var(--soron-accent);
1160
+ }
1161
+ }
1162
+ .soron-alias-unknown {
1163
+ display: inline-block;
1164
+ padding: 0 6px;
1165
+ border-radius: 999px;
1166
+ font-size: calc(var(--soron-fs) - 2px);
1167
+ color: var(--soron-subtle);
1168
+ background: rgb(var(--soron-tint-rgb) / 0.06);
1169
+ }
1170
+ /* The rest of GitHub Markdown: titles, quotes, alerts, code, rules, tasks, links, diagrams. */
1171
+ .soron-ans h1,
1172
+ .soron-ans h2 {
1173
+ font-family: inherit;
1174
+ font-weight: 600;
1175
+ font-size: calc(var(--soron-fs) + 2px);
1176
+ line-height: 1.35;
1177
+ color: var(--soron-strong);
1178
+ margin: 18px 0 8px;
1179
+ }
1180
+ .soron-ans h4,
1181
+ .soron-ans h5,
1182
+ .soron-ans h6 {
1183
+ font-weight: 600;
1184
+ font-size: var(--soron-fs);
1185
+ color: var(--soron-body);
1186
+ margin: 12px 0 4px;
1187
+ }
1188
+ .soron-ans > :first-child {
1189
+ margin-top: 0;
1190
+ }
1191
+ .soron-ans li > ul,
1192
+ .soron-ans li > ol {
1193
+ margin: 2px 0 4px;
1194
+ }
1195
+ .soron-ans ul ul {
1196
+ list-style: circle;
1197
+ }
1198
+ .soron-ans li:has(> input[type='checkbox']) {
1199
+ list-style: none;
1200
+ margin-left: -20px;
1201
+ }
1202
+ .soron-ans input[type='checkbox'] {
1203
+ margin: 0 8px 0 0;
1204
+ vertical-align: -1px;
1205
+ accent-color: var(--soron-accent);
1206
+ }
1207
+ .soron-ans del {
1208
+ color: var(--soron-muted);
1209
+ }
1210
+ .soron-ans a {
1211
+ color: var(--soron-link);
1212
+ text-decoration: underline;
1213
+ text-underline-offset: 3px;
1214
+ border-radius: 4px;
1215
+ }
1216
+ .soron-ans a:focus-visible {
1217
+ outline: 2px solid var(--soron-focus);
1218
+ outline-offset: 2px;
1219
+ }
1220
+ .soron-ans hr {
1221
+ border: 0;
1222
+ border-top: 1px solid rgb(var(--soron-tint-rgb) / 0.1);
1223
+ margin: 14px 0;
1224
+ }
1225
+ .soron-ans blockquote {
1226
+ margin: 0 0 10px;
1227
+ padding: 2px 0 2px 12px;
1228
+ border-left: 3px solid var(--soron-line-strong);
1229
+ color: var(--soron-text);
1230
+ }
1231
+ .soron-ans pre {
1232
+ margin: 0 0 12px;
1233
+ padding: 10px 12px;
1234
+ border-radius: 12px;
1235
+ overflow-x: auto;
1236
+ background: rgb(var(--soron-tint-rgb) / 0.05);
1237
+ box-shadow: 0 0 0 1px rgb(var(--soron-tint-rgb) / 0.06);
1238
+ }
1239
+ .soron-ans pre code {
1240
+ padding: 0;
1241
+ background: none;
1242
+ white-space: pre;
1243
+ }
1244
+ .soron-ans th[align='center'],
1245
+ .soron-ans td[align='center'] {
1246
+ text-align: center;
1247
+ }
1248
+ .soron-ans th[align='right'],
1249
+ .soron-ans td[align='right'] {
1250
+ text-align: right;
1251
+ }
1252
+ /* GitHub's alerts: the colour says the weight, the title says it in words. */
1253
+ .soron-alert {
1254
+ --soron-al: var(--soron-note);
1255
+ --soron-al-bg: var(--soron-note-bg);
1256
+ margin: 0 0 12px;
1257
+ padding: 8px 12px 2px;
1258
+ border-left: 3px solid var(--soron-al);
1259
+ border-radius: 0 12px 12px 0;
1260
+ background: var(--soron-al-bg);
1261
+ }
1262
+ .soron-alert[data-kind='tip'] {
1263
+ --soron-al: var(--soron-tip);
1264
+ --soron-al-bg: var(--soron-tip-bg);
1265
+ }
1266
+ .soron-alert[data-kind='important'] {
1267
+ --soron-al: var(--soron-important);
1268
+ --soron-al-bg: var(--soron-important-bg);
1269
+ }
1270
+ .soron-alert[data-kind='warning'] {
1271
+ --soron-al: var(--soron-warning);
1272
+ --soron-al-bg: var(--soron-warning-bg);
1273
+ }
1274
+ .soron-alert[data-kind='caution'] {
1275
+ --soron-al: var(--soron-caution);
1276
+ --soron-al-bg: var(--soron-caution-bg);
1277
+ }
1278
+ .soron-alert-title {
1279
+ display: flex;
1280
+ align-items: center;
1281
+ gap: 6px;
1282
+ font-weight: 600;
1283
+ color: var(--soron-al);
1284
+ margin: 0 0 4px;
1285
+ }
1286
+ .soron-cov {
1287
+ margin: 6px 0 0;
1288
+ font-size: 12px;
1289
+ color: var(--soron-muted);
1290
+ }
1291
+ .soron-note {
1292
+ display: flex;
1293
+ align-items: center;
1294
+ flex-wrap: wrap;
1295
+ gap: 8px;
1296
+ margin: 10px 0 0;
1297
+ color: var(--soron-subtle);
1298
+ font-size: var(--soron-fs);
1299
+ }
1300
+ .soron-foot {
1301
+ display: flex;
1302
+ flex-wrap: wrap;
1303
+ align-items: center;
1304
+ gap: 0 4px;
1305
+ margin: 10px 0 0;
1306
+ }
1307
+ .soron-foot .soron-quiet {
1308
+ font-size: var(--soron-fs);
1309
+ white-space: nowrap;
1310
+ flex: none;
1311
+ }
1312
+ .soron-foot-acts {
1313
+ display: flex;
1314
+ margin-left: auto;
1315
+ }
1316
+ .soron-sources {
1317
+ margin: 6px 0 0;
1318
+ display: grid;
1319
+ gap: 2px;
1320
+ }
1321
+ .soron-src {
1322
+ display: grid;
1323
+ grid-template-columns: auto 1fr;
1324
+ gap: 0 10px;
1325
+ align-items: center;
1326
+ padding: 8px 10px;
1327
+ border-radius: 14px;
1328
+ transition: background-color 150ms var(--soron-ease);
1329
+ }
1330
+ .soron-src.is-target {
1331
+ background: rgb(var(--soron-tint-rgb) / 0.07);
1332
+ }
1333
+ .soron-src-n {
1334
+ grid-row: span 2;
1335
+ display: grid;
1336
+ place-items: center;
1337
+ width: 22px;
1338
+ height: 22px;
1339
+ border-radius: 999px;
1340
+ font-size: 12px;
1341
+ font-weight: 600;
1342
+ line-height: 1;
1343
+ font-variant-numeric: tabular-nums;
1344
+ color: var(--soron-subtle);
1345
+ background: rgb(var(--soron-tint-rgb) / 0.06);
1346
+ }
1347
+ .soron-src-label {
1348
+ color: var(--soron-strong);
1349
+ font-weight: 500;
1350
+ font-size: var(--soron-fs);
1351
+ display: flex;
1352
+ align-items: center;
1353
+ gap: 6px;
1354
+ }
1355
+ .soron-src-sub {
1356
+ font-size: 12px;
1357
+ color: var(--soron-muted);
1358
+ overflow: hidden;
1359
+ text-overflow: ellipsis;
1360
+ white-space: nowrap;
1361
+ }
1362
+ .soron-gap-text {
1363
+ margin: 4px 0 0;
1364
+ display: flex;
1365
+ gap: 8px;
1366
+ color: var(--soron-warn-text);
1367
+ }
1368
+ .soron-gap-text p {
1369
+ margin: 0;
1370
+ color: var(--soron-body);
1371
+ font-size: var(--soron-fs);
1372
+ }
1373
+ .soron-card {
1374
+ padding: 16px;
1375
+ margin: 0 0 22px;
1376
+ border-radius: 22px;
1377
+ background: var(--soron-surface);
1378
+ box-shadow:
1379
+ 0 0 0 0.5px rgb(var(--soron-tint-rgb) / 0.12),
1380
+ 0 10px 28px -14px rgb(var(--soron-shadow-rgb) / 0.22);
1381
+ }
1382
+ .soron-card p {
1383
+ margin: 0 0 12px;
1384
+ color: var(--soron-body);
1385
+ font-size: var(--soron-fs);
1386
+ }
1387
+ .soron-row {
1388
+ display: flex;
1389
+ align-items: center;
1390
+ gap: 8px;
1391
+ flex-wrap: wrap;
1392
+ }
1393
+ .soron-fade-in {
1394
+ animation: soron-fade 150ms var(--soron-ease) both;
1395
+ }
1396
+ @media (prefers-reduced-motion: reduce) {
1397
+ .soron-fade-in {
1398
+ animation: none;
1399
+ }
1400
+ }
1401
+ .soron-empty {
1402
+ padding: 24px 2px 8px;
1403
+ }
1404
+ .soron-empty .soron-eye {
1405
+ margin: 0 0 16px;
1406
+ }
1407
+ .soron-empty h2 {
1408
+ font-family: inherit;
1409
+ font-weight: 600;
1410
+ font-size: 18px;
1411
+ line-height: 1.3;
1412
+ color: var(--soron-strong);
1413
+ letter-spacing: -0.01em;
1414
+ margin: 0 0 6px;
1415
+ text-wrap: balance;
1416
+ }
1417
+ .soron-panel[data-fs='16'] .soron-empty h2,
1418
+ .soron-panel[data-fs='18'] .soron-empty h2 {
1419
+ font-size: 22px;
1420
+ }
1421
+ .soron-empty p {
1422
+ margin: 0 0 18px;
1423
+ color: var(--soron-subtle);
1424
+ max-width: 46ch;
1425
+ font-size: var(--soron-fs);
1426
+ }
1427
+ .soron-examples {
1428
+ display: grid;
1429
+ gap: 8px;
1430
+ }
1431
+
1432
+ /* ── Composer: a glass capsule; effort left, send right ── */
1433
+ .soron-composer {
1434
+ position: absolute;
1435
+ left: calc(12px + env(safe-area-inset-left, 0px));
1436
+ right: calc(12px + env(safe-area-inset-right, 0px));
1437
+ bottom: var(--soron-foot);
1438
+ z-index: 5;
1439
+ }
1440
+ /* The red card above the field: the day's cap and the service's errors. */
1441
+ .soron-limit {
1442
+ display: flex;
1443
+ align-items: center;
1444
+ gap: 8px;
1445
+ margin: 0 0 8px;
1446
+ padding: 10px 14px;
1447
+ border-radius: 18px;
1448
+ background: var(--soron-danger-bg);
1449
+ color: var(--soron-danger-text);
1450
+ box-shadow: inset 0 0 0 1px var(--soron-danger-line);
1451
+ }
1452
+ .soron-limit > span {
1453
+ flex: 1;
1454
+ min-width: 0;
1455
+ }
1456
+ .soron-input {
1457
+ display: flex;
1458
+ align-items: flex-end;
1459
+ gap: 6px;
1460
+ border-radius: 26px;
1461
+ padding: 8px;
1462
+ transition: box-shadow 200ms var(--soron-ease);
1463
+ }
1464
+ .soron-input:focus-within {
1465
+ box-shadow:
1466
+ inset 0 1px 0 rgb(var(--soron-glass-rgb) / 0.95),
1467
+ 0 0 0 1.5px var(--soron-focus),
1468
+ 0 14px 36px -14px rgb(var(--soron-shadow-rgb) / 0.34);
1469
+ }
1470
+ .soron-root [data-off] .soron-input {
1471
+ opacity: 0.6;
1472
+ }
1473
+ .soron-input textarea {
1474
+ flex: 1;
1475
+ min-width: 0;
1476
+ min-height: 38px;
1477
+ /* 40 % of what the staff sees, keyboard open or not. */
1478
+ max-height: calc(var(--soron-vh, 100dvh) * 0.4);
1479
+ overflow-y: auto;
1480
+ border: 0;
1481
+ outline: 0;
1482
+ resize: none;
1483
+ background: transparent;
1484
+ line-height: 1.5;
1485
+ padding: 8px 4px;
1486
+ color: var(--soron-strong);
1487
+ }
1488
+ .soron-input textarea::placeholder {
1489
+ color: var(--soron-muted);
1490
+ }
1491
+ .soron-eff {
1492
+ position: relative;
1493
+ height: 36px;
1494
+ min-width: 36px;
1495
+ border-radius: 999px;
1496
+ display: inline-flex;
1497
+ align-items: center;
1498
+ justify-content: center;
1499
+ gap: 4px;
1500
+ flex: none;
1501
+ color: var(--soron-subtle);
1502
+ transition:
1503
+ background-color 150ms var(--soron-ease),
1504
+ transform 150ms var(--soron-ease);
1505
+ }
1506
+ .soron-eff[aria-expanded='true'] {
1507
+ background: rgb(var(--soron-tint-rgb) / 0.06);
1508
+ color: var(--soron-strong);
1509
+ }
1510
+ @media (hover: hover) {
1511
+ .soron-eff:hover {
1512
+ background: rgb(var(--soron-tint-rgb) / 0.06);
1513
+ color: var(--soron-strong);
1514
+ }
1515
+ }
1516
+ .soron-eff.is-high {
1517
+ padding: 0 12px 0 10px;
1518
+ background: rgb(245 181 68 / 0.2);
1519
+ color: var(--soron-warn-text);
1520
+ font-size: 12px;
1521
+ font-weight: 600;
1522
+ }
1523
+ .soron-eff.is-high svg {
1524
+ color: var(--soron-warn);
1525
+ }
1526
+ .soron-warn-dot {
1527
+ position: absolute;
1528
+ top: 5px;
1529
+ right: 5px;
1530
+ width: 7px;
1531
+ height: 7px;
1532
+ border-radius: 50%;
1533
+ background: var(--soron-warn);
1534
+ box-shadow: 0 0 0 2px var(--soron-surface);
1535
+ }
1536
+ /* The day's spend in its own frame, on the orange saber gauge; the track leaves its halo free. */
1537
+ .soron-budget {
1538
+ margin: 10px 0 0;
1539
+ padding: 10px 12px 12px;
1540
+ border: 1px solid rgb(var(--soron-tint-rgb) / 0.08);
1541
+ border-radius: 12px;
1542
+ background: rgb(var(--soron-tint-rgb) / 0.025);
1543
+ font-size: 12px;
1544
+ color: var(--soron-subtle);
1545
+ }
1546
+ .soron-budget .soron-row {
1547
+ justify-content: space-between;
1548
+ margin-bottom: 8px;
1549
+ font-variant-numeric: tabular-nums;
1550
+ }
1551
+ .soron-budget .soron-row:last-child {
1552
+ margin-bottom: 0;
1553
+ }
1554
+ .soron-bar {
1555
+ display: block;
1556
+ height: 6px;
1557
+ border-radius: 999px;
1558
+ background: rgb(var(--soron-tint-rgb) / 0.08);
1559
+ }
1560
+ .soron-bar i {
1561
+ display: block;
1562
+ height: 100%;
1563
+ border-radius: inherit;
1564
+ transition: width 300ms var(--soron-ease);
1565
+ }
1566
+
1567
+ /* ── Phone: full screen like the LLM apps, a phone held in landscape too (at most 1 000 px
1568
+ wide: a tablet whose Android keyboard shortens the window stays a side panel); the page under it
1569
+ no longer scrolls. The safe areas (`env()`) are 0 while the page's viewport is not
1570
+ `viewport-fit=cover`: the browser keeps the notch and the home bar clear itself. ── */
1571
+ @media (max-width: 767px), (pointer: coarse) and (max-height: 500px) and (max-width: 1000px) {
1572
+ .soron-panel {
1573
+ width: 100vw;
1574
+ --soron-head-top: max(8px, calc(env(safe-area-inset-top, 0px) + 4px));
1575
+ --soron-foot: max(10px, env(safe-area-inset-bottom, 0px));
1576
+ --soron-side: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
1577
+ }
1578
+ /* The keyboard covers the home bar: the composer sits right on it. */
1579
+ .soron-panel[data-kb] {
1580
+ --soron-foot: 6px;
1581
+ }
1582
+ .soron-resize {
1583
+ display: none;
1584
+ }
1585
+ .soron-shell {
1586
+ border-left: 0;
1587
+ box-shadow: none;
1588
+ }
1589
+ }
1590
+ /* A short screen (a phone in landscape, a keyboard open): a slimmer pill, the thread keeps room. */
1591
+ .soron-panel[data-fit='short'] {
1592
+ --soron-head-top: max(6px, env(safe-area-inset-top, 0px));
1593
+ --soron-head-h: 44px;
1594
+ --soron-top: calc(var(--soron-head-top) + var(--soron-head-h) + 14px);
1595
+ }
1596
+ /* Hardly any room left (landscape, keyboard open): the pill steps aside while the staff types and
1597
+ comes back with the keyboard's close. */
1598
+ .soron-panel[data-fit='tiny'] {
1599
+ --soron-head-h: 0px;
1600
+ --soron-top: 12px;
1601
+ }
1602
+ .soron-panel[data-fit='tiny'] .soron-head {
1603
+ display: none;
1604
+ }
1605
+ .soron-panel[data-fit] .soron-empty .soron-eye {
1606
+ display: none;
1607
+ }
1608
+ /* A finger, not a cursor: 40 px targets (44 px for the composer's), fields at 16 px so iOS never
1609
+ zooms on focus , no hover left lit after a tap. */
1610
+ @media (pointer: coarse) {
1611
+ .soron-ib {
1612
+ width: 40px;
1613
+ height: 40px;
1614
+ }
1615
+ .soron-ib.soron-sm {
1616
+ width: 36px;
1617
+ height: 36px;
1618
+ }
1619
+ .soron-quiet {
1620
+ min-height: 36px;
1621
+ }
1622
+ .soron-eff {
1623
+ height: 44px;
1624
+ min-width: 44px;
1625
+ }
1626
+ .soron-input textarea {
1627
+ min-height: 44px;
1628
+ padding: 10px 4px;
1629
+ }
1630
+ .soron-field {
1631
+ height: 40px;
1632
+ }
1633
+ .soron-all-search {
1634
+ height: 40px;
1635
+ }
1636
+ .soron-input textarea,
1637
+ .soron-field,
1638
+ .soron-all-search input {
1639
+ font-size: max(16px, var(--soron-fs));
1640
+ }
1641
+ }
1642
+
1643
+ /* ── Tooltip of a proved passage ── */
1644
+ .soron-tip {
1645
+ position: absolute;
1646
+ z-index: 9;
1647
+ max-width: min(300px, calc(100% - 24px));
1648
+ padding: 8px 12px;
1649
+ border-radius: 14px;
1650
+ background: rgb(15 23 42 / 0.9);
1651
+ color: #fff;
1652
+ font-size: 12px;
1653
+ line-height: 1.4;
1654
+ pointer-events: none;
1655
+ box-shadow: 0 12px 30px -12px rgb(var(--soron-shadow-rgb) / 0.5);
1656
+ }
1657
+ .soron-tip b {
1658
+ display: block;
1659
+ font-weight: 500;
1660
+ }
1661
+ .soron-tip span {
1662
+ display: block;
1663
+ color: var(--soron-line-strong);
1664
+ }
1665
+ .soron-tip span + b {
1666
+ margin-top: 6px;
1667
+ }
1668
+
1669
+ /* ── Discussions: the last 10 under the title, « Tout voir », undo ── */
1670
+ .soron-hist-row {
1671
+ display: flex;
1672
+ align-items: center;
1673
+ gap: 2px;
1674
+ border-radius: 10px;
1675
+ }
1676
+ .soron-hist-row:focus-within {
1677
+ background: rgb(var(--soron-tint-rgb) / 0.05);
1678
+ }
1679
+ @media (hover: hover) {
1680
+ .soron-hist-row:hover {
1681
+ background: rgb(var(--soron-tint-rgb) / 0.05);
1682
+ }
1683
+ }
1684
+ .soron-hist-open {
1685
+ flex: 1;
1686
+ min-width: 0;
1687
+ display: grid;
1688
+ grid-template-columns: 10px 1fr auto;
1689
+ gap: 0 8px;
1690
+ align-items: center;
1691
+ padding: 7px 4px 7px 8px;
1692
+ text-align: left;
1693
+ border-radius: 10px;
1694
+ }
1695
+ .soron-hist-open[disabled] {
1696
+ cursor: not-allowed;
1697
+ opacity: 0.6;
1698
+ }
1699
+ .soron-cur {
1700
+ width: 6px;
1701
+ height: 6px;
1702
+ border-radius: 50%;
1703
+ background: var(--soron-strong);
1704
+ visibility: hidden;
1705
+ }
1706
+ .soron-hist-row.is-current .soron-cur {
1707
+ visibility: visible;
1708
+ }
1709
+ .soron-hist-t {
1710
+ color: var(--soron-strong);
1711
+ font-weight: 500;
1712
+ overflow: hidden;
1713
+ text-overflow: ellipsis;
1714
+ white-space: nowrap;
1715
+ }
1716
+ .soron-hist-row.is-current .soron-hist-t {
1717
+ font-weight: 600;
1718
+ }
1719
+ .soron-hist-s {
1720
+ grid-column: 2;
1721
+ font-size: 12px;
1722
+ color: var(--soron-muted);
1723
+ overflow: hidden;
1724
+ text-overflow: ellipsis;
1725
+ white-space: nowrap;
1726
+ }
1727
+ .soron-hist-time {
1728
+ grid-row: 1;
1729
+ grid-column: 3;
1730
+ font-size: 12px;
1731
+ color: var(--soron-muted);
1732
+ }
1733
+ .soron-all {
1734
+ position: absolute;
1735
+ inset: 0;
1736
+ z-index: 1;
1737
+ overflow-y: auto;
1738
+ -webkit-mask-image: var(--soron-fade);
1739
+ mask-image: var(--soron-fade);
1740
+ padding: var(--soron-top) var(--soron-side) var(--soron-bottom);
1741
+ background: var(--soron-panel-bg);
1742
+ }
1743
+ .soron-all-h {
1744
+ display: flex;
1745
+ align-items: center;
1746
+ gap: 8px;
1747
+ margin: 0 0 12px;
1748
+ }
1749
+ .soron-all-h h2 {
1750
+ font-family: inherit;
1751
+ font-weight: 600;
1752
+ font-size: 16px;
1753
+ color: var(--soron-strong);
1754
+ margin: 0;
1755
+ flex: 1;
1756
+ }
1757
+ .soron-all-search {
1758
+ display: flex;
1759
+ align-items: center;
1760
+ gap: 8px;
1761
+ height: 36px;
1762
+ padding: 0 14px;
1763
+ margin: 0 0 12px;
1764
+ border-radius: 999px;
1765
+ background: rgb(var(--soron-tint-rgb) / 0.05);
1766
+ color: var(--soron-muted);
1767
+ }
1768
+ .soron-all-search:focus-within {
1769
+ background: var(--soron-surface);
1770
+ box-shadow: 0 0 0 1.5px var(--soron-focus);
1771
+ }
1772
+ .soron-all-search input {
1773
+ flex: 1;
1774
+ min-width: 0;
1775
+ border: 0;
1776
+ outline: 0;
1777
+ background: transparent;
1778
+ color: var(--soron-strong);
1779
+ }
1780
+ .soron-group-h {
1781
+ font-size: 12px;
1782
+ font-weight: 600;
1783
+ color: var(--soron-muted);
1784
+ margin: 14px 10px 4px;
1785
+ }
1786
+ .soron-all-foot {
1787
+ display: flex;
1788
+ justify-content: space-between;
1789
+ align-items: center;
1790
+ gap: 8px;
1791
+ margin-top: 16px;
1792
+ padding-top: 8px;
1793
+ border-top: 1px solid rgb(var(--soron-tint-rgb) / 0.07);
1794
+ font-size: 12px;
1795
+ color: var(--soron-muted);
1796
+ }
1797
+ .soron-undo {
1798
+ position: absolute;
1799
+ left: 50%;
1800
+ bottom: calc(var(--soron-composer-h) + var(--soron-foot) + 2px);
1801
+ z-index: 8;
1802
+ display: flex;
1803
+ align-items: center;
1804
+ gap: 10px;
1805
+ max-width: calc(100% - 24px);
1806
+ padding: 6px 6px 6px 16px;
1807
+ border-radius: 999px;
1808
+ transform: translateX(-50%);
1809
+ background: rgb(15 23 42 / 0.84);
1810
+ -webkit-backdrop-filter: blur(16px) saturate(160%);
1811
+ backdrop-filter: blur(16px) saturate(160%);
1812
+ color: #fff;
1813
+ font-size: 12px;
1814
+ white-space: nowrap;
1815
+ box-shadow: 0 18px 40px -16px rgb(var(--soron-shadow-rgb) / 0.55);
1816
+ }
1817
+ .soron-menu-foot {
1818
+ display: flex;
1819
+ justify-content: space-between;
1820
+ align-items: center;
1821
+ margin-top: 4px;
1822
+ padding: 6px 4px 2px 6px;
1823
+ border-top: 1px solid rgb(var(--soron-tint-rgb) / 0.07);
1824
+ }
1825
+ .soron-menu-count {
1826
+ font-size: 12px;
1827
+ color: var(--soron-muted);
1828
+ padding-right: 8px;
1829
+ font-variant-numeric: tabular-nums;
1830
+ }
1831
+ /* Two facts side by side, apart by space, never by a separator sign. */
1832
+ .soron-steps-count,
1833
+ .soron-src-domain {
1834
+ color: var(--soron-muted);
1835
+ font-weight: 400;
1836
+ white-space: nowrap;
1837
+ }
1838
+ .soron-steps-count {
1839
+ margin-left: 6px;
1840
+ }
1841
+ .soron-src-domain {
1842
+ margin-right: 2px;
1843
+ }
1844
+
1845
+ /* ── The eye at the page's corner ── */
1846
+ .soron-trigger {
1847
+ position: fixed;
1848
+ right: max(16px, env(safe-area-inset-right, 0px));
1849
+ bottom: max(16px, env(safe-area-inset-bottom, 0px));
1850
+ z-index: 2147483000;
1851
+ display: inline-flex;
1852
+ font-size: 14px;
1853
+ line-height: 1.4;
1854
+ }
1855
+
1856
+ /* ── Buttons: a quiet pill, the send in the accent, a round icon button ── */
1857
+ .soron-btn {
1858
+ display: inline-flex;
1859
+ align-items: center;
1860
+ justify-content: center;
1861
+ gap: 6px;
1862
+ min-height: 32px;
1863
+ padding: 0 14px;
1864
+ border-radius: 999px;
1865
+ background: var(--soron-surface);
1866
+ color: var(--soron-strong);
1867
+ font-size: 13px;
1868
+ font-weight: 500;
1869
+ line-height: 1.3;
1870
+ white-space: nowrap;
1871
+ box-shadow: 0 0 0 1px rgb(var(--soron-tint-rgb) / 0.14);
1872
+ transition:
1873
+ background-color 150ms var(--soron-ease),
1874
+ box-shadow 150ms var(--soron-ease),
1875
+ transform 150ms var(--soron-ease);
1876
+ }
1877
+ @media (hover: hover) {
1878
+ .soron-btn:not(:disabled):hover {
1879
+ background-image: linear-gradient(rgb(var(--soron-tint-rgb) / 0.05), rgb(var(--soron-tint-rgb) / 0.05));
1880
+ box-shadow: 0 0 0 1px rgb(var(--soron-tint-rgb) / 0.22);
1881
+ }
1882
+ }
1883
+ .soron-btn:not(:disabled):active {
1884
+ transform: scale(0.97);
1885
+ }
1886
+ .soron-btn:disabled {
1887
+ opacity: 0.45;
1888
+ }
1889
+ .soron-btn[aria-pressed='true'] {
1890
+ box-shadow: 0 0 0 1.5px var(--soron-strong);
1891
+ }
1892
+ .soron-btn.is-danger {
1893
+ color: var(--soron-danger-text);
1894
+ box-shadow: 0 0 0 1px var(--soron-danger-line);
1895
+ }
1896
+ .soron-btn.is-dark {
1897
+ background: rgb(255 255 255 / 0.14);
1898
+ color: #fff;
1899
+ box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25);
1900
+ }
1901
+ .soron-round {
1902
+ width: 38px;
1903
+ min-height: 38px;
1904
+ height: 38px;
1905
+ padding: 0;
1906
+ flex: none;
1907
+ }
1908
+ .soron-round.is-primary {
1909
+ background: var(--soron-accent);
1910
+ color: var(--soron-on-accent);
1911
+ box-shadow: none;
1912
+ }
1913
+ .soron-round.is-primary:disabled {
1914
+ opacity: 0.35;
1915
+ }
1916
+ .soron-example {
1917
+ width: 100%;
1918
+ min-height: 40px;
1919
+ padding: 10px 14px;
1920
+ justify-content: flex-start;
1921
+ border-radius: 16px;
1922
+ font-weight: 400;
1923
+ text-align: left;
1924
+ white-space: normal;
1925
+ }
1926
+ .soron-turn {
1927
+ display: inline-flex;
1928
+ }
1929
+ .soron-src-sub.is-mono {
1930
+ font-family: var(--soron-mono);
1931
+ }
1932
+ .soron-older {
1933
+ margin-bottom: 16px;
1934
+ }
1935
+ .soron-status {
1936
+ display: contents;
1937
+ }
1938
+ @media (pointer: coarse) {
1939
+ .soron-round {
1940
+ width: 44px;
1941
+ min-height: 44px;
1942
+ height: 44px;
1943
+ }
1944
+ .soron-btn {
1945
+ min-height: 40px;
1946
+ }
1947
+ }
1948
+
1949
+ /* ── A button's tooltip ── */
1950
+ .soron-hint {
1951
+ position: relative;
1952
+ display: inline-flex;
1953
+ min-width: 0;
1954
+ }
1955
+ .soron-tooltip {
1956
+ position: absolute;
1957
+ left: 50%;
1958
+ z-index: 20;
1959
+ width: max-content;
1960
+ max-width: 240px;
1961
+ padding: 6px 10px;
1962
+ border-radius: 10px;
1963
+ transform: translateX(-50%);
1964
+ background: rgb(15 23 42 / 0.92);
1965
+ color: #fff;
1966
+ font-size: 12px;
1967
+ font-weight: 400;
1968
+ line-height: 1.4;
1969
+ text-align: left;
1970
+ white-space: normal;
1971
+ pointer-events: none;
1972
+ box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.5);
1973
+ animation: soron-fade 120ms var(--soron-ease) both;
1974
+ }
1975
+ .soron-tooltip.is-top {
1976
+ bottom: calc(100% + 6px);
1977
+ }
1978
+ .soron-tooltip.is-bottom {
1979
+ top: calc(100% + 6px);
1980
+ }
1981
+ /* At an edge, the tooltip opens inward. */
1982
+ .soron-trigger .soron-tooltip,
1983
+ .soron-head > :last-child .soron-tooltip,
1984
+ .soron-foot-acts .soron-tooltip,
1985
+ .soron-input > :last-child .soron-tooltip,
1986
+ .soron-hist-row .soron-tooltip {
1987
+ left: auto;
1988
+ right: 0;
1989
+ transform: none;
1990
+ }
1991
+ .soron-input .soron-pop-anchor .soron-tooltip,
1992
+ .soron-all-h .soron-tooltip {
1993
+ left: 0;
1994
+ transform: none;
1995
+ }
1996
+ .soron-tooltip-h {
1997
+ display: flex;
1998
+ align-items: center;
1999
+ gap: 8px;
2000
+ }
2001
+ .soron-tooltip kbd {
2002
+ padding: 0 4px;
2003
+ border: 1px solid rgb(255 255 255 / 0.25);
2004
+ border-radius: 4px;
2005
+ font-family: var(--soron-mono);
2006
+ font-size: 11px;
2007
+ color: #e2e8f0;
2008
+ }
2009
+ .soron-tooltip-note {
2010
+ display: block;
2011
+ margin-top: 2px;
2012
+ color: #cbd5e1;
2013
+ }
2014
+ @media (hover: none) {
2015
+ .soron-tooltip {
2016
+ display: none;
2017
+ }
2018
+ }
2019
+
2020
+ /* ── Menus: anchored to their trigger, inside the panel ── */
2021
+ .soron-pop-anchor {
2022
+ position: relative;
2023
+ display: inline-flex;
2024
+ min-width: 0;
2025
+ }
2026
+ .soron-pop {
2027
+ position: absolute;
2028
+ z-index: 30;
2029
+ min-width: 200px;
2030
+ padding: 6px;
2031
+ border-radius: 16px;
2032
+ background: var(--soron-surface);
2033
+ color: var(--soron-text);
2034
+ font-size: 14px;
2035
+ box-shadow:
2036
+ 0 0 0 1px rgb(var(--soron-tint-rgb) / 0.1),
2037
+ 0 18px 40px -16px rgb(var(--soron-shadow-rgb) / 0.35);
2038
+ outline: none;
2039
+ }
2040
+ .soron-pop.is-bottom {
2041
+ top: calc(100% + 8px);
2042
+ }
2043
+ .soron-pop.is-top {
2044
+ bottom: calc(100% + 8px);
2045
+ }
2046
+ .soron-pop.is-start {
2047
+ left: 0;
2048
+ }
2049
+ .soron-pop.is-end {
2050
+ right: 0;
2051
+ }
2052
+ @media (prefers-reduced-motion: no-preference) {
2053
+ .soron-pop.is-bottom {
2054
+ animation: soron-pop 150ms var(--soron-ease) both;
2055
+ }
2056
+ .soron-pop.is-top {
2057
+ animation: soron-pop-up 150ms var(--soron-ease) both;
2058
+ }
2059
+ }
2060
+ .soron-hist-menu {
2061
+ width: min(24rem, calc(100vw - 80px), calc(var(--soron-w, 420px) - 80px));
2062
+ }
2063
+ .soron-effort-box {
2064
+ width: 300px;
2065
+ max-width: calc(100vw - 32px);
2066
+ padding: 12px;
2067
+ }
2068
+ .soron-size-box {
2069
+ min-width: 0;
2070
+ }
2071
+ /* A choice of two or three, the chosen one raised. */
2072
+ .soron-seg {
2073
+ display: flex;
2074
+ gap: 2px;
2075
+ padding: 3px;
2076
+ border-radius: 12px;
2077
+ background: rgb(var(--soron-tint-rgb) / 0.06);
2078
+ }
2079
+ .soron-seg.is-column {
2080
+ flex-direction: column;
2081
+ }
2082
+ .soron-seg-opt {
2083
+ flex: 1;
2084
+ display: grid;
2085
+ place-items: center;
2086
+ min-width: 44px;
2087
+ height: 32px;
2088
+ border-radius: 9px;
2089
+ color: var(--soron-subtle);
2090
+ font-size: 13px;
2091
+ font-weight: 500;
2092
+ line-height: 1;
2093
+ transition:
2094
+ background-color 150ms var(--soron-ease),
2095
+ color 150ms var(--soron-ease);
2096
+ }
2097
+ .soron-seg-opt[aria-pressed='true'] {
2098
+ background: var(--soron-surface);
2099
+ color: var(--soron-strong);
2100
+ box-shadow: 0 1px 3px rgb(var(--soron-shadow-rgb) / 0.16);
2101
+ }
2102
+ .soron-seg-opt:disabled {
2103
+ opacity: 0.4;
2104
+ }
2105
+ .soron-seg + .soron-cov {
2106
+ margin-top: 8px;
2107
+ }
2108
+
2109
+ /* ── The day's spend: an orange saber ── */
2110
+ @keyframes soron-saber-flow {
2111
+ from {
2112
+ transform: translateX(0);
2113
+ }
2114
+ to {
2115
+ transform: translateX(calc(200% / 3));
2116
+ }
2117
+ }
2118
+ @keyframes soron-saber-sheen {
2119
+ 0% {
2120
+ transform: translateX(-100%);
2121
+ }
2122
+ 70%,
2123
+ 100% {
2124
+ transform: translateX(300%);
2125
+ }
2126
+ }
2127
+ @keyframes soron-saber-hum {
2128
+ from {
2129
+ filter: brightness(1);
2130
+ }
2131
+ to {
2132
+ filter: brightness(1.15);
2133
+ }
2134
+ }
2135
+ .soron-saber {
2136
+ --soron-saber-fill:
2137
+ linear-gradient(180deg, transparent 15%, rgb(255 255 255 / 0.4) 50%, transparent 85%),
2138
+ linear-gradient(90deg, #f97316 0%, #c2410c 25%, #f97316 50%, #c2410c 75%, #f97316 100%);
2139
+ position: relative;
2140
+ overflow: hidden;
2141
+ animation: soron-saber-hum 1.6s ease-in-out infinite alternate;
2142
+ box-shadow:
2143
+ 0 0 8px rgb(249 115 22 / 0.6),
2144
+ 0 0 16px rgb(194 65 12 / 0.4);
2145
+ }
2146
+ .soron-saber::before {
2147
+ content: '';
2148
+ position: absolute;
2149
+ top: 0;
2150
+ bottom: 0;
2151
+ left: -200%;
2152
+ width: 300%;
2153
+ background: var(--soron-saber-fill);
2154
+ background-size:
2155
+ 100% 100%,
2156
+ calc(200% / 3) 100%;
2157
+ animation: soron-saber-flow 3.2s linear infinite;
2158
+ }
2159
+ .soron-saber::after {
2160
+ content: '';
2161
+ position: absolute;
2162
+ inset: 0 auto 0 0;
2163
+ width: 35%;
2164
+ background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent);
2165
+ animation: soron-saber-sheen 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
2166
+ }
2167
+ @media (prefers-reduced-motion: reduce) {
2168
+ .soron-saber {
2169
+ animation: none;
2170
+ background: var(--soron-saber-fill);
2171
+ background-size:
2172
+ 100% 100%,
2173
+ 200% 100%;
2174
+ box-shadow: 0 0 8px rgb(249 115 22 / 0.4);
2175
+ }
2176
+ .soron-saber::before,
2177
+ .soron-saber::after {
2178
+ display: none;
2179
+ }
2180
+ }
2181
+
2182
+ /* The self-test of the first opening: one line per step. */
2183
+ .soron-selftest {
2184
+ margin: 12px 2px;
2185
+ padding: 12px 14px;
2186
+ border: 1px solid rgb(var(--soron-shadow-rgb) / 0.12);
2187
+ border-radius: 12px;
2188
+ color: var(--soron-body);
2189
+ font-size: 13px;
2190
+ }
2191
+ .soron-selftest h3 {
2192
+ margin: 0 0 8px;
2193
+ font-size: 13px;
2194
+ font-weight: 600;
2195
+ color: var(--soron-strong);
2196
+ }
2197
+ .soron-selftest ul {
2198
+ margin: 0;
2199
+ padding: 0;
2200
+ list-style: none;
2201
+ }
2202
+ .soron-selftest li {
2203
+ margin: 4px 0;
2204
+ }
2205
+ .soron-selftest li[data-ok='true'] span {
2206
+ color: var(--soron-ok);
2207
+ }
2208
+ .soron-selftest li[data-ok='false'] {
2209
+ color: var(--soron-danger-text);
2210
+ }