-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
3604 lines (3476 loc) · 125 KB
/
Copy pathstyle.css
File metadata and controls
3604 lines (3476 loc) · 125 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Beholder extension — settings drawer + floating state panel + paper-doll mode
─────────────────────────────────────────────────────────────────────────
Design system: "Tactical Codex" — refined editorial dark-mode UI.
- Cinzel for headings (panel title, char name) — engraved nameplate feel
- JetBrains Mono for data labels (slot names, drawer section caps, gauges)
- Body inherits host font
- Type/space/color tokens declared on .beholder-panel ↓
───────────────────────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=JetBrains+Mono:wght@500;600&display=swap");
/* Settings drawer — grouped sections with helper text. */
#beholder_settings small.opacity50p {
display: block;
margin-top: 6px;
opacity: 0.6;
font-size: 0.85em;
}
.bh-settings-main-toggle {
padding: 6px 8px;
margin-bottom: 6px;
background: rgba(255, 255, 255, 0.025);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
}
.bh-settings-section {
margin: 8px 0;
padding: 0;
border: 1px solid var(--SmartThemeBorderColor, rgba(255, 255, 255, 0.08));
border-radius: 6px;
background: rgba(255, 255, 255, 0.015);
}
.bh-settings-section > summary {
cursor: pointer;
padding: 7px 10px;
list-style: none;
user-select: none;
font-size: 0.95em;
border-radius: 6px;
position: relative;
padding-right: 24px;
}
.bh-settings-section > summary::-webkit-details-marker { display: none; }
.bh-settings-section > summary::after {
content: "›";
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%) rotate(0deg);
transition: transform 0.18s;
opacity: 0.5;
font-size: 1.2em;
}
.bh-settings-section[open] > summary::after {
transform: translateY(-50%) rotate(90deg);
}
.bh-settings-section > summary b { color: var(--SmartThemeEmColor, #ffeaa7); }
.bh-settings-body {
padding: 0 10px 10px;
display: flex;
flex-direction: column;
gap: 4px;
}
.bh-settings-body label:not(.checkbox_label) {
font-size: 0.88em;
opacity: 0.85;
margin-top: 6px;
}
.bh-settings-body .checkbox_label { margin-top: 6px; }
.bh-help {
display: block;
margin-top: 2px;
margin-bottom: 4px;
opacity: 0.55;
font-size: 0.78em;
line-height: 1.4;
}
.bh-help-inline {
margin-left: 4px;
opacity: 0.6;
font-size: 0.85em;
font-weight: normal;
font-style: italic;
}
.bh-help code,
.bh-settings-body code {
background: rgba(255, 255, 255, 0.06);
padding: 1px 5px;
border-radius: 3px;
font-size: 0.92em;
}
.bh-settings-buttons {
gap: 6px;
margin-top: 8px;
}
/* ─── Floating state panel ────────────────────────────────────────────── */
/* Right-edge tab to re-open the panel after it's been closed (mirrors the header
✕). Shown only while the panel is hidden — see panel.js show/hideReopenTab(). */
.beholder-reopen-tab {
position: fixed;
right: 0;
top: 50%;
transform: translateY(-50%);
z-index: 9000;
display: none; /* flipped to flex only while the panel is hidden */
align-items: center;
gap: 3px;
padding: 11px 5px 11px 7px;
color: #c9a55a; /* Beholder gold (matches --bh-gold-deep) */
background: var(--SmartThemeBlurTintColor, rgba(20, 20, 24, 0.92));
border: 1px solid var(--SmartThemeBorderColor, rgba(255, 255, 255, 0.15));
border-right: none;
border-radius: 10px 0 0 10px;
box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.4);
cursor: pointer;
opacity: 0.6;
transition: opacity .15s ease, padding-right .15s ease, color .15s ease;
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
user-select: none;
}
.beholder-reopen-tab:hover,
.beholder-reopen-tab:focus-visible {
opacity: 1;
padding-right: 9px;
color: #ffeaa7; /* --bh-gold */
outline: none;
}
.beholder-reopen-tab .fa-chevron-left { font-size: .72em; opacity: .75; }
.beholder-reopen-tab .fa-eye { font-size: 1.05em; }
.beholder-panel {
position: fixed;
z-index: 9000;
width: min(420px, calc(100vw - 40px));
max-height: 86vh;
min-width: 240px;
min-height: 180px;
/* Fixed-width panel (no resize). Container queries below auto-switch
to the single-column list layout when the panel is narrow. */
overflow: hidden;
display: flex;
flex-direction: column;
background: var(--SmartThemeBlurTintColor, rgba(20, 20, 24, 0.92));
color: var(--SmartThemeBodyColor, #e0e0e0);
border: 1px solid var(--SmartThemeBorderColor, rgba(255, 255, 255, 0.15));
border-radius: 12px;
box-shadow:
0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 12px 40px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
user-select: none;
/* ────── DESIGN TOKENS ──────────────────────────────────────────────
Every panel-scoped value should reference one of these. Adding a
new font-size or padding without a token is a design-system bug. */
/* Master scale knob. Bumps the whole panel proportionally. Slot cards
cancel this out (font-size: 1em / --bh-ui-scale) to keep their
content density stable while the surrounding chrome breathes. */
--bh-ui-scale: 1.1;
font-size: calc(0.875em * var(--bh-ui-scale));
/* Type ramp (em, relative to panel base). Five steps, named by role —
NOT by size. Use the role, not the number, when picking. */
--bh-text-meta: 0.78em; /* slot caps, POV hint, tab pulse */
--bh-text-secondary: 0.875em; /* species, gauge label, drawer hint */
--bh-text-body: 1em; /* chips, tabs, drawer buttons */
--bh-text-large: 1.143em; /* panel title, gauge value, drawer focus */
--bh-text-display: 1.357em; /* char name */
/* Font families. Scoped via `font-family: var(--bh-font-display)` etc.
so the host site's body font keeps governing default text — these
only apply where we explicitly opt in. */
--bh-font-display: "Cinzel", "Trajan Pro", "Georgia", serif;
--bh-font-data: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
/* Spacing scale — multiples of 4. Em-based so it co-scales with the type. */
--bh-space-1: 0.286em; /* 4px @ 14px base */
--bh-space-2: 0.571em; /* 8px */
--bh-space-3: 0.857em; /* 12px */
--bh-space-4: 1.143em; /* 16px */
--bh-space-5: 1.714em; /* 24px */
/* Color roles — neutrals layered over the host theme background. Used
for elevated/inset surfaces and divider strengths. */
--bh-surface-1: rgba(255, 255, 255, 0.025); /* inset (drawer, gauge bg) */
--bh-surface-2: rgba(255, 255, 255, 0.05); /* elevated (header, hover) */
--bh-surface-3: rgba(255, 255, 255, 0.085); /* pressed / active control */
--bh-divider: rgba(255, 255, 255, 0.08); /* hairline dividers */
--bh-border: rgba(255, 255, 255, 0.18); /* control borders, focus */
/* Opacity roles — apply via opacity: var(...) for consistent muting. */
--bh-mute-strong: 0.45; /* meta, POV hint */
--bh-mute-soft: 0.7; /* secondary text */
--bh-mute-none: 1; /* primary */
}
/* When user has manually resized, drop the max-height cap so their size sticks. */
.beholder-panel[data-resized="true"] {
max-height: none;
}
/* (Legacy data-mode rules removed — only one layout now. Mobile is
handled via @container query below.) */
/* No tracked state renders a full-size default-human placeholder (same width +
chrome as a populated panel) so the extension shows at its real size on first
open, with all header tools visible. data-empty only mutes the placeholder
name + caption and drops its interactive view controls (it's visual-only
until real state arrives). */
.beholder-panel[data-empty="true"] .bh-char-name {
opacity: 0.4;
}
.beholder-panel[data-empty="true"] .bh-figure-controls {
display: none;
}
.bh-placeholder-note {
margin: 14px 14px 6px;
padding: 10px 14px;
text-align: center;
font-size: var(--bh-text-secondary);
line-height: 1.5;
color: var(--bh-gold, #ffeaa7);
background: linear-gradient(160deg, rgba(201, 165, 90, 0.14), rgba(201, 165, 90, 0.04));
border: 1px solid rgba(201, 165, 90, 0.4);
border-radius: 8px;
}
.bh-placeholder-note b { color: #f3e3b8; font-weight: 600; }
/* Note/intent bar mounted above the chat input: input grows, the apply button
sits to its right (not stacked under). */
.beholder-notebox {
display: flex;
gap: var(--bh-space-2, 6px);
align-items: stretch;
margin: 4px 0;
}
.beholder-notebox .beholder-notebox-input { flex: 1 1 auto; min-width: 0; }
.beholder-notebox .beholder-notebox-btn { flex: 0 0 auto; }
.beholder-panel.beholder-dragging {
opacity: 0.85;
}
.beholder-panel-header {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--bh-space-2) var(--bh-space-3);
background: var(--bh-surface-2);
border-bottom: 1px solid var(--bh-divider);
cursor: move;
}
/* Hairline accent rule across the top of the header — quiet brand mark.
Fades in from the left edge so the panel feels "anchored" on its left side. */
.beholder-panel-header::before {
content: "";
position: absolute;
left: 0; right: 0; top: 0;
height: 1px;
background: linear-gradient(
90deg,
var(--bh-accent, #c9a55a) 0%,
rgba(201, 165, 90, 0.4) 22%,
transparent 60%
);
pointer-events: none;
opacity: 0.7;
}
.beholder-panel-title {
font-family: var(--bh-font-display);
font-size: var(--bh-text-large);
font-weight: 600;
letter-spacing: 0.12em;
color: var(--SmartThemeBodyColor, #e8eaee);
}
.beholder-panel-controls {
display: flex;
gap: var(--bh-space-2);
font-size: var(--bh-text-body);
flex-wrap: wrap;
justify-content: flex-end;
}
.beholder-panel-controls .fa-solid,
.beholder-tool-btn {
cursor: pointer;
opacity: var(--bh-mute-soft);
transition: opacity 0.15s, color 0.15s, transform 0.15s;
}
/* Header tool icons + active control bump slightly larger than the
backfill chevrons so the tool row reads as the primary actions. */
.beholder-panel-controls .fa-solid,
.beholder-tool-btn { font-size: 1.08em; padding: 4px; }
.beholder-panel-controls .fa-solid:hover {
opacity: 1;
color: var(--bh-accent, #c9a55a);
}
.beholder-panel-controls .fa-solid:active {
transform: scale(0.92);
}
/* ─── Layer bar ──────────────────────────────────────────────────────────
Sits directly under the header as a permanent control strip. Reads like
the legend row on a vintage anatomical chart: hairline divider above and
below, JetBrains Mono small-caps labels, a thin "engagement bar" beneath
each active layer instead of a chunky fill. Off layers fade to mute-strong
so the user can see at a glance which dimensions of the state are hidden.
Disengaged label gets a thin double-strike instead of an underline — a
subtle "redacted" cue that echoes editorial typography. */
.beholder-layer-bar {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
padding: var(--bh-space-1) var(--bh-space-3) calc(var(--bh-space-1) + 1px);
background: var(--bh-surface-1);
border-bottom: 1px solid var(--bh-divider);
position: relative;
}
/* Bracket marks at both ends, the way an instrument bezel anchors a scale. */
.beholder-layer-bar::before,
.beholder-layer-bar::after {
content: "";
position: absolute;
top: 50%;
width: 4px;
height: 9px;
border: 1px solid var(--bh-divider);
transform: translateY(-50%);
pointer-events: none;
}
.beholder-layer-bar::before { left: var(--bh-space-2); border-right: none; }
.beholder-layer-bar::after { right: var(--bh-space-2); border-left: none; }
.bh-layer-cell {
position: relative;
cursor: pointer;
user-select: none;
display: flex;
align-items: center;
justify-content: center;
padding: var(--bh-space-1) 0 calc(var(--bh-space-1) + 2px);
min-width: 0;
}
.bh-layer-cell input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.bh-layer-cell span {
font-family: var(--bh-font-data);
font-size: var(--bh-text-meta);
font-weight: 500;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--bh-body);
opacity: var(--bh-mute-strong);
line-height: 1;
text-align: center;
transition: opacity 0.12s ease, color 0.12s ease, letter-spacing 0.12s ease;
position: relative;
padding: 1px 2px 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: clip;
}
/* Disengaged: a thin overstrike line through the label — editorial "redacted"
cue, gentler than strikethrough. Drawn as a pseudo-element so it doesn't
shift typographic metrics. */
.bh-layer-cell span::before {
content: "";
position: absolute;
left: 8%; right: 8%;
top: calc(50% - 1px);
height: 1px;
background: currentColor;
opacity: 0.35;
transition: opacity 0.12s ease, transform 0.12s ease;
transform-origin: center;
}
/* Engagement bar — the "instrument" cue. Sits beneath the label, drawn as
the cell's own pseudo so it tracks cell width, not text width. */
.bh-layer-cell::after {
content: "";
position: absolute;
left: 18%; right: 18%;
bottom: 0;
height: 2px;
background: var(--bh-accent, #c9a55a);
transform: scaleX(0);
transform-origin: center;
transition: transform 0.18s ease, opacity 0.18s ease;
opacity: 0;
}
.bh-layer-cell:hover span {
opacity: var(--bh-mute-none);
color: var(--bh-accent, #c9a55a);
}
.bh-layer-cell:hover span::before { opacity: 0; }
.bh-layer-cell:hover::after {
transform: scaleX(0.55);
opacity: 0.55;
}
.bh-layer-cell input:checked + span {
opacity: var(--bh-mute-none);
color: var(--SmartThemeBodyColor, #e8eaee);
letter-spacing: 0.26em; /* fractionally widens — "tuned in" */
}
.bh-layer-cell input:checked + span::before { opacity: 0; }
.bh-layer-cell:has(input:checked)::after {
transform: scaleX(1);
opacity: 1;
}
.bh-layer-cell input:focus-visible + span {
outline: 1px dashed var(--bh-accent);
outline-offset: 3px;
}
/* Narrow container: tighten letter-spacing so labels still fit on 4 cells. */
@container bhpanel (max-width: 320px) {
.bh-layer-cell span { letter-spacing: 0.14em; font-size: 0.72em; }
.bh-layer-cell input:checked + span { letter-spacing: 0.18em; }
}
.beholder-panel-body {
padding: var(--bh-space-3) var(--bh-space-3) var(--bh-space-4);
overflow-y: auto;
/* Vertical scrolls; horizontal is CLIPPED (never spills past the panel border).
`clip` (not `hidden`) adds no scrollbar and composes with overflow-y:auto. The
grid/wrap fixes above make content FIT; this is the belt-and-suspenders so a
stray wide card can never poke over the right edge again. */
overflow-x: clip;
flex: 1;
/* Subtle scrollbar tuning to feel integrated rather than borrowed. */
scrollbar-width: thin;
scrollbar-color: var(--bh-border) transparent;
}
.beholder-panel-body::-webkit-scrollbar { width: 6px; }
.beholder-panel-body::-webkit-scrollbar-track { background: transparent; }
.beholder-panel-body::-webkit-scrollbar-thumb {
background: var(--bh-border);
border-radius: 3px;
}
.bh-empty-text {
color: var(--SmartThemeBodyColor, #888);
opacity: var(--bh-mute-soft);
text-align: center;
padding: var(--bh-space-2) 0;
font-size: var(--bh-text-secondary);
font-style: italic;
}
/* ─── Compact mode (legacy text list) ─────────────────────────────────── */
.beholder-char {
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 1px dashed var(--SmartThemeBorderColor, rgba(255, 255, 255, 0.08));
}
.beholder-char:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.beholder-char-name {
font-weight: 600;
margin-bottom: 4px;
color: var(--SmartThemeEmColor, #ffeaa7);
}
.beholder-species {
font-weight: normal;
opacity: 0.5;
font-size: 0.85em;
margin-left: 6px;
}
.beholder-row { line-height: 1.5; word-wrap: break-word; }
.beholder-label {
display: inline-block;
min-width: 60px;
opacity: 0.55;
font-size: 0.8em;
text-transform: uppercase;
letter-spacing: 0.4px;
}
.beholder-item { margin-right: 4px; }
.beholder-slot { opacity: 0.45; font-size: 0.85em; font-style: italic; }
.beholder-wound { color: #ff7676; }
.beholder-dmg-warn { color: #f5c06f; }
.beholder-dmg-bad { color: #ff8585; }
/* ─── Doll mode ───────────────────────────────────────────────────────── */
/* Tier color scale — drives slot row borders + damage chips */
.beholder-panel {
--bh-tier-0: #6ad48b; /* pristine, lightly worn */
--bh-tier-1: #e3c969; /* frayed, soiled */
--bh-tier-2: #e9933b; /* damaged, cracked */
--bh-tier-3: #e26464; /* torn, bloodstained */
--bh-tier-4: #8c3030; /* tatters, ruined */
/* Brand gold accent. --bh-accent defaults to gold; a user accent
preference (or "match host theme" toggle) sets --bh-accent-pref
inline on the panel to override it. --bh-holding tracks the gold. */
--bh-gold: #ffeaa7;
--bh-gold-deep: #c9a55a;
--bh-holding: var(--bh-gold);
--bh-body: var(--SmartThemeBodyColor, #cfd2d6);
--bh-body-soft: color-mix(in srgb, var(--bh-body) 25%, transparent);
--bh-accent: var(--bh-accent-pref, var(--bh-gold-deep));
--bh-wound: #ff5252;
}
/* Character tabs — name nav for multi-char chats. Wraps to multiple rows
when there are more tabs than fit on one row (instead of horizontal
scrolling, which hides off-screen characters). */
.bh-tabs {
display: flex;
flex-wrap: wrap;
gap: var(--bh-space-1) var(--bh-space-2);
margin-bottom: var(--bh-space-3);
padding-bottom: var(--bh-space-1);
border-bottom: 1px solid var(--bh-divider);
}
.bh-tab {
background: transparent;
border: none;
color: var(--bh-body);
padding: var(--bh-space-1) var(--bh-space-2) var(--bh-space-1);
font: inherit;
font-family: var(--bh-font-display);
font-size: var(--bh-text-body);
letter-spacing: 0.06em;
cursor: pointer;
opacity: 0.55;
border-bottom: 2px solid transparent;
transition: opacity 0.15s, border-color 0.15s, color 0.15s;
white-space: nowrap;
}
.bh-tab:hover { opacity: 0.85; }
.bh-tab-active {
opacity: 1;
border-bottom-color: var(--bh-accent);
color: var(--SmartThemeEmColor, #ffeaa7);
font-weight: 600;
}
/* Multi-char "updated" indicator. Critical for the multi-char RP case:
when Maggie's state changes while Tim's tab is active, the dot on
Maggie's tab signals "she changed, click to see." */
.bh-tab-updated {
opacity: 0.85;
color: var(--bh-accent);
}
.bh-tab-updated .bh-tab-pulse {
color: var(--bh-accent);
font-size: var(--bh-text-meta);
margin-left: var(--bh-space-1);
vertical-align: middle;
}
/* Absent — character is tracked but not currently in the scene. Tab stays
clickable (last-known state preserved) but reads as "on the roster, not
here right now": dimmed, italic, no accent. Hover brightens slightly so
it's clear the tab is still interactive. */
.bh-tab-absent {
opacity: 0.38;
font-style: italic;
}
.bh-tab-absent:hover { opacity: 0.7; }
.bh-tab-absent.bh-tab-active {
/* If user explicitly views an absent char, lift the dim a little so
their state is readable, but keep italic so the off-scene status is
still legible. */
opacity: 0.72;
}
.bh-char-doll {
display: flex;
flex-direction: column;
gap: 8px;
}
.bh-char-head {
display: flex;
align-items: baseline;
gap: var(--bh-space-3);
padding: var(--bh-space-1) 0 var(--bh-space-2);
border-bottom: 1px solid var(--bh-divider);
margin-bottom: var(--bh-space-2);
position: relative;
}
/* Decorative inscription rule under the character name — codex page feel.
Sits over the head's bottom border, accenting the left edge. */
.bh-char-head::after {
content: "";
position: absolute;
left: 0;
bottom: -1px;
width: 32px;
height: 1px;
background: var(--SmartThemeEmColor, #ffeaa7);
opacity: 0.55;
}
.bh-char-name {
font-family: var(--bh-font-display);
font-weight: 600;
font-size: var(--bh-text-display);
color: var(--SmartThemeEmColor, #ffeaa7);
letter-spacing: 0.06em;
line-height: 1.15;
}
/* (Stamina gauge removed — the stamina field is no longer tracked. Any
residual gauge element is hidden via the .bh-char-head .bh-gauge
display:none rule appended below.) */
.bh-char-species {
font-family: var(--bh-font-data);
font-size: var(--bh-text-secondary);
font-weight: 500;
color: var(--bh-body);
opacity: var(--bh-mute-soft);
letter-spacing: 0.08em;
text-transform: lowercase;
padding: 1px var(--bh-space-2);
border: 1px solid var(--bh-divider);
border-radius: 3px;
background: var(--bh-surface-1);
}
/* v0.4 (2026-06-03): `bh-char-gender` rules removed along with the gender
field. The wings rules below are kept defensively in case a v0.5+ state
still emits a `wings` slot — they harmlessly do nothing when paperdoll.js
never renders the element. */
.bh-char-species::before {
content: "·";
margin-right: 4px;
opacity: 0.5;
}
/* The 3-col grid: left labels | silhouette | right labels */
.bh-doll-grid {
display: grid;
/* minmax(0, 1fr) — NOT bare 1fr. A bare `1fr` track has an implicit min of
min-content, so a wide chip (a long item name) forces the side column — and the
whole grid — past the panel's right edge. minmax(0,…) lets the track shrink and
the content wrap/clip instead of overflowing. */
grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
gap: 6px;
align-items: start;
}
.bh-doll-empty {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 4px 0;
}
.bh-figure { display: flex; justify-content: center; }
.bh-col {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.bh-col-empty { min-height: 1px; }
/* ─── Narrow-viewport / ST sidebar adaptation ──────────────────────────
Container queries (not media queries) — the panel responds to its OWN
size, so it adapts whether it's narrow because of viewport (mobile) or
because the user docked it in a narrow ST sidebar. */
.beholder-panel {
container-type: inline-size;
container-name: bhpanel;
}
/* ─── Mobile / narrow context = section digest (auto) ─────────────────────
Above 360px the panel is the paperdoll grid. Below, the digest takes
over: wounds → held → worn → state flags, sorted by IMPORTANCE rather
than by anatomy. The silhouette + slot cards aren't useful at narrow
widths once the spatial cue is gone — the digest reformats the same
data as a priority feed. Both are always rendered; CSS picks one. */
.bh-digest { display: none; }
@container bhpanel (max-width: 360px) {
.bh-doll-grid { display: none; }
.bh-doll-grid.bh-paired { display: none; }
.bh-digest { display: block; }
/* Auto-narrow always shows the digest; hide the digest-side layout
switch (the panel has no doll grid to switch between at this width). */
.bh-layout-switch-row { display: none; }
/* Header tools collapse to the overflow (⋯) trigger when narrow. */
.beholder-tool-btn { display: none; }
.beholder-tools-more { display: inline-block; }
}
/* Per-slot CARD: one card per anatomical slot, contains chips for each
worn item / held item / wound that belongs to it. Replaces the
one-row-per-thing layout (which repeated the slot name on every card).
The card's left border = worst damage tier across all items in that slot. */
.bh-slot-card {
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
padding: 4px 6px 5px 9px;
position: relative;
line-height: 1.3;
/* In paired mode the card IS the grid item (the .bh-col wrapper is display:contents),
so it needs its own min-width:0 to shrink below its content and let the text wrap
instead of forcing the track — and the panel — wider. */
min-width: 0;
/* Cancel the panel's --bh-ui-scale so cards keep their original density
regardless of how much the surrounding UI is scaled up. */
font-size: calc(1em / var(--bh-ui-scale, 1));
}
/* Card no longer carries a tier border — damage tier reads off each chip's
own left bar (CSS ::before below) so the colored stripes match each
chip's actual height. Empty card still gets faint outline via main
.bh-slot-card border style above. */
/* Wound-count marker in the slot card header (✚ or ✚N for >1). */
.bh-slot-card-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 6px;
}
/* (Slot-head wound mark removed — the wound chips inside the card already
say the same thing; the head-level glyph was duplicating info.) */
/* Right-column = true mirror of left. Border anchors to the right edge
(toward the silhouette), and chip content reverses so dots/swatches/
glyphs cluster on the right side near the border, multi-slot tags
+ wound marks float to the left. Text within each label still reads
left-to-right — only the element order flips. */
.bh-col-right .bh-slot-card-head { flex-direction: row-reverse; }
.bh-slot-card .bh-slot-name {
font-family: var(--bh-font-data);
font-size: 0.82em; /* slot card scale already shrinks; bump back to readable */
font-weight: 500;
opacity: 0.65;
text-transform: lowercase;
letter-spacing: 0.06em;
font-style: normal;
}
/* Right-column cards mirror the border. */
.bh-col-right .bh-slot-card { text-align: right; padding-left: 6px; padding-right: 9px; }
.bh-col-right .bh-slot-card::before { inset: 0 0 0 auto; border-radius: 0 6px 6px 0; }
/* Empty / ghost slot card: faint one-liner, no chips. Lets users see what
slots ARE available without dominating the visual. */
.bh-slot-card.bh-slot-empty {
background: transparent;
border-style: dashed;
border-color: rgba(255, 255, 255, 0.05);
opacity: 0.35;
padding: 2px 6px 2px 9px;
}
.bh-slot-card.bh-slot-empty::before {
background: rgba(255, 255, 255, 0.06);
}
.bh-slot-card.bh-slot-empty:hover { opacity: 0.7; }
/* Bare slot card (v0.3 — narration explicitly confirmed uncovered).
Skin-tone left bar + italic "bare" tag in the same slot as missing's tag.
Visually distinct from .bh-slot-empty (which means "unknown / nothing said").
Mutually exclusive with worn/items per schema, so no chips. */
.bh-slot-card.bh-slot-bare {
background: rgba(220, 188, 156, 0.04);
border-style: solid;
border-color: rgba(220, 188, 156, 0.18);
opacity: 0.85;
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 8px 4px 9px;
}
.bh-slot-card.bh-slot-bare::before {
background: linear-gradient(180deg, rgba(220, 188, 156, 0.5), rgba(220, 188, 156, 0.25));
}
.bh-slot-bare-tag {
color: rgba(220, 188, 156, 0.95);
font-family: var(--bh-font-data);
font-size: 0.78em;
text-transform: uppercase;
letter-spacing: 0.12em;
font-style: normal;
font-weight: 600;
}
.bh-slot-card.bh-slot-bare:hover {
opacity: 1;
border-color: rgba(220, 188, 156, 0.45);
}
/* ─── Layered worn-items staircase ──────────────────────────────────────
When a slot has >1 worn item (chest with gambeson + chainmail + breastplate),
each chip gets a left-side index gutter and a faint connector line. The
first chip is the outermost layer (per schema worn[0] = outer). */
.bh-chip-layered {
display: flex;
align-items: stretch;
gap: var(--bh-space-1);
position: relative;
}
.bh-chip-layer-idx {
font-family: var(--bh-font-data);
font-size: 0.65em;
font-weight: 600;
color: var(--bh-body);
opacity: 0.4;
min-width: 10px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
position: relative;
}
/* Connector line tying the indices into a vertical stack. */
.bh-chip-layered:not(:first-child) .bh-chip-layer-idx::before {
content: "";
position: absolute;
top: -3px;
bottom: 50%;
width: 1px;
background: var(--bh-border);
opacity: 0.5;
}
.bh-chip-layered:not(:last-child) .bh-chip-layer-idx::after {
content: "";
position: absolute;
top: 50%;
bottom: -3px;
width: 1px;
background: var(--bh-border);
opacity: 0.5;
}
.bh-chip-layered:first-child .bh-chip-layer-idx { color: var(--SmartThemeEmColor, #ffeaa7); opacity: 0.55; }
.bh-chip-layered:hover .bh-chip-layer-idx { opacity: 0.9; }
/* Right-column layered chips mirror: index ends up on the right side (toward
the body), connector tick still runs vertically through the index gutter. */
.bh-col-right .bh-chip-layered { flex-direction: row-reverse; }
/* Missing / lost slot card: vertical gray slits, strikethrough on the slot
name, "missing" tag. Distinct from empty and off-body. */
.bh-slot-card.bh-slot-missing {
background: repeating-linear-gradient(
90deg,
rgba(140, 140, 140, 0.07) 0px, rgba(140, 140, 140, 0.07) 1px,
transparent 1px, transparent 6px
);
border-style: dashed;
border-color: rgba(140, 140, 140, 0.3);
opacity: 0.65;
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 8px 4px 9px;
}
.bh-slot-card.bh-slot-missing::before { background: rgba(140, 140, 140, 0.45); }
.bh-slot-card.bh-slot-missing .bh-slot-name {
text-decoration: line-through;
opacity: 0.7;
}
.bh-slot-missing-tag {
color: rgba(160, 160, 160, 0.95);
font-family: var(--bh-font-data);
font-size: 0.78em;
text-transform: uppercase;
letter-spacing: 0.12em;
font-style: normal;
font-weight: 600;
}
.bh-slot-card.bh-slot-missing:hover {
opacity: 0.85;
border-color: rgba(160, 160, 160, 0.5);
}
/* Chips inside a slot card: one per item / wound. Damage tier shows as a
small dot before the item name; the card border still shows the worst
tier across all items, the per-chip dot tells you which item is which. */
.bh-slot-chips {
display: flex;
flex-direction: column;
gap: 2px;
margin-top: 2px;
}
.bh-chip {
display: flex;
flex-wrap: wrap; /* allows the verbose sub-row to drop below */
align-items: baseline;
font-size: 1.0em;
line-height: 1.35;
padding: 1px 0;
cursor: help;
/* Wrap at WORD boundaries only (no mid-word breaks). Long names that
genuinely need to wrap will, but won't shatter into "breastpla|te". */
overflow-wrap: normal;
word-break: normal;
}
/* Chip head — prefix glyphs + item name + multi-slot tag share ONE inner
flex line that never wraps as a unit. The text inside is allowed to wrap
to multiple lines via min-width:0, but the dot/glyph/swatch stay glued to
the start of the FIRST line. Previously the chip was a single flex with
wrap, so a long item name would push to a new row, orphaning the prefix
on the row above. */
.bh-chip-head {
display: flex;
flex: 1 1 100%;
align-items: baseline;
gap: 6px;
min-width: 0;
flex-wrap: nowrap;
}
.bh-chip-text {
font-weight: 500;
flex: 1 1 auto;
min-width: 0;
/* A single over-long token (an item name with no spaces) can't wrap at a space,
so break it as a LAST RESORT rather than let it overflow the column past the
panel edge. Multi-word names still wrap at spaces first (this only fires when a
word is wider than the column). */
overflow-wrap: anywhere;
/* Sentence case at the display layer: normalize the model's casing
(lowercase everything) and then capitalize the first letter. Means
"ARMING SWORD" and "arming sword" both render as "Arming sword".
Display normalization only — the underlying data stays as authored. */
text-transform: lowercase;
}
.bh-chip-text::first-letter {
text-transform: uppercase;
}
.bh-chip-dot {
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
background: var(--bh-tier-0);
align-self: center;
}
.bh-chip.bh-tier-1 .bh-chip-dot { background: var(--bh-tier-1); }
.bh-chip.bh-tier-2 .bh-chip-dot { background: var(--bh-tier-2); }
.bh-chip.bh-tier-3 .bh-chip-dot { background: var(--bh-tier-3); }
.bh-chip.bh-tier-4 .bh-chip-dot { background: var(--bh-tier-4); }
/* Hide the per-chip damage dot in desktop (doll-grid) — the card's left
border already encodes the same tier for each item. Mobile (digest)
keeps the dot because there's no card border to read off. */
.bh-doll-grid .bh-chip-dot { display: none; }
/* ─── Color swatch (v0.3 worn[].color / holding.color) ──────────────────
Inline color square beside the damage dot. Encodes the item's color
without stealing characters from the item name. Schema palette = 16
controlled colors; free-text variants fall back to .bh-c-other (neutral)
and rely on the tooltip for the exact word. */
.bh-chip-swatch {
width: 9px;
height: 9px;
border-radius: 2px;
flex-shrink: 0;
align-self: center;
border: 1px solid rgba(255, 255, 255, 0.18);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}
/* Schema's 16-color controlled palette — chosen for legibility on dark bg. */
.bh-c-red { background: #d6534b; }
.bh-c-orange { background: #e6883a; }
.bh-c-yellow { background: #e6c64b; }
.bh-c-green { background: #5ec27a; }
.bh-c-blue { background: #4d8fdc; }
.bh-c-purple { background: #9d6dcc; }
.bh-c-pink { background: #e687a3; }
.bh-c-brown { background: #8a5a3a; }
.bh-c-black { background: #1f1f24; border-color: rgba(255, 255, 255, 0.3); }
.bh-c-white { background: #f0f0f0; border-color: rgba(255, 255, 255, 0.4); }
.bh-c-gray { background: #888c92; }
.bh-c-beige { background: #d6c7a3; }
.bh-c-gold { background: #d4a93a; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25) inset, 0 0 4px rgba(212, 169, 58, 0.4); }
.bh-c-silver { background: #b5b8bd; }
.bh-c-navy { background: #2a3d6b; }
.bh-c-tan { background: #c4a878; }
/* Free-text color (crimson, burgundy, etc.): neutral swatch with a hint
underline so it reads as "color present, see tooltip". */
.bh-c-other {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
border-style: dashed;
}
/* Held items: gold ✦ glyph identifies "held" — but the chip text is normal
color (per-tier dot + color swatch carry the data signals). The previous
all-yellow text was unreadable on top of the gold glyph + actual damage. */
.bh-chip-hold .bh-chip-text { color: inherit; }
.bh-chip-hold .bh-chip-glyph {
color: var(--bh-holding);
font-size: 0.95em;
text-shadow: 0 0 4px rgba(255, 234, 167, 0.35);
}
/* Wound chips: severity-colored (1=minor amber, 2=serious orange, 3=critical red).
v0.3 supplies explicit severity + bleeding fields. */
.bh-chip-wound .bh-chip-glyph { font-size: 0.95em; }
.bh-chip-wound-1 { color: #e3c969; }