-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
2842 lines (2431 loc) · 60.5 KB
/
Copy pathstyles.css
File metadata and controls
2842 lines (2431 loc) · 60.5 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
/* Mobile-first. Single column below the wide-desktop breakpoint — wider
screens up to that point just get more breathing room, same as before.
At the wide-desktop tier (see "#form-view: two-column layout" further
down), the form view splits into a form column and a live preview
column side by side; every other view stays single-column at every
width. */
:root {
--bg: #f6f7f9;
--surface: #ffffff;
--border: #e3e6ea;
--border-strong: #c9cdd3;
--text: #1c2128;
--muted: #626c77;
--error: #c4302f;
--error-bg: #fcf1f1;
--ok: #1a7f37;
--accent: #3556c8;
--accent-hover: #2a46a8;
--accent-soft: #eef1fb;
--radius: 10px;
--shadow: 0 1px 2px rgba(28, 33, 40, 0.06), 0 4px 12px rgba(28, 33, 40, 0.04);
}
* {
box-sizing: border-box;
}
html {
background: var(--bg);
}
body {
margin: 0 auto;
max-width: 48rem;
padding: 1rem 1rem 6.5rem; /* room for the sticky action bar */
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
line-height: 1.5;
color: var(--text);
-webkit-font-smoothing: antialiased;
}
/* Matches the two-column form/preview layout's own total width (see
"#form-view: two-column layout" further down) — every view (header,
footer, the events list) gets the same wider column at this tier, not
just the form. */
@media (min-width: 72rem) {
body {
max-width: 72rem;
}
}
/* --- header ------------------------------------------------------------- */
header {
margin: 0.5rem 0 1rem;
}
.header-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
header h1 {
font-size: 1.35rem;
letter-spacing: -0.01em;
margin: 0;
}
#repo-banner {
color: var(--muted);
font-size: 0.9rem;
margin: 0.15rem 0 0;
}
.lang-switch {
flex: none;
display: inline-flex;
align-items: center;
gap: 0.4rem;
color: var(--muted);
font-size: 0.85rem;
}
.lang-switch select {
min-height: 2rem;
padding: 0.2rem 1.7rem 0.2rem 0.6rem;
border: 1px solid var(--border);
border-radius: 999px;
background-color: var(--surface);
background-position: right 0.55rem center;
font-size: 0.85rem;
font-weight: 500;
color: var(--text);
cursor: pointer;
transition: border-color 0.12s, box-shadow 0.12s;
}
.lang-switch select:hover {
border-color: var(--accent);
}
.lang-switch select:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
/* --- warnings ------------------------------------------------------------ */
#warnings,
.warning-box {
background: #fff8e1;
border: 1px solid #e6c65c;
border-radius: var(--radius);
padding: 0.6rem 0.85rem;
margin-bottom: 1rem;
font-size: 0.9rem;
}
#warnings p,
.warning-box p {
margin: 0.2rem 0;
}
/* --- connect a fork (generator mode) ------------------------------------ */
/* Dialog chrome (border/shadow/padding/width/backdrop/h2 margin+size) is
shared with #import-dialog/#jsonld-dialog further down. */
#repo-connect-text {
margin: 0 0 0.6rem;
font-size: 0.9rem;
}
#repo-connect-text code {
font-size: 0.85em;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.05rem 0.3rem;
}
#repo-connect-form {
display: flex;
gap: 0.5rem;
}
#repo-connect-input {
flex: 1;
min-width: 0;
min-height: 2.5rem;
padding: 0.45rem 0.65rem;
border: 1px solid var(--border-strong);
border-radius: 8px;
font: inherit;
background: var(--surface);
}
#repo-connect-input:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
#repo-connect-form button {
flex: 0 0 auto;
}
#repo-connect-error {
margin: 0.5rem 0 0;
}
#repo-connect-help {
margin: 0.5rem 0 0;
}
#repo-connect-help a {
color: var(--accent);
font-weight: 500;
}
/* --- mode / profile bar ------------------------------------------------- */
#mode {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: center;
margin-bottom: 1rem;
}
/* :not([hidden]) — a plain `display: flex` here would win over the
`hidden` attribute's UA-stylesheet `display: none`, since author rules
always beat UA defaults regardless of specificity. */
#profile-switch:not([hidden]) {
display: flex;
align-items: center;
gap: 0.5rem;
}
.mode-toggle {
display: inline-flex;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 999px;
padding: 3px;
}
.mode-toggle label {
position: relative;
}
.mode-toggle input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.mode-toggle span {
display: inline-block;
padding: 0.35rem 0.9rem;
border-radius: 999px;
font-size: 0.9rem;
color: var(--muted);
}
.mode-toggle input:checked + span {
background: var(--accent);
color: #fff;
}
.mode-toggle input:focus-visible + span {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Form/Preview switch — narrow viewports only, see "#form-view: two-column
layout" for the wide-breakpoint override that hides this entirely. */
#preview-toggle {
margin: 0 0 0.75rem;
}
.description-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin: 0.4rem 0;
}
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.9rem;
height: 1.9rem;
min-height: 0;
padding: 0;
flex-shrink: 0;
border: 1px solid var(--border-strong);
border-radius: 8px;
background: var(--surface);
color: var(--muted);
}
.icon-button:hover {
border-color: var(--accent);
color: var(--accent);
}
/* --- section nav ---------------------------------------------------------- */
/* Sticks to the top once scrolled past — same visual language as #action-bar
(blurred translucent band) so the two sticky bars read as one system. */
/* Mobile-first: a hamburger toggle opening a dropdown list. Under 40rem
there isn't room for 8 section pills without horizontal scrolling. */
#section-nav {
position: sticky;
top: 0;
z-index: 40;
padding: 0.6rem 0;
margin: 0 0 0.75rem;
background: rgba(255, 255, 255, 0.92);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border);
}
#section-nav-toggle {
min-height: 2rem;
padding: 0.3rem 0.8rem;
font-size: 0.82rem;
font-weight: 500;
border-radius: 999px;
border: 1px solid var(--border-strong);
background: var(--surface);
color: var(--text);
cursor: pointer;
}
#section-nav-toggle:hover {
border-color: var(--accent);
color: var(--accent);
}
/* Shared dropdown panel: the section-nav hamburger list (mobile) and the
"+ New event" menu both toggle-open/outside-click-close the same way
(main.ts's wireDropdown) and share this look. */
.dropdown-panel {
display: none;
flex-direction: column;
gap: 0.2rem;
position: absolute;
left: 0;
margin: 0.5rem 0 0;
padding: 0.4rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
z-index: 50;
}
.dropdown-panel.open {
display: flex;
}
.dropdown-panel button {
min-height: 2.2rem;
padding: 0.4rem 0.7rem;
font-size: 0.85rem;
font-weight: 500;
text-align: left;
white-space: nowrap;
border: none;
border-radius: 8px;
background: none;
color: var(--text);
cursor: pointer;
}
.dropdown-panel button:hover {
background: var(--accent-soft);
color: var(--accent);
}
#section-nav-toggle:focus-visible,
#new-event-toggle:focus-visible,
.dropdown-panel button:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Full-width under the sticky nav bar — the "+ New event" menu stays
content-sized (.dropdown-panel's plain `left: 0`). */
#section-nav-list {
right: 0;
}
@media (min-width: 40rem) {
#section-nav {
display: flex;
justify-content: center;
gap: 0.4rem;
}
#section-nav-toggle {
display: none;
}
#section-nav-list {
display: flex;
position: static;
flex-direction: row;
gap: 0.4rem;
margin: 0;
padding: 0;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
background: none;
border: none;
box-shadow: none;
}
#section-nav-list button {
flex: 0 0 auto;
min-height: 2rem;
padding: 0.3rem 0.8rem;
border: 1px solid var(--border-strong);
border-radius: 999px;
}
#section-nav-list button:hover {
background: none;
border-color: var(--accent);
}
}
/* --- "+ New event" menu ---------------------------------------------------- */
.menu-button:not([hidden]) {
position: relative;
display: inline-flex;
}
/* Visually hidden but still a real, focusable-by-script form control. */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.profile-switch-label {
margin-left: auto;
color: var(--muted);
font-size: 0.9rem;
}
#back-to-list {
margin: 1rem 0;
}
/* --- events list view (repo mode's landing view) ------------------------- */
.events-list-toolbar {
display: flex;
gap: 0.6rem;
margin: 1rem 0;
}
.toolbar-toggle {
display: flex;
align-items: center;
gap: 0.5rem;
}
.toolbar-toggle-label {
color: var(--muted);
font-size: 0.9rem;
white-space: nowrap;
}
#events-search {
flex: 1;
min-width: 12rem;
min-height: 2.5rem;
padding: 0.45rem 0.65rem;
border: 1px solid var(--border-strong);
border-radius: 8px;
font: inherit;
background: var(--surface);
color: inherit;
transition: border-color 0.12s, box-shadow 0.12s;
}
#events-search:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
#events-search:disabled {
background: var(--bg);
color: var(--muted);
}
/* The grid/card rendering itself lives inside the <ote-events> widget's own
shadow root (apps/embed) — this just places it and matches its accent
color to the editor's own palette via the widget's documented --ote-*
custom-property theming hook (see apps/embed/CLAUDE.md). */
#events-widget {
display: block;
margin-top: 1rem;
--ote-accent: var(--accent);
--ote-accent-soft: var(--accent-soft);
}
/* --- form sections ---------------------------------------------------------- */
#event-form details {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 0.25rem 1rem;
margin-bottom: 0.9rem;
}
#event-form summary {
display: flex;
align-items: center;
gap: 0.55rem;
font-weight: 600;
font-size: 0.95rem;
cursor: pointer;
padding: 0.7rem 0;
list-style: none; /* the native marker misaligns; we draw our own */
user-select: none;
}
#event-form summary::-webkit-details-marker {
display: none;
}
#event-form summary::before {
content: "";
flex: none;
width: 0.42rem;
height: 0.42rem;
border-right: 2px solid var(--muted);
border-bottom: 2px solid var(--muted);
transform: rotate(-45deg); /* ▸ closed */
transition: transform 0.15s;
}
#event-form details[open] summary::before {
transform: rotate(45deg); /* ▾ open */
}
#event-form details[open] summary {
border-bottom: 1px solid var(--border);
margin-bottom: 0.35rem;
}
/* --- fields ---------------------------------------------------------------- */
.field {
margin: 0.85rem 0;
}
.field label {
display: block;
font-weight: 500;
font-size: 0.9rem;
margin-bottom: 0.25rem;
}
.field .req {
color: var(--error);
}
.field input[type="text"],
.field input[type="url"],
.field input[type="date"],
.field input[type="time"],
.field input[type="datetime-local"],
.field textarea,
.field select {
width: 100%;
min-height: 2.5rem;
padding: 0.45rem 0.65rem;
border: 1px solid var(--border-strong);
border-radius: 8px;
font: inherit;
background: var(--surface);
color: inherit;
transition: border-color 0.12s, box-shadow 0.12s;
}
/* Custom caret, vertically centered — the native one drifts with our
padding/min-height. Shared by every select in the app. */
select {
appearance: none;
-webkit-appearance: none;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1.5 6 6.5 11 1.5" fill="none" stroke="%23626c77" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
background-repeat: no-repeat;
background-position: right 0.7rem center;
padding-right: 2.1rem;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Read-only until its own "edit" toggle unlocks it — geo Lat/Lon (text) and
the Metadata Slug/Id fields (Id is a "url" input) all use this. Reads as
plain text, not an editable box, until then. Left/right padding drops to
0 so the value lines up with its own label above it instead of looking
indented inside an empty box. */
.field input[type="text"][readonly],
.field input[type="url"][readonly] {
border-color: transparent;
background: none;
padding-left: 0;
padding-right: 0;
cursor: default;
}
.field input[type="text"][readonly]:focus-visible,
.field input[type="url"][readonly]:focus-visible {
border-color: transparent;
box-shadow: none;
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.field input[type="checkbox"] {
width: 1.15rem;
height: 1.15rem;
accent-color: var(--accent);
}
.field .note {
color: var(--muted);
font-size: 0.82rem;
margin: 0.25rem 0 0;
}
.field-error {
color: var(--error);
font-size: 0.82rem;
margin: 0.25rem 0 0;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
border-color: var(--error);
}
.field-error:not(:empty) {
background: var(--error-bg);
border-radius: 6px;
padding: 0.3rem 0.5rem;
}
.field.pair:not([hidden]) {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
margin: 0;
}
.field.pair > div {
flex: 1;
}
/* Sub-field width hints (`size-s/m/l`, set per control in FIELD_SPECS/
REPEATER_SPECS) — a Price or Currency shouldn't claim as much row width
as a Name or URL just because they're neighbors. Unset = default (m). */
.field.pair > div.size-s {
flex: 0 1 90px;
}
.field.pair > div.size-l {
flex: 2 1 220px;
}
.field.pair > div.size-full {
flex: 1 1 100%;
}
/* Checkboxes (Covers travel/accommodation…) size to their own label, never
stretched or squeezed — a shrunk column is what makes a short label like
"Covers travel" wrap into two lines for no reason. */
.field.pair > div:has(> input[type="checkbox"]) {
flex: 0 0 auto;
}
.field.pair > div:has(> input[type="checkbox"]) label {
white-space: nowrap;
}
/* Every other field stacks its label above the input — wrong for a single
checkbox, which reads left-to-right as "[x] Label" on one line. Matches
form.ts appending the checkbox before its label for kind: "checkbox"
(renderControl, renderRepeaterItemControl) and the bare "All-day event"
field (renderField's isBareCheckbox branch). */
.field:has(> input[type="checkbox"]),
.field div:has(> input[type="checkbox"]) {
display: flex;
align-items: center;
gap: 0.5rem;
}
.field:has(> input[type="checkbox"]) > label,
.field div:has(> input[type="checkbox"]) label {
display: inline;
margin-bottom: 0;
}
.field.pair label {
font-weight: 400;
font-size: 0.8rem;
color: var(--muted);
}
/* Map position: the hint, the pin's live coordinates and the "Edit
manually" toggle collapsed onto one line (ui/form.ts's fieldId ===
"geo" branch) instead of a separate labeled Latitude/Longitude row. */
.geo-summary {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.15rem 0.35rem;
}
.geo-coords {
display: inline-flex;
align-items: baseline;
gap: 0.2rem;
}
/* Overrides the general `.field input[type="text"]` width:100% — these
sit inline in a running line of text, not a block field of their own.
No [readonly] guard: stays this compact whether or not "Edit manually"
has unlocked them. */
.geo-summary .geo-coords input[type="text"] {
width: 6.5rem;
min-height: 1.6rem;
font: inherit;
font-size: 0.82rem;
}
.geo-summary .link-button {
margin-top: 0;
}
/* Venue: the text input and its "Find on map" button on one line
(ui/form.ts's renderOne, id === "venue"). align-items: stretch (rather
than center) plus .icon-button's own height: auto below make the
button match the input's actual rendered height exactly, instead of
guessing a fixed height that has to be kept in sync by hand. */
.venue-search-row {
display: flex;
align-items: stretch;
gap: 0.4rem;
}
.venue-search-row input {
flex: 1;
}
.venue-search-row .icon-button {
height: auto;
width: 2.6rem;
}
.venue-geocode-hint {
display: block;
margin-top: 0.3rem;
}
/* --- Google-Calendar-style single-line date/time — shared by the main
form's merged Start+End row and each recurrence row's date/time line;
see renderStartEndRow / renderRow's datetimeRow in ui/form.ts. ------- */
.datetime-row {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 0.4rem;
}
.datetime-row > div {
flex: 1 1 130px;
}
.datetime-row > .field {
margin: 0;
}
.datetime-to {
flex: 0 0 auto;
align-self: center;
color: var(--muted);
font-size: 0.85rem;
padding-bottom: 0.5rem;
}
/* Recurrence rows sit inside a .repeater-item, much narrower than the main
form's own Start+End row — 130px per field (4-5 of them) doesn't fit on
one line there. Tighter, scoped sizing: dates keep enough room for
"dd/mm/yyyy", times (shorter content, and there are two of them) get
less. flex-grow: 0 (unlike the main form's row) — letting all 5 items
grow to fill the row's extra width was exactly what pushed the 5th one
onto its own line; better to leave unused space at the row's end than
to inflate 4 fields past what they need and starve the 5th. */
.recurrence-rows .datetime-row > div {
flex: 0 1 130px;
}
.recurrence-rows .datetime-row > div.dt-time {
flex: 0 1 90px;
}
.info-wrap {
position: relative;
display: inline-block;
}
.info {
border: none;
background: none;
padding: 0;
font: inherit;
cursor: pointer;
color: var(--accent);
font-weight: 400;
/* The glyph itself stays small; the tappable area doesn't (WCAG 2.5.8). */
min-width: 1.5rem;
min-height: 1.5rem;
}
.info[aria-expanded="true"] {
color: var(--accent-hover);
}
.info-popover {
position: absolute;
z-index: 20;
top: 100%;
left: 0;
margin-top: 0.3rem;
width: max-content;
max-width: 20rem;
padding: 0.55rem 0.7rem;
border: 1px solid var(--border-strong);
border-radius: 8px;
background: var(--surface);
box-shadow: var(--shadow);
color: var(--text);
font-size: 0.82rem;
font-weight: 400;
line-height: 1.4;
}
/* --- chips (languages, tags) ------------------------------------------------ */
.chips {
position: relative;
}
.chips-list {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
align-items: center;
min-height: 2.5rem;
padding: 0.3rem 0.45rem;
border: 1px solid var(--border-strong);
border-radius: 8px;
background: var(--surface);
}
.chips-list:focus-within {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.chip {
display: inline-flex;
align-items: center;
gap: 0.3rem;
background: var(--accent-soft);
color: var(--accent);
border-radius: 999px;
padding: 0.15rem 0.3rem 0.15rem 0.6rem;
font-size: 0.82rem;
font-weight: 500;
}
.chip-remove {
border: none;
background: none;
color: var(--accent);
font-size: 1rem;
line-height: 1;
/* 24x24 CSS px minimum touch target (WCAG 2.2 SC 2.5.8) — the glyph stays
small, the hit area doesn't. Compact by design: it sits inline in a
pill, unlike .repeater-remove which has room to go bigger. */
min-width: 1.5rem;
min-height: 1.5rem;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border-radius: 999px;
cursor: pointer;
}
.chip-remove:hover {
background: rgba(53, 86, 200, 0.15);
}
.chips-input {
flex: 1;
min-width: 8rem;
border: none !important;
box-shadow: none !important;
min-height: 1.8rem !important;
padding: 0.1rem !important;
}
.chips-input:focus-visible {
outline: none;
}
.chips-suggest {
position: absolute;
z-index: 500;
left: 0;
right: 0;
margin: 0.25rem 0 0;
padding: 0.25rem;
list-style: none;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: var(--shadow);
max-height: 14rem;
overflow-y: auto;
}
.chips-suggest button {
display: block;
width: 100%;
text-align: left;
border: none;
background: none;
padding: 0.45rem 0.6rem;
border-radius: 6px;
font-size: 0.9rem;
cursor: pointer;
}
.chips-suggest button:hover,
.chips-suggest li.active button {
background: var(--accent-soft);
}
/* Category shown after a tag suggestion's label, muted and pushed right. */
.chips-cat {
margin-left: 0.75rem;
float: right;
color: var(--muted);
font-size: 0.8rem;
font-weight: 400;
}
.chips-explore {
display: block;
}
/* --- tag explorer dialog ----------------------------------------------------- */
.tag-explorer {
position: relative;
border: none;
border-radius: var(--radius);
box-shadow: 0 12px 40px rgba(28, 33, 40, 0.25);
padding: 1.25rem;
width: min(40rem, calc(100vw - 2rem));
max-height: min(34rem, calc(100vh - 4rem));
}
.tag-explorer::backdrop {
background: rgba(28, 33, 40, 0.45);
}
.tag-explorer h2 {
margin: 0 0 0.75rem;
font-size: 1.1rem;
}
/* Shared by every dialog's corner close button (tag explorer, image lightbox). */
.dialog-close {
position: absolute;
top: 0.75rem;
right: 0.75rem;
min-width: 2rem;
min-height: 2rem;
border: none;
background: none;
color: var(--muted);
font-size: 1.2rem;
line-height: 1;
border-radius: 999px;
cursor: pointer;
}
.dialog-close:hover {
background: var(--error-bg);
color: var(--error);
}
.tag-explorer-body {
overflow-y: auto;