-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
1750 lines (1717 loc) · 71.4 KB
/
Copy pathstyles.css
File metadata and controls
1750 lines (1717 loc) · 71.4 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
:root {
color-scheme: light;
/* Type is variable-driven so the card build can swap the editorial
serif/mono pairing for the Home Assistant system font. */
--av-font-display: ui-serif, "Iowan Old Style", "Apple Garamond", "Bookman Old Style", Georgia, serif;
--av-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
--paper: #fcfcfb; /* near-pure white, faintest warm undertone */
--paper-2: #f3f2ee; /* recessed track */
--paper-3: #e8e6df; /* placeholder fill */
--ink: #1a1612;
--ink-2: #4a3f31;
--ink-soft: #908576;
--accent: #4a3f31; /* warm dark grey - matches ink-2, no longer red */
--accent-2: #1a1612; /* near-black ink - same hue as the title text */
--hairline: rgba(26,22,18,0.14); /* faint divider lines + chart gridlines */
--pill: #fcfcfb; /* active-toggle sliding pill */
/* Depth shadow recipes - replace flat 1px borders */
--edge: inset 0 0 0 1px rgba(255,255,255,0.55), 0 0 0 1px rgba(26,22,18,0.04);
--edge-lg: inset 0 0 0 1px rgba(255,255,255,0.6), 0 0 0 1px rgba(26,22,18,0.06), 0 8px 28px rgba(26,22,18,0.06);
--recess: inset 0 1px 2px rgba(26,22,18,0.06), inset 0 0 0 1px rgba(26,22,18,0.04);
--raised: inset 0 0 0 1px rgba(255,255,255,0.8), 0 0 0 1px rgba(26,22,18,0.05), 0 1px 2px rgba(26,22,18,0.07);
}
/* ---- Charcoal dark theme. Set via data-theme="dark" on <html> (an
inline script in index.html applies the saved choice before paint;
the switcher lives in Settings). The whole UI is variable-driven, so
flipping ink<->paper inverts cleanly: text reads light, the stats
squares become light marks on dark, the collage cutouts (transparent
PNGs) sit on the charcoal directly. Shadow recipes are re-cut for a
dark surface (faint light edges, deeper drop shadows). ---- */
:root[data-theme="dark"] {
color-scheme: dark;
--paper: #1a1a1a; /* neutral charcoal page bg (no blue tint) */
--paper-2: #242424; /* recessed track */
--paper-3: #303030; /* placeholder fill */
--ink: #ece8e1; /* warm off-white text / marks */
--ink-2: #b7afa2; /* secondary text */
--ink-soft: #837c70; /* muted text */
--accent: #d8d2c6; /* light warm - pills read light-on-dark */
--accent-2: #ece8e1;
--hairline: rgba(236,232,225,0.20); /* faint light divider on charcoal */
--pill: #404040; /* raised, clearly lighter than the track (neutral) */
--edge: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 0 1px rgba(0,0,0,0.4);
--edge-lg: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 0 1px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.5);
--recess: inset 0 1px 2px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.04);
--raised: inset 0 0 0 1px rgba(255,255,255,0.07), 0 0 0 1px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.5);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--paper); color: var(--ink); }
body {
font-family: var(--av-font-display);
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
.mono { font-family: var(--av-font-mono); letter-spacing: 0.02em; }
/* ============ Stage / views ============
Stage is a flex column: a static title block sits on top, the views
slider fills the remaining height. The title NEVER moves when the
view changes - only its text fades when the new view's title differs
from the current one. */
.stage {
position: fixed; inset: 0; overflow: hidden;
display: flex; flex-direction: column;
}
.static-head {
flex: 0 0 auto;
padding: 84px 32px 22px;
text-align: center; position: relative; z-index: 5;
}
.static-head .pre {
display: inline-block;
background: none; border: 0; padding: 0;
font: italic 400 clamp(13px, 1.4vw, 18px)/1 var(--av-font-display);
color: var(--ink-2); letter-spacing: 0.06em; margin-bottom: 6px;
cursor: pointer; transition: color 140ms ease;
}
.static-head .pre:hover {
color: var(--ink);
text-decoration: underline; text-underline-offset: 3px;
text-decoration-thickness: 1px;
}
.static-head h1 {
margin: 0; padding: 0;
font: 700 clamp(24px, 3.2vw, 40px)/1 var(--av-font-display);
letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase;
font-style: normal;
transition: opacity 240ms cubic-bezier(.7,.05,.2,1);
}
.static-head.swap-out h1 { opacity: 0; }
/* Stats + Atlas hide the shared title so their content uses the full
height (the collage keeps it). */
body.av-view-stats .static-head, body.av-view-atlas .static-head { display: none; }
@media (max-width: 700px) {
.static-head { padding: 96px 18px 22px; }
}
.views {
flex: 1 1 auto; min-height: 0;
position: relative; display: flex;
transition: transform 480ms cubic-bezier(.7,.05,.2,1);
}
.view { flex: 0 0 100%; height: 100%; overflow: auto; padding: 8px 56px 132px; position: relative; }
/* The collage view fits the viewport (no scroll). Atlas keeps normal
scroll; stats scrolls when its grid outgrows the box (overridden at
the .stats-grid rules below). */
.view#v0, .view#v1 { overflow: hidden; padding: 8px 32px 88px; }
.view#v0 { display: flex; }
.view#v1 { display: flex; flex-direction: column; }
@media (max-width: 700px) { .view { padding: 8px 18px 132px; } .view#v0, .view#v1 { padding: 8px 16px 88px; } }
/* ============ Top bar - window picker (left) + menu button (right). ============
Visible on every view; the picker is the universal time-window control. */
.top {
position: fixed; top: 22px; left: 0; right: 0;
display: flex; justify-content: space-between; align-items: center;
padding: 0 28px; z-index: 30; pointer-events: none;
}
.top > * { pointer-events: auto; }
.top .window-pick {
display: inline-flex; gap: 0; padding: 4px;
background: var(--paper-2); border-radius: 999px;
box-shadow: var(--recess);
position: relative;
}
.top .window-pick button {
background: transparent; border: 0; color: var(--ink-soft);
font: 10px/1 var(--av-font-mono); letter-spacing: 0.18em;
padding: 9px 16px; border-radius: 999px; cursor: pointer; text-transform: uppercase;
transition: color 200ms ease;
position: relative; z-index: 1;
}
.top .window-pick button:hover { color: var(--ink); }
.top .window-pick button[aria-current="true"] { color: var(--ink); }
.menu-btn {
background: var(--paper); border: 0; color: var(--ink);
font: 11px/1 var(--av-font-mono); padding: 9px 14px 8px;
border-radius: 999px; cursor: pointer; letter-spacing: 0.18em; text-transform: lowercase;
box-shadow: var(--raised);
transition: transform 160ms ease;
}
.menu-btn:hover { transform: translateY(-1px); }
.menu-btn:active { transform: translateY(0); }
/* Compact top bar on mobile - the time-window pill goes from
spacious to thumb-tight without losing legibility. */
@media (max-width: 700px) {
.top { top: 12px; padding: 0 12px; }
.top .window-pick { padding: 3px; }
.top .window-pick button {
font-size: 8.5px; padding: 6px 10px; letter-spacing: 0.12em;
}
.menu-btn { font-size: 9px; padding: 6px 11px 5px; letter-spacing: 0.14em; }
.return-to-atlas { top: 10px; left: 10px; padding: 5px 10px; font-size: 8.5px; }
}
@media (max-width: 420px) {
.top .window-pick button { font-size: 8px; padding: 5px 7px; letter-spacing: 0.08em; }
}
/* ============ Bottom slider - recessed track, raised active pill ============ */
.slider {
position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
display: flex; gap: 0; padding: 4px; z-index: 30;
background: var(--paper-2); border-radius: 999px;
box-shadow: var(--recess);
position: fixed; /* re-emit for the pill positioning */
}
.slider button {
background: transparent; border: 0; color: var(--ink-soft);
font: 10px/1 var(--av-font-mono); letter-spacing: 0.2em;
padding: 11px 24px; border-radius: 999px; cursor: pointer; text-transform: uppercase;
transition: color 200ms ease;
position: relative; z-index: 1;
}
.slider button:hover { color: var(--ink); }
.slider button[aria-current="true"] { color: var(--ink); }
/* Shared sliding pill - JS animates transform and width to the
active button's position. The pill is the only element with the
raised-paper look; buttons just toggle their text colour. */
.seg-pill {
position: absolute; top: 4px; bottom: 4px; left: 0;
background: var(--pill); border-radius: 999px;
box-shadow: var(--raised);
transition: transform 320ms cubic-bezier(.7,.05,.2,1), width 320ms cubic-bezier(.7,.05,.2,1);
will-change: transform, width;
pointer-events: none; z-index: 0;
}
/* ============ Menu dropdown ============ */
#menu-dd {
position: fixed; top: 58px; right: 28px; z-index: 25;
width: 360px; max-width: calc(100vw - 24px);
max-height: calc(100vh - 80px); overflow: auto;
background: var(--paper); border-radius: 12px;
box-shadow: var(--edge-lg);
padding: 14px; opacity: 0; transform: translateY(-6px);
pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
#menu-dd.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lock-row {
display: flex; gap: 6px; align-items: stretch;
background: var(--paper-2); border-radius: 8px;
box-shadow: var(--recess);
padding: 4px;
}
.lock-row input {
flex: 1; background: transparent; border: 0; outline: 0;
color: var(--ink); padding: 8px 10px;
font: 13px var(--av-font-mono);
}
.lock-row input::placeholder { color: var(--ink-soft); }
.lock-row button {
background: var(--paper); border: 0; color: var(--ink);
width: 32px; padding: 0; border-radius: 6px; cursor: pointer;
font: 14px/1 var(--av-font-mono);
box-shadow: var(--raised);
display: flex; align-items: center; justify-content: center;
}
.lock-row button:hover { color: var(--accent); }
.lock-hint {
margin: 8px 4px 0; font: 10px var(--av-font-mono);
color: var(--ink-soft); letter-spacing: 0.04em;
}
.lock-err { color: var(--accent); }
/* Tiny "built by teddy" attribution - appears under the lock-screen
password field AND at the foot of the about-card. Same monospace
micro-type used by .lock-hint so the two contexts read consistent. */
.built-by {
margin: 14px 4px 0;
font: 10px var(--av-font-mono);
color: var(--ink-soft);
letter-spacing: 0.04em;
}
.built-by a {
color: inherit;
text-decoration: underline;
text-underline-offset: 2px;
}
.built-by a:hover { color: var(--ink); }
.about-card .built-by { margin-top: 18px; }
.menu-items { padding: 4px 4px; display: none; }
.menu-items.show { display: block; }
.menu-items h3 {
font: 9px/1 var(--av-font-mono); letter-spacing: 0.24em;
color: var(--ink-soft); text-transform: uppercase; margin: 12px 4px 4px;
}
.menu-items a {
display: block; padding: 9px 8px; color: var(--ink); text-decoration: none;
font: 14px var(--av-font-display); border-radius: 6px;
transition: background 120ms ease;
}
.menu-items a:hover { background: var(--paper-2); color: var(--accent); }
/* ============ Settings cards inside the drawer ============
Form controls match the time-picker's design language: recessed
track + raised paper element. Toggles, sliders, and segmented
pickers share the same depth-shadow recipe. */
.menu-section {
margin-top: 14px; padding-top: 12px;
border-top: 1px solid rgba(26,22,18,0.07);
}
.menu-section:first-of-type { margin-top: 6px; border-top: 0; padding-top: 0; }
.menu-section h3 {
font: 700 9px var(--av-font-mono); letter-spacing: 0.20em;
color: var(--ink); text-transform: uppercase;
margin: 0 0 8px 4px;
}
/* Collapsible section - header is a button row with caret on the right.
Default state is collapsed so accidental clicks don't touch settings. */
.menu-section.collapsible > .section-header {
display: flex; align-items: center; justify-content: space-between;
cursor: pointer; user-select: none;
padding: 4px 6px 6px 0;
margin: 0 0 4px 0;
}
.menu-section.collapsible > .section-header h3 { margin: 0; }
.menu-section.collapsible > .section-header .caret {
width: 10px; height: 10px; transition: transform 200ms cubic-bezier(.7,.05,.2,1);
color: var(--ink-soft);
}
.menu-section.collapsible[data-open="true"] > .section-header .caret { transform: rotate(90deg); }
.menu-section.collapsible > .section-body {
max-height: 0; overflow: hidden;
transition: max-height 280ms cubic-bezier(.7,.05,.2,1);
}
.menu-section.collapsible[data-open="true"] > .section-body {
max-height: 800px;
}
.menu-row {
display: grid; grid-template-columns: 1fr auto; gap: 12px;
align-items: center;
padding: 8px 6px 8px 10px;
border-radius: 6px;
}
.menu-row + .menu-row { box-shadow: inset 0 1px 0 rgba(26,22,18,0.06); }
.menu-row .label {
font: 12.5px var(--av-font-display); color: var(--ink);
}
.hint {
display: block;
font: 9px var(--av-font-mono);
color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 1px;
}
/* Toggle switch (raised pill that slides) */
.switch {
position: relative; width: 38px; height: 20px;
background: var(--paper-2); border-radius: 999px;
box-shadow: var(--recess);
cursor: pointer;
border: 0; padding: 0;
}
.switch::after {
content: ''; position: absolute; top: 2px; left: 2px;
width: 16px; height: 16px;
background: var(--pill); border-radius: 999px;
box-shadow: var(--raised);
transition: transform 220ms cubic-bezier(.7,.05,.2,1), background 200ms ease;
}
.switch[aria-checked="true"] {
background: var(--ink-2);
}
.switch[aria-checked="true"]::after {
transform: translateX(18px);
background: var(--pill);
}
/* Slider - title row (label + value badge with breathing room) and
a track row underneath. Value sits at the far right with a wide
gap so it never crowds the label text. */
.slider-row {
display: block;
padding: 8px 6px 10px 10px;
}
.slider-row .head {
display: flex; align-items: baseline; gap: 24px;
margin-bottom: 6px;
}
.slider-row .head .label-block { flex: 1; min-width: 0; }
.slider-row .label {
font: 12.5px var(--av-font-display); color: var(--ink);
}
.slider-row .value {
flex: 0 0 auto;
font: 11px var(--av-font-mono);
color: var(--ink); font-variant-numeric: tabular-nums;
background: var(--paper-2); padding: 3px 10px; border-radius: 4px;
box-shadow: var(--recess);
min-width: 48px; text-align: center;
}
.slider-row .slider-track {
margin-top: 2px;
}
.slider-track input[type="range"] {
-webkit-appearance: none; appearance: none;
width: 100%; height: 18px; background: transparent; cursor: pointer;
}
.slider-track input[type="range"]::-webkit-slider-runnable-track {
height: 4px; background: var(--paper-2); border-radius: 999px;
box-shadow: var(--recess);
}
.slider-track input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; appearance: none;
width: 16px; height: 16px; margin-top: -6px;
background: var(--paper); border-radius: 999px;
box-shadow: var(--raised);
cursor: pointer;
}
.slider-track input[type="range"]::-moz-range-track {
height: 4px; background: var(--paper-2); border-radius: 999px;
box-shadow: var(--recess);
}
.slider-track input[type="range"]::-moz-range-thumb {
width: 16px; height: 16px;
background: var(--paper); border-radius: 999px;
box-shadow: var(--raised); border: 0;
cursor: pointer;
}
/* Segmented picker (same pill-on-recess pattern as the time picker) */
.seg {
display: inline-flex; padding: 4px;
background: var(--paper-2); border-radius: 999px;
box-shadow: var(--recess);
position: relative;
}
.seg button {
background: transparent; border: 0; color: var(--ink-soft);
font: 9.5px var(--av-font-mono);
letter-spacing: 0.16em; text-transform: uppercase;
padding: 6px 12px; border-radius: 999px; cursor: pointer;
position: relative; z-index: 1;
transition: color 200ms ease;
}
.seg button[aria-current="true"] {
color: var(--ink);
background: var(--pill);
box-shadow: var(--raised);
}
/* Inline live-audio player - sits at the top of the unlocked drawer.
A single play/stop button with a quiet running-indicator dot. */
.live-audio {
display: flex; align-items: center; gap: 12px;
padding: 10px 12px; margin: 0 0 6px;
background: var(--paper-2); border-radius: 8px;
box-shadow: var(--recess);
}
.live-audio .pulse {
width: 8px; height: 8px; border-radius: 50%;
background: var(--ink-soft); flex-shrink: 0;
transition: background 200ms ease;
}
.live-audio[data-on="true"] .pulse {
background: #c44a3b;
animation: pulsate 1.6s ease-in-out infinite;
}
@keyframes pulsate {
0%, 100% { opacity: 0.4; transform: scale(1); }
50% { opacity: 1; transform: scale(1.25); }
}
.live-audio .label {
flex: 1; font: 12.5px var(--av-font-display); color: var(--ink);
}
.live-audio .label .hint {
font: 9px var(--av-font-mono); color: var(--ink-soft);
letter-spacing: 0.04em;
}
.live-audio button {
background: var(--paper); border: 0; color: var(--ink);
padding: 6px 12px; border-radius: 4px;
font: 9.5px var(--av-font-mono);
letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
box-shadow: var(--raised);
display: inline-flex; align-items: center; gap: 6px;
}
.live-audio button svg { width: 9px; height: 9px; }
.live-audio button + button { margin-left: 4px; }
/* Live spectrogram - hidden until the user clicks LISTEN. We
collapse via max-height (not display:none) so the canvas inside
keeps its layout dimensions and paints correctly on expand. */
.live-spectro {
width: 100%; height: 0;
background: var(--paper-2); border-radius: 6px;
margin: 0; overflow: hidden;
box-shadow: var(--recess);
transition: height 240ms cubic-bezier(.7,.05,.2,1), margin 240ms ease;
}
.live-audio[data-on="true"] + .live-spectro {
height: 70px; margin: 0 0 8px;
}
.live-status {
font: 9.5px var(--av-font-mono); color: var(--ink-soft);
letter-spacing: 0.04em; text-transform: lowercase;
margin: -4px 0 6px 0; padding: 0 4px;
min-height: 13px;
}
.live-status.err { color: #a83a2d; }
.menu-links a .l-hint {
display: block; font: 8.5px var(--av-font-display); text-transform: none;
letter-spacing: 0; color: var(--ink-soft); margin-top: 2px;
}
.menu-links a.full { grid-column: 1 / -1; }
/* External BirdNET pages - small grid of cards */
.menu-links {
display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
margin: 4px 0 2px;
}
.menu-links a {
display: flex; align-items: center; justify-content: center;
padding: 9px 10px;
background: var(--paper-2);
color: var(--ink); text-decoration: none;
font: 10.5px var(--av-font-mono);
letter-spacing: 0.10em; text-transform: lowercase;
border-radius: 6px;
box-shadow: var(--raised);
transition: transform 160ms ease, color 160ms ease;
}
.menu-links a:hover { transform: translateY(-1px); color: var(--ink); background: var(--paper); }
.menu-save-row {
display: flex; gap: 8px; align-items: center; justify-content: flex-end;
margin-top: 10px; padding: 0 4px;
}
.menu-save-row .save-state {
flex: 1; font: 9px var(--av-font-mono);
color: var(--ink-soft); letter-spacing: 0.04em;
}
.menu-save-row .save-state.ok { color: #2d5d3a; }
.menu-save-row .save-state.err { color: var(--accent); }
.menu-save-row button {
background: var(--ink); color: var(--paper); border: 0;
padding: 7px 14px; border-radius: 6px;
font: 10px var(--av-font-mono); letter-spacing: 0.14em;
text-transform: uppercase; cursor: pointer;
box-shadow: var(--raised);
}
.menu-save-row button:disabled { opacity: 0.4; cursor: default; }
/* ============ View 1 - Collage (Galliformes-style poster) ============
Viewport-fit, no scroll. The shared static-head provides the title;
this view's content is just the cluster of bird cutouts which fills
the remaining viewport height. */
.gcollage {
/* No max-width: the packing area spans the full viewport so the flock
can use the whole screen on wide laptops/monitors. */
flex: 1 1 auto; width: 100%; margin: 0 auto;
position: relative; min-height: 0;
}
/* Centre-out bloom: each tile fades + scales in; JS staggers the
animation-delay by distance from the cluster centre. backwards
fill-mode holds the hidden start state through the delay, and we keep
no forwards transform so the hover scale still works afterward. */
@keyframes gtile-in {
from { opacity: 0; transform: scale(0.82); }
to { opacity: 1; transform: scale(1); }
}
.gtile.entering {
animation: gtile-in 420ms cubic-bezier(.2,.7,.3,1) backwards;
}
@media (prefers-reduced-motion: reduce) {
.gtile.entering { animation: none; }
}
/* Atlas: cards rise + fade in, row by row (JS staggers by row). */
@keyframes bird-card-in {
from { opacity: 0; transform: translateY(16px) scale(0.96); }
to { opacity: 1; transform: none; }
}
.bird-card.entering { animation: bird-card-in 480ms cubic-bezier(.2,.7,.3,1) backwards; }
/* Stats: the heatmap populates top-to-bottom - the hour header leads,
species rows stagger down the list; the side panel fades in just
behind. Opacity only (sticky cells reposition themselves, so
animating transform here would fight their layout). */
@keyframes stats-fade-in { from { opacity: 0; } to { opacity: 1; } }
.stats-hm-head.entering, .stats-hm-row.entering,
.stats-side h3.entering, .stats-side small.entering, .stats-side li.entering {
animation: stats-fade-in 340ms ease backwards;
}
@media (prefers-reduced-motion: reduce) {
.bird-card.entering, .stats-hm-head.entering, .stats-hm-row.entering,
.stats-side h3.entering, .stats-side small.entering, .stats-side li.entering { animation: none; }
}
.gtile {
position: absolute;
background: transparent; border: 0; padding: 0; margin: 0;
overflow: visible; /* let drop-shadow extend past the bbox */
/* transform stays quick for hover; the layout box glides so a
repack (new bird, count change, resize) reads as the flock
settling rather than a redraw. */
transition: transform 130ms ease,
left 760ms cubic-bezier(.3, 0, .2, 1),
top 760ms cubic-bezier(.3, 0, .2, 1),
width 760ms cubic-bezier(.3, 0, .2, 1),
height 760ms cubic-bezier(.3, 0, .2, 1);
/* Events are handled at the .collage level via alpha-mask
hit-testing - the tile rectangles must not intercept them. */
pointer-events: none;
}
/* Hover state is driven by JS alpha-mask hit-testing (.is-hover),
NOT the CSS :hover pseudo - the rectangular tile bounding boxes
overlap, so :hover would light up the wrong bird. .is-hover only
ever sits on the one tile whose silhouette is actually under the
cursor. */
.gtile.is-hover { transform: scale(1.04); z-index: 3; }
/* A bird leaving the window fades + shrinks away; renderCollage
removes the node when the exit finishes. */
.gtile.leaving {
opacity: 0; transform: scale(.85);
transition: opacity 520ms ease, transform 520ms ease;
}
.gtile img {
width: 100%; height: 100%; object-fit: contain; display: block;
/* Cutouts arrive as alpha-bbox-cropped transparent-bg PNGs, so
object-fit: contain leaves no whitespace inside the tile - the
bird touches all four sides. Soft drop shadow keeps it readable
on paper. */
filter: drop-shadow(0 2px 6px rgba(26,22,18,0.10));
transition: filter 130ms ease;
}
.gtile.is-hover img {
filter: drop-shadow(0 3px 10px rgba(26,22,18,0.26)) saturate(1.1);
}
/* Hover pill - surfaces the windowed count for the bird under the
cursor. Confirms (Anna's-hummingbird-is-#1 paranoia) that the
collage scaling reflects the selected window, not all-time. */
/* JS anchors the pill to the hovered bird (left/top set per-hover) and
keeps it clear of the bottom switcher, so it no longer hides behind
it. translateX(-50%) centres it on the supplied point; z-index sits
above the slider (30) as a backstop for any residual overlap. */
.collage-tip {
position: absolute; left: 0; top: 0;
transform: translate(0, 0) translateX(-50%);
padding: 6px 14px;
background: var(--paper);
border-radius: 999px;
box-shadow: 0 6px 18px rgba(26,22,18,0.12),
inset 0 0 0 1px rgba(255,255,255,0.6);
font: italic 13px/1.3 var(--av-font-display);
color: var(--ink);
letter-spacing: 0.02em;
opacity: 0; pointer-events: none;
transition: opacity 150ms ease,
transform 200ms cubic-bezier(.3, 0, .2, 1);
white-space: nowrap;
z-index: 31;
}
.collage-tip[aria-hidden="false"] { opacity: 1; }
.collage-tip .ct-name { font-style: normal; font-weight: 600; }
.collage-tip .ct-n { font-style: normal; font-weight: 700; }
.collage-tip .ct-w { color: var(--ink-soft); }
.empty {
color: var(--ink-soft); font: 10px var(--av-font-mono);
padding: 120px 0; text-align: center; letter-spacing: 0.18em;
text-transform: uppercase;
}
/* Page header is now shared at .stage > .static-head - see top of CSS. */
/* Stats grid: the activity heatmap on the LEFT, text sections on the
RIGHT. Each text section is a list with subtle separators. The
heatmap scrolls within its panel; the view itself can also scroll
if the whole grid outgrows the viewport. */
.stats-grid {
flex: 1 1 auto; min-height: 0;
display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px;
max-width: 1400px; margin: 0 auto; width: 100%;
align-items: stretch;
}
/* Anything that doesn't fit (short desktop window, stacked mobile
layout) scrolls instead of clipping. */
.view#v1 { overflow-y: auto; overflow-x: hidden; }
@media (max-width: 900px) {
/* Stacked single column: take the content's natural (tall) height instead
of shrinking to the view (flex: 1 1 auto + min-height: 0 would let the
grid collapse, clipping the heatmap), so #v1 actually scrolls on phones
and portrait displays. */
.stats-grid { grid-template-columns: 1fr; gap: 40px; flex: 0 0 auto; min-height: 0; }
/* Stacked order: tables first, the heatmap underneath, and a buffer
below it so its bottom row scrolls clear of the floating view
switcher. */
.stats-side { order: 1; }
/* Full-height heatmap (no inner scroll) so the whole view is ONE scroll on
a phone, not a nested one. Selector outranks the base max-height rule
that follows it in source order. */
.view#v1 .stats-timeline { order: 2; margin-bottom: 64px; max-height: none; }
}
/* Desktop two-column: size the grid to the side panel's content height
(the heatmap pane stretches to match it, scrolling internally) and
float it in the centre of the view. */
@media (min-width: 901px) {
.stats-grid { flex: 0 1 auto; margin: auto; }
}
/* Activity heatmap: one row per species (most-heard first), one cell
per hour of day, BirdNET-Go dashboard style. Cell tint deepens with
detection count - mixed from paper toward ink so both themes work -
and the count prints inside. The hour header sticks to the top of
the scroll; species names stick to the left edge when the plot
scrolls sideways on phones. */
.stats-timeline {
position: relative;
flex: 1 1 auto; min-height: 120px;
max-height: min(88vh, 1600px);
overflow: auto; -webkit-overflow-scrolling: touch;
}
.stats-hm {
--hm-name: 200px;
display: flex; flex-direction: column;
min-width: 100%;
}
.stats-hm-head, .stats-hm-row {
display: grid;
grid-template-columns: var(--hm-name) repeat(24, minmax(22px, 1fr)) 48px;
gap: 3px;
padding: 1px 0;
}
.stats-hm-head {
position: sticky; top: 0; z-index: 3;
background: var(--paper);
}
.stats-hm-hr {
font: 10px/1 var(--av-font-mono); color: var(--ink-soft);
letter-spacing: 0.04em;
text-align: center; padding: 3px 0 4px;
}
.stats-hm-name {
position: sticky; left: 0; z-index: 2;
background: var(--paper);
display: flex; align-items: center;
padding-right: 10px; overflow: hidden;
transition: background 140ms ease;
}
.stats-hm-name .com {
font: 600 14px/1.2 var(--av-font-display); color: var(--ink);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
transition: color 130ms ease;
}
.stats-hm-cell {
display: flex; align-items: center; justify-content: center;
min-height: 26px;
border-radius: 2px;
background: var(--paper-2);
font: 11px/1 var(--av-font-mono); color: var(--ink);
font-variant-numeric: tabular-nums;
overflow: hidden;
}
/* Hours outside the current sub-day window get no tray tint, so the
window's extent reads as the band of filled trays. */
.stats-hm-cell.off { background: transparent; box-shadow: inset 0 0 0 1px var(--paper-2); }
/* Five count steps (log scale, set in renderActivity), paper -> ink. */
.stats-hm-cell.l1 { background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
.stats-hm-cell.l2 { background: color-mix(in srgb, var(--ink) 26%, var(--paper)); }
.stats-hm-cell.l3 { background: color-mix(in srgb, var(--ink) 45%, var(--paper)); color: var(--paper); }
.stats-hm-cell.l4 { background: color-mix(in srgb, var(--ink) 68%, var(--paper)); color: var(--paper); }
.stats-hm-cell.l5 { background: var(--ink); color: var(--paper); }
.stats-hm-tot {
display: flex; align-items: center; justify-content: flex-end;
padding-right: 2px;
font: 12px/1 var(--av-font-mono); color: var(--ink-soft);
font-variant-numeric: tabular-nums;
}
.stats-hm-head .stats-hm-tot {
align-items: flex-start; padding-top: 3px;
font-size: 9.5px; letter-spacing: 0.04em;
}
/* Cross-highlight: hovering a heatmap row or a table row lights up the
matching species on the other side - the name shifts to the accent
ink. Click opens the species' detail modal (data-sci delegation). */
.stats-hm-row { cursor: pointer; }
.stats-hm-row:hover .stats-hm-name,
.stats-hm-row.sync-hi .stats-hm-name { background: var(--paper-2); }
.stats-hm-row:hover .com,
.stats-hm-row.sync-hi .com { color: var(--accent); }
.stats-hm-empty {
position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
font: 11px var(--av-font-mono); color: var(--ink-soft);
text-transform: lowercase; letter-spacing: 0.18em;
}
/* Caption under the matrix: what the columns cover (rolling window vs
last-7-days aggregate) and whether the rows were trimmed. Sticky so
it doesn't wander off when the plot scrolls sideways. */
.stats-hm-cap {
position: sticky; left: 0;
padding: 8px 0 2px;
font: 8.5px/1 var(--av-font-mono); color: var(--ink-soft);
letter-spacing: 0.04em;
}
/* Phones: fixed-width cells -> the plot grows past the viewport and
scrolls horizontally under the sticky name column. */
@media (max-width: 700px) {
.stats-hm { --hm-name: 104px; min-width: max-content; }
.stats-hm-head, .stats-hm-row {
grid-template-columns: var(--hm-name) repeat(24, 26px) 40px;
}
}
/* (Old chart-card / .stats-charts CSS removed - replaced by the
activity heatmap above.) */
.stats-side {
display: flex; flex-direction: column; justify-content: center;
align-self: stretch; max-height: 100%;
padding: 6px 0;
}
.stats-side h3 {
font: 700 11.5px var(--av-font-mono); color: var(--ink);
letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 1px;
border-left: 2px solid var(--accent); padding-left: 10px;
}
/* Tight, content-sized groups - they sit just below their headers
rather than spreading to fill the column. */
.stats-side .grp { flex: 0 0 auto; }
.stats-side .grp + .grp { margin-top: 22px; }
.stats-side .grp small {
display: block; font: 10px var(--av-font-mono); color: var(--ink-soft);
letter-spacing: 0.06em; margin: 0 0 3px 12px;
}
/* The whole list is one grid so counts share an aligned column, sized
to the longest name (max-content) so that column sits right beside
the names instead of stretching to a far edge. Each row is a subgrid
so it still gets its own hover background + separator. */
.stats-side ol {
list-style: none; padding: 0; margin: 0;
display: grid; grid-template-columns: 40px max-content 1fr;
column-gap: 14px; align-content: start;
}
.stats-side li {
display: grid; grid-template-columns: subgrid; grid-column: 1 / -1;
align-items: baseline; padding: 3px 0;
box-shadow: inset 0 -1px 0 rgba(26,22,18,0.05);
font: 14px/1.3 var(--av-font-display); color: var(--ink);
transition: background 140ms ease, color 140ms ease;
}
.stats-side li[data-sci] { cursor: pointer; }
.stats-side li[data-sci]:hover { background: var(--paper-2); }
/* Cross-highlight from a hovered timeline square. */
.stats-side li.sync-hi { background: var(--paper-2); }
.stats-side li.sync-hi span:not(.yr):not(.ct) { color: var(--accent); }
.stats-side li .yr { font: 11px var(--av-font-mono); color: var(--accent-2); letter-spacing: 0.04em; }
.stats-side li .ct { font: 13px var(--av-font-mono); color: var(--ink-soft); font-variant-numeric: tabular-nums; justify-self: end; }
/* (Histogram strip removed - charts moved into the stats-grid LEFT
column as full-bleed chart cards. See .stats-charts above.) */
/* ============ View 3 - Atlas ============
Field-guide grid: one card per species, each card holds the cutout,
names, window/all-time detection counts, and small action chips for
audio playback, Wikipedia, and eBird. */
.atlas-controls {
max-width: 1280px; margin: 0 auto 18px;
display: flex; justify-content: flex-end; align-items: center;
}
.atlas-sort {
display: inline-flex; padding: 3px; position: relative;
background: var(--paper-2); border-radius: 999px;
box-shadow: var(--recess);
}
.atlas-sort button {
background: transparent; border: 0; color: var(--ink-soft);
width: 30px; height: 26px; padding: 0; border-radius: 999px;
cursor: pointer; position: relative; z-index: 1;
display: inline-flex; align-items: center; justify-content: center;
transition: color 200ms ease;
}
.atlas-sort button svg { width: 13px; height: 13px; display: block; }
.atlas-sort button:hover { color: var(--ink); }
.atlas-sort button[aria-current="true"] { color: var(--ink); }
.atlas-sort button .tip {
position: absolute; top: calc(100% + 6px); left: 50%;
transform: translateX(-50%); white-space: nowrap;
font: 9px var(--av-font-mono); letter-spacing: 0.14em;
text-transform: lowercase; color: var(--ink-soft);
background: var(--paper); padding: 3px 8px; border-radius: 4px;
box-shadow: var(--raised);
opacity: 0; pointer-events: none; transition: opacity 160ms ease;
}
.atlas-sort button:hover .tip { opacity: 1; }
.atlas-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 22px;
max-width: 1280px; margin: 0 auto;
}
/* Mobile atlas: a compact 2-up grid instead of one giant card per row,
so you can scan many birds and tap easily. Inline actions are hidden -
tapping the card opens the detail modal, which has play/wiki/ebird +
recordings - making the whole card one big touch target. */
@media (max-width: 700px) {
/* minmax(0,1fr) lets the columns shrink below their content's intrinsic
width (otherwise the chips force overflow). Selectors are scoped under
.atlas-grid so they out-specify the base .bird-card rules that appear
later in the file. */
.atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.atlas-grid .bird-card { min-height: 0; padding: 12px 12px 14px; border-radius: 9px; }
.atlas-grid .bird-card .stat { top: 10px; left: 11px; font-size: 8px; }
.atlas-grid .bird-card .stat .n { font-size: 11px; }
.atlas-grid .bird-card .img-wrap { margin: 30px 0 8px; }
.atlas-grid .bird-card .img-wrap img { max-height: 96px; }
.atlas-grid .bird-card h3 { font-size: 12.5px; }
.atlas-grid .bird-card .sci { font-size: 9.5px; }
.atlas-grid .bird-card .actions { display: none; }
.atlas-grid .lifer-badge { top: 9px; right: 9px; font-size: 7px; padding: 3px 5px; letter-spacing: 0.1em; }
}
.bird-card {
position: relative;
background: var(--paper);
border-radius: 10px;
padding: 16px 16px 12px;
box-shadow: var(--edge-lg);
display: flex; flex-direction: column;
min-height: 320px;
cursor: pointer;
transition: transform 200ms ease, box-shadow 200ms ease;
}
.bird-card:hover { transform: translateY(-1px); box-shadow: var(--edge-xl, 0 6px 16px rgba(26,22,18,0.12)); }
.bird-card .actions, .bird-card .spectro-wrap { cursor: auto; }
.bird-card .actions button, .bird-card .actions a { cursor: pointer; }
.bird-card .stat {
position: absolute; top: 14px; left: 16px;
font: 9px/1.5 var(--av-font-mono);
color: var(--ink-soft); letter-spacing: 0.04em;
}
/* "lifer" badge - shown top-right when a species' first-ever detection
falls inside the selected window (set in renderAtlas). pointer-events
off so it never blocks the card's click-to-open. */
.lifer-badge {
position: absolute; top: 12px; right: 12px; z-index: 2;
font: 700 8px/1 var(--av-font-mono);
letter-spacing: 0.14em; text-transform: uppercase;
color: var(--paper); background: var(--accent);
padding: 4px 7px; border-radius: 999px;
box-shadow: 0 2px 6px rgba(26,22,18,0.18);
pointer-events: none;
}
.bird-card .stat .n {
color: var(--ink); font: 700 13px/1 var(--av-font-display);
font-variant-numeric: tabular-nums; margin-right: 4px;
letter-spacing: 0;
}
.bird-card .stat .lbl { display: block; }
.bird-card .img-wrap {
flex: 1 1 auto; min-height: 0;
display: flex; align-items: center; justify-content: center;
margin: 38px 0 10px;
padding: 4px;
}
.bird-card .img-wrap img {
max-width: 100%; max-height: 160px; display: block;
filter: drop-shadow(0 2px 6px rgba(26,22,18,0.10));
}
.bird-card h3 {
margin: 0;
font: 700 14.5px/1.15 var(--av-font-display);
color: var(--ink); letter-spacing: 0.01em;
}
.bird-card .sci {
font: italic 11px/1.2 var(--av-font-display);
color: var(--ink-2); margin: 2px 0 0;
}
.bird-card .actions {
display: flex; gap: 6px; align-items: stretch;
margin-top: 12px; padding-top: 10px;
box-shadow: inset 0 1px 0 rgba(26,22,18,0.07);
}
.bird-card .chip {
flex: 0 0 auto;
background: var(--paper-2);
border: 0; color: var(--ink);
padding: 5px 9px;
border-radius: 4px;
font: 9.5px/1 var(--av-font-mono);
text-transform: lowercase; letter-spacing: 0.10em;
text-decoration: none;
cursor: pointer;
display: inline-flex; align-items: center; gap: 5px;
box-shadow: var(--raised);
transition: transform 160ms ease, color 160ms ease;
white-space: nowrap;
}
.bird-card .chip:hover {
color: var(--ink); transform: translateY(-1px);
}
.bird-card .chip[data-active="true"] {
color: var(--paper);
background: var(--ink);
}
.bird-card .chip svg { width: 10px; height: 10px; display: block; }
.bird-card .chip.play { padding-left: 7px; }
.bird-card .chip.ext::after { content: '↗'; opacity: 0.6; font-size: 11px; }
/* Selected card highlight - matches the page-slider and time-window
pill aesthetic: the active element is a slightly *brighter* paper
surface (raised) on top of a slightly *recessed* background.
No accent colour, no glowing ring - just the same depth shadow
recipe the rest of the chrome uses. */
.bird-card { transition: transform 280ms cubic-bezier(.7,.05,.2,1), box-shadow 280ms ease, background 200ms ease; }
.bird-card[data-active="true"] {
background: var(--paper);
box-shadow:
inset 0 0 0 1px rgba(255,255,255,0.85),
0 0 0 1px rgba(26,22,18,0.06),
0 10px 26px rgba(26,22,18,0.10);
transform: translateY(-1px);
}
.bird-card[data-pulse="true"] {
animation: bird-card-pulse 520ms cubic-bezier(.45,.05,.2,1);
}
/* Soft fade-in of the raised state, no ring pulse */
@keyframes bird-card-pulse {
0% { transform: translateY(2px); }
100% { transform: translateY(-1px); }
}
.atlas-empty {
grid-column: 1 / -1;
padding: 80px 16px; text-align: center;
font: 12px/1.6 var(--av-font-display); color: var(--ink-2);
}
.atlas-empty p { margin: 0 0 4px; }
.atlas-empty p.hint {
font: 10px var(--av-font-mono); color: var(--ink-soft);
letter-spacing: 0.06em;
}
/* ============ Admin screen (system / logs / tools) ============
Overlays the slider when activated via #admin=... hash. Lives
inside the same shell as the rest of the app so the header,
menu button, and time-window pill stay put - feels native. */
.admin-screen {
position: fixed; inset: 60px 0 60px 0;
background: var(--bg);
overflow-y: auto;
z-index: 5;
opacity: 0; pointer-events: none;
transition: opacity 200ms ease;
}
.admin-screen[aria-hidden="false"] { opacity: 1; pointer-events: auto; }