Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
2001 lines (1859 loc) · 61.2 KB
/
Copy pathstyle.css
File metadata and controls
2001 lines (1859 loc) · 61.2 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
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
/* ==========================================================================
Powder 5 — Studio Monitor theme
Original CSS replaced. Selector names preserved to keep JS happy.
Aesthetic: high-end Japanese audio receiver. Brushed metal, hairline
rules, monospace technical readouts, restrained amber LED accent,
muted cool blue for primary actions. Light + dark.
========================================================================== */
:root {
color-scheme: light;
/* Type */
--font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
--font-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Roboto Mono", Menlo, Consolas, monospace;
/* Surfaces — neutral grays (slight cool cast, like brushed aluminum) */
--bg-app: #e6e7e9; /* outer chassis */
--bg-panel: #f3f4f5; /* control panel face */
--bg-stage: #ffffff; /* chart / results stage */
--bg-inset: #dcdee1; /* recessed input wells */
--bg-inset-2: #d2d5d9;
--bg-elevated: #ffffff; /* modals, popovers */
--bg-hover: rgba(0,0,0,0.045);
/* Brushed-metal gradient (very subtle) for chrome surfaces */
--metal: linear-gradient(180deg, #f6f7f8 0%, #ebecee 100%);
--metal-deep: linear-gradient(180deg, #d8dadd 0%, #c8cbcf 100%);
/* Text */
--fg: #1a1c1f;
--fg-2: #4a4e54; /* secondary */
--fg-3: #7a7f86; /* tertiary / labels */
--fg-4: #a0a4ab; /* disabled */
/* Hairlines — the workhorse separator */
--rule: #c4c7cb;
--rule-soft: #d8dadd;
--rule-strong: #9ea2a8;
/* Accents */
--accent: #4a7fb5; /* muted cool blue — primary action */
--accent-hover: #3d6fa3;
--accent-tint: rgba(74,127,181,0.14);
--accent-ring: rgba(74,127,181,0.30);
--led: #d68a2a; /* amber indicator LED */
--led-glow: rgba(214,138,42,0.5);
--danger: #b03a3a;
--success: #3a7a4a;
--warning: #b88318;
/* Shadows — minimal. Hardware UIs don't float. */
--shadow-1: 0 1px 0 rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.04);
--shadow-2: 0 8px 24px rgba(0,0,0,0.12);
/* Corner radii — keep tight (rx ≈ 2) per chosen language */
--r-1: 2px;
--r-2: 3px;
--r-3: 4px;
/* Legacy token aliases (so existing inline styles + JS keep working) */
--system-blue: var(--accent);
--system-gray-1: var(--fg-3);
--system-gray-2: var(--fg-4);
--system-gray-3: #b8bcc1;
--system-gray-4: var(--rule);
--system-gray-5: var(--rule-soft);
--system-gray-6: var(--bg-inset);
--system-background: var(--bg-stage);
--system-grouped-background: var(--bg-app);
--system-material-thin: rgba(255,255,255,0.7);
--system-material-regular: rgba(255,255,255,0.85);
--system-label: var(--fg);
--system-secondary-label: var(--fg-2);
--system-tertiary-label: var(--fg-3);
--system-separator: var(--rule);
--system-fill: rgba(60,70,80,0.08);
--system-secondary-fill: rgba(60,70,80,0.05);
--system-shadow: rgba(0,0,0,0.10);
/* The one --system-* alias that was never declared. Both uses carried a
hard-coded #ff9f0a fallback, so it rendered -- but the fallback is a
literal, which meant this was the only colour in the file that did NOT
re-map in dark mode. Aliased to --warning like every other token. */
--system-orange: var(--warning);
}
[data-theme="dark"] {
color-scheme: dark;
--bg-app: #1a1c1e;
--bg-panel: #232629;
--bg-stage: #15171a;
--bg-inset: #14161a;
--bg-inset-2: #0f1114;
--bg-elevated: #2a2d31;
--bg-hover: rgba(255,255,255,0.05);
--metal: linear-gradient(180deg, #2c2f33 0%, #232629 100%);
--metal-deep: linear-gradient(180deg, #1a1c1e 0%, #131517 100%);
--fg: #e8eaed;
--fg-2: #c0c4c9;
--fg-3: #8a8f96;
--fg-4: #50545a;
--rule: #44474c;
--rule-soft: #3a3d42;
--rule-strong: #4a4e54;
--accent: #5b91c7;
--accent-hover: #6ea3d8;
--accent-tint: rgba(91,145,199,0.18);
--accent-ring: rgba(91,145,199,0.40);
--led: #e09a3a;
--led-glow: rgba(224,154,58,0.55);
--danger: #e06868;
--success: #6abf7e;
--warning: #e0b04a;
--shadow-1: 0 1px 0 rgba(0,0,0,0.40), 0 1px 2px rgba(0,0,0,0.30);
--shadow-2: 0 8px 24px rgba(0,0,0,0.55);
--system-gray-3: #4a4e54;
--system-gray-4: var(--rule);
--system-gray-5: var(--rule-soft);
--system-gray-6: var(--bg-inset);
--system-fill: rgba(255,255,255,0.06);
--system-secondary-fill: rgba(255,255,255,0.04);
}
/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
}
body {
font-family: var(--font-sans);
font-size: 13px;
line-height: 1.4;
color: var(--fg);
background: var(--bg-app);
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
letter-spacing: 0.005em;
}
/* numeric inputs & readouts get monospace */
input[type="number"],
.control-input[type="number"],
input[type="text"].sg-search-row input,
.slider-value-display,
.result-card-value,
#app-version-footer,
.sg-list-item .num,
.sg-explain-grid dd {
font-family: var(--font-mono);
font-feature-settings: "tnum" 1, "zero" 1;
letter-spacing: 0;
}
/* ---------- App shell ---------- */
#app-container {
display: flex;
width: 100%;
flex-grow: 1;
min-height: 0;
background: var(--bg-app);
}
#controls-panel {
/* Widened for the fifth tab. At 380px the tab strip had to squeeze five
uppercase labels into a row that was laid out for four, and the Wyckoff
panel's sliders and the distance-constraint textarea were cramped. */
width: 440px;
min-width: 380px;
max-width: 560px;
flex-shrink: 0;
background: var(--bg-panel);
border-right: 1px solid var(--rule);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
z-index: 20;
box-shadow: none;
border-radius: 0;
}
/* The only element inside #controls-panel that scrolls. Everything that
isn't the action-button-bar footer lives in here, so the footer itself
never has to "catch up" via position:sticky — it simply isn't part of
the scrolling flow, and is always visible regardless of tab content
height or scroll position. */
#controls-scroll {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 14px 14px 14px 16px;
display: flex;
flex-direction: column;
}
#controls-scroll::-webkit-scrollbar { width: 8px; }
#controls-scroll::-webkit-scrollbar-track { background: transparent; }
#controls-scroll::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
#controls-scroll::-webkit-scrollbar-thumb:hover { background: var(--rule-strong); }
/* A true fixed footer (flex-shrink:0, outside #controls-scroll) rather than
a sticky element inside the scroll flow — sticky only keeps an element
from scrolling OUT of view once you've already scrolled to it; it does
nothing for the very first render, so on tall panels (e.g. Profile with
many parameters) the buttons stayed below the fold until manually
scrolled down. As a direct, non-scrolling flex child of #controls-panel,
this bar is visible immediately on every tab, with no scrolling needed. */
#action-button-bar {
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 16px;
padding: 12px 14px 14px 16px;
background: var(--bg-panel);
border-top: 1px solid var(--rule);
z-index: 5;
}
#drag-handle {
/* 1px was a 1px hit target. The visible rule stays hairline -- it is drawn
by the ::after below -- but the grab area is now wide enough to find
without hunting for it. */
width: 7px;
margin: 0 -3px; /* keeps the visual gap unchanged either side */
cursor: col-resize;
background: var(--rule);
flex-shrink: 0;
transition: background 0.15s, box-shadow 0.15s;
position: relative;
}
#drag-handle::after {
content: "";
position: absolute;
inset: 0 -3px;
}
#drag-handle:hover, #drag-handle:active {
background: var(--accent);
box-shadow: 0 0 0 1px var(--accent-ring);
}
#results-area {
flex-grow: 1;
position: relative;
background: var(--bg-stage);
min-width: 0;
display: flex;
flex-direction: column;
padding: 18px 20px 22px 20px;
z-index: 10;
border-radius: 0;
margin: 0;
box-shadow: none;
border-left: 1px solid var(--rule);
}
/* App version footer (model-number tag).
No longer absolutely positioned: it is the right-hand half of the status
footer now. Leaving `position: absolute` here would have lifted it straight
back out of that flex row and floated it over the results content. */
#app-version-footer {
color: var(--fg-3) !important;
user-select: none;
pointer-events: none;
}
/* ---------- Controls panel sections (flat, hairline-separated) ---------- */
.control-group {
padding: 14px 0 16px 0;
margin: 0;
background: transparent;
border: none;
border-bottom: 1px solid var(--rule);
border-radius: 0;
box-shadow: none;
display: flex;
flex-direction: column;
gap: 10px;
}
.control-group:first-child { padding-top: 6px; }
.control-group:last-child { border-bottom: none; }
/* Section header — small caps + monospace index would be ideal, but we
only have the title text. Treat h2 as a precise hardware-style label. */
.control-group h2,
.profile-section-header {
margin: 0;
padding: 0 0 8px 0;
border-bottom: 1px solid var(--rule-soft);
color: var(--fg);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
}
/* ---------- Labels ---------- */
.control-label {
display: block;
font-weight: 500;
color: var(--fg-2);
font-size: 11.5px;
letter-spacing: 0.02em;
margin-bottom: 4px;
}
/* ---------- Inputs ---------- */
.control-input,
.control-select {
width: 100%;
background: var(--bg-inset);
border: 1px solid var(--rule);
color: var(--fg);
border-radius: var(--r-1);
padding: 6px 10px;
transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
box-sizing: border-box;
font-size: 13px;
height: 30px;
font-family: inherit;
box-shadow: inset 0 1px 0 rgba(0,0,0,0.03);
}
[data-theme="dark"] .control-input,
[data-theme="dark"] .control-select {
box-shadow: inset 0 1px 0 rgba(0,0,0,0.5);
}
.control-input:hover:not(:disabled),
.control-select:hover:not(:disabled) {
border-color: var(--rule-strong);
}
.control-input:focus,
.control-select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-ring);
background: var(--bg-stage);
}
.control-input:disabled {
background: var(--bg-inset);
color: var(--fg-4);
cursor: not-allowed;
opacity: 0.7;
}
/* native dropdown chevron */
.control-select {
appearance: none;
-webkit-appearance: none;
background-image:
linear-gradient(45deg, transparent 50%, var(--fg-2) 50%),
linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
background-position:
calc(100% - 14px) 12px,
calc(100% - 9px) 12px;
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
padding-right: 26px;
}
/* number-input spinners — keep them but tone down */
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
/* ---------- Buttons ---------- */
.btn {
padding: 0 16px;
border-radius: var(--r-1);
font-weight: 600;
transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s, transform 0.05s;
cursor: pointer;
border: 1px solid var(--rule);
text-align: center;
font-size: 12px;
letter-spacing: 0.06em;
text-transform: uppercase;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
background: var(--metal);
color: var(--fg);
box-shadow: var(--shadow-1);
font-family: inherit;
}
.btn:hover:not(:disabled) {
border-color: var(--rule-strong);
background: var(--bg-stage);
}
[data-theme="dark"] .btn:hover:not(:disabled) {
background: var(--bg-elevated);
}
.btn:active:not(:disabled) { transform: translateY(0.5px); }
.btn-primary {
background: var(--accent);
color: #fff;
border-color: var(--accent);
box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-1);
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-hover);
border-color: var(--accent-hover);
color: #fff;
}
.btn-primary:active:not(:disabled) {
background: var(--accent-hover);
box-shadow: 0 1px 2px rgba(0,0,0,0.20) inset;
}
.btn-secondary {
background: var(--metal);
color: var(--fg);
border: 1px solid var(--rule);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-stage);
color: var(--fg);
border-color: var(--rule-strong);
transform: none;
box-shadow: var(--shadow-1);
}
[data-theme="dark"] .btn-secondary:hover:not(:disabled) {
background: var(--bg-elevated);
}
.btn:disabled {
background: var(--bg-inset);
color: var(--fg-4);
border-color: var(--rule-soft);
cursor: not-allowed;
opacity: 0.6;
box-shadow: none;
}
/* ---------- Chart rubber-band zoom selection ---------- */
#main-chart { cursor: crosshair; }
/* Created at runtime by initCharting() in js/charting.js, which sets only
geometry and `display` -- position, border and fill all come from here, so
this rule is load-bearing even though no markup mentions the id. */
#zoom-selection-box {
position: absolute;
display: none;
pointer-events: none;
z-index: 4;
border: 1px solid var(--accent);
background: var(--accent-tint);
box-shadow: 0 0 0 1px var(--accent-ring);
}
/* ---------- File input ---------- */
/* .file-input-label removed: the file input is now a hidden
<input id="file-input"> driven by a button, so no element carries it. */
/* ---------- Results grid (numeric readout cards) ---------- */
.results-grid {
display: grid;
grid-template-columns: repeat(3, minmax(80px, 1fr));
gap: 1px;
background: var(--rule);
border: 1px solid var(--rule);
border-radius: var(--r-1);
overflow: hidden;
}
.result-card {
background: var(--bg-inset);
padding: 8px 10px;
border-radius: 0;
text-align: left;
transition: background 0.12s;
}
.result-card-label {
font-size: 9.5px;
color: var(--fg-3);
margin-bottom: 2px;
letter-spacing: 0.10em;
text-transform: uppercase;
font-weight: 500;
}
.result-card-value {
font-size: 16px;
font-weight: 500;
color: var(--fg);
letter-spacing: 0;
}
/* ---------- Fit checkbox (square LED) ---------- */
.fit-checkbox {
-webkit-appearance: none;
appearance: none;
background: var(--bg-inset);
width: 16px;
height: 16px;
border: 1px solid var(--rule-strong);
border-radius: var(--r-1);
cursor: pointer;
display: inline-block;
position: relative;
transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
flex-shrink: 0;
box-shadow: inset 0 1px 0 rgba(0,0,0,0.06);
}
[data-theme="dark"] .fit-checkbox {
box-shadow: inset 0 1px 0 rgba(0,0,0,0.5);
}
.fit-checkbox:hover { border-color: var(--led); }
.fit-checkbox:checked {
background: var(--led);
border-color: var(--led);
box-shadow: 0 0 6px var(--led-glow), inset 0 0 0 1px rgba(255,255,255,0.15);
}
.fit-checkbox:checked::after {
content: "";
position: absolute;
inset: 3px;
background: rgba(255,255,255,0.92);
border-radius: 1px;
}
/* ---------- Tabs ---------- */
.tab-buttons {
display: flex;
background: var(--bg-inset);
border: 1px solid var(--rule);
border-radius: var(--r-1);
padding: 2px;
margin-bottom: 14px;
gap: 0;
}
/* Matched to .rp-tab in the results panel: same font size and weight, same
padding, same active treatment. They are the same kind of control and were
drawn two different ways -- uppercase letter-spaced pills on the left,
sentence-case tabs on the right. The uppercase + 0.10em tracking was also
what made five labels overflow where four had fitted. */
.tab-btn {
flex: 1;
appearance: none;
border: none;
cursor: pointer;
font: inherit;
font-size: 12px;
font-weight: 600;
padding: 7px 12px;
border-radius: 6px;
color: var(--system-secondary-label, var(--fg-2));
background: transparent;
white-space: nowrap;
transition: background 0.12s, color 0.12s;
}
.tab-btn:hover { color: var(--system-label, var(--fg)); background: var(--bg-hover); }
.tab-btn.active {
color: var(--fg);
background: var(--bg-elevated);
box-shadow: var(--shadow-1);
}
.tab-btn:disabled { opacity: 0.4; cursor: default; background: transparent; }
.tab-content-panels { position: relative; padding-top: 0; }
.tab-content-panel { display: none; flex-direction: column; }
.tab-content-panel.active { display: flex; }
.tab-content-panel > .control-group { border-top: none; }
/* ---------- Sub-tabs (the Data tab's second level) ---------- */
/* Drawn on the results tabs at the top right, NOT on the main strip below.
.tab-buttons paints an inset, bordered, rounded container around its
buttons; putting a second one of those inside the first gave two nested
boxes, and the inner one read as the edge of a panel rather than as a row of
tabs. The right-hand tabs have no container at all -- an underline for the
row, a filled pill for the active one -- which is exactly the weaker,
subordinate treatment a second level wants.
The rules are copied rather than the class being reused: JS queries .rp-tab
globally (querySelectorAll('.rp-tab'), '.rp-tab.active'), so a second set of
elements answering to it would let the left panel drive the right one. */
.subtab-buttons {
display: flex;
gap: 2px;
align-items: flex-end;
padding: 0 2px;
margin: -2px 0 16px;
border-bottom: 1px solid var(--system-gray-5, var(--rule));
}
.subtab-btn {
appearance: none;
border: none;
cursor: pointer;
font: inherit;
font-size: 12px;
font-weight: 600;
padding: 7px 14px;
border-radius: 8px 8px 0 0;
color: var(--system-secondary-label, var(--fg-2));
background: transparent;
white-space: nowrap;
}
.subtab-btn:hover { color: var(--system-label, var(--fg)); }
.subtab-btn.active {
color: var(--fg);
background: var(--bg-elevated);
border-radius: 4px;
box-shadow: var(--shadow-1);
}
.subtab-btn:disabled { opacity: 0.4; cursor: default; }
.subtab-content-panels { position: relative; }
.subtab-content-panel > .control-group { border-top: none; }
/* ---------- Excluded regions ---------- */
/* Deliberately the same row as .anchor-point-item in the spline editor: a
bordered, inset, single-line strip holding the numbers and a remove button.
The two panels list the same kind of thing -- a handful of user-placed
positions along the 2-theta axis -- and drawing them two different ways
would suggest they behave differently. */
.excluded-entry { margin-bottom: 4px; }
.excluded-row {
/* minmax(0, 1fr) for the same reason as .anchor-point-item: a bare 1fr is
floored at a number input's default ~20-character width, so the row
would refuse to shrink and would overflow the panel. */
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
gap: 6px;
align-items: center;
margin-bottom: 4px;
padding: 6px 8px;
background: var(--bg-inset);
border: 1px solid var(--rule-soft);
border-radius: var(--r-1);
}
.excluded-row .control-input {
width: 100%;
min-width: 0;
box-sizing: border-box;
height: 26px;
padding: 4px 8px;
font-size: 12px;
}
.excluded-cap {
font-size: 11px;
color: var(--fg-2);
white-space: nowrap;
}
.excluded-unit {
font-size: 12px;
font-family: var(--font-mono);
color: var(--fg-3);
padding: 0 6px;
}
.excluded-row-entry { border-style: dashed; }
.excluded-list {
margin-top: 10px;
max-height: clamp(120px, calc(100vh - 560px), 40vh);
overflow-y: auto;
resize: vertical;
background: var(--bg-stage);
box-sizing: border-box;
border: 1px solid var(--system-gray-4, var(--rule));
border-radius: 8px;
padding: 8px 8px 4px;
}
.excluded-del {
background: transparent;
border: none;
color: var(--fg-3);
font-weight: bold;
font-size: 16px;
cursor: pointer;
padding: 0 6px;
line-height: 1;
transition: color 0.12s;
}
.excluded-del:hover { color: var(--danger); }
#lattice-parameters-container {
display: flex;
flex-direction: column;
gap: 10px;
}
.bottom-actions {
margin-top: auto;
padding-top: 14px;
}
/* ---------- Sliders ---------- */
.slider-value-track {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr;
align-items: center;
height: 30px;
}
.slider-value-track > * { grid-column: 1; grid-row: 1; }
.slider-value-display {
text-align: center;
color: var(--fg-2);
font-weight: 500;
font-size: 11.5px;
pointer-events: none;
text-shadow: 0 1px 0 var(--bg-panel);
}
input[type="range"].custom-slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 28px;
background: transparent;
outline: none;
padding: 0;
margin: 0;
}
input[type="range"].custom-slider::-webkit-slider-runnable-track {
height: 4px;
background: var(--bg-inset);
border: 1px solid var(--rule);
border-radius: var(--r-1);
}
input[type="range"].custom-slider::-moz-range-track {
height: 4px;
background: var(--bg-inset);
border: 1px solid var(--rule);
border-radius: var(--r-1);
}
input[type="range"].custom-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 18px;
background: var(--metal);
border: 1px solid var(--rule-strong);
border-radius: var(--r-1);
cursor: pointer;
margin-top: -8px;
box-shadow: var(--shadow-1);
transition: border-color 0.12s, background 0.12s;
}
input[type="range"].custom-slider::-webkit-slider-thumb:hover {
border-color: var(--accent);
}
input[type="range"].custom-slider::-moz-range-thumb {
width: 14px;
height: 18px;
background: var(--metal);
border: 1px solid var(--rule-strong);
border-radius: var(--r-1);
cursor: pointer;
box-shadow: var(--shadow-1);
}
input[type="range"].custom-slider:disabled::-webkit-slider-thumb { opacity: 0.4; cursor: not-allowed; }
input[type="range"].custom-slider:disabled::-moz-range-thumb { opacity: 0.4; cursor: not-allowed; }
/* ---------- Anchor / spline points list ---------- */
.anchor-point-item {
/* minmax(0, 1fr), not 1fr. A bare 1fr track is floored at the content's
min-width, and a number input carries a default size of ~20 characters,
so the row refused to shrink below its natural width and overflowed the
panel instead of adapting to it. */
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
gap: 6px;
align-items: center;
margin-bottom: 4px;
padding: 6px 8px;
background: var(--bg-inset);
border: 1px solid var(--rule-soft);
border-radius: var(--r-1);
}
.anchor-point-item .control-input { width: 100%; min-width: 0; box-sizing: border-box; }
#spline-points-list { box-sizing: border-box; }
.anchor-point-item span {
font-size: 12px;
padding: 0 4px;
text-align: right;
font-family: var(--font-mono);
color: var(--fg-2);
}
.anchor-point-item .control-input {
height: 26px;
padding: 4px 8px;
font-size: 12px;
}
.anchor-remove-btn {
background: transparent;
border: none;
color: var(--fg-3);
font-weight: bold;
font-size: 16px;
cursor: pointer;
padding: 0 6px;
line-height: 1;
transition: color 0.12s;
}
.anchor-remove-btn:hover { color: var(--danger); }
#spline-points-list {
background: var(--bg-stage);
}
/* ---------- Form grids ---------- */
.profile-controls-container + .profile-controls-container {
margin-top: 18px;
}
.parameter-grid-3col,
.parameter-grid-2col,
.slider-group,
.form-row {
display: grid;
gap: 10px 12px;
align-items: center;
}
.parameter-grid-3col { grid-template-columns: minmax(96px, auto) 1fr 22px; }
.parameter-grid-2col,
.slider-group,
.form-row { grid-template-columns: minmax(96px, auto) 1fr; }
.parameter-grid-3col > .control-label,
.parameter-grid-2col > .control-label,
.slider-group > .control-label,
.form-row > .control-label {
grid-column: 1;
margin-bottom: 0;
}
.parameter-grid-2col > *:not(label),
.slider-group > .slider-value-track,
.form-row > *:not(label) { grid-column: 2; }
.parameter-grid-3col > .control-input { grid-column: 2; }
.parameter-grid-3col > .fit-checkbox { grid-column: 3; justify-self: center; }
.profile-controls-container {
display: grid;
grid-template-columns: minmax(96px, auto) 1fr 22px;
gap: 10px 12px;
align-items: center;
}
.profile-controls-container > .control-label { grid-column: 1; text-align: left; margin-bottom: 0; }
.profile-controls-container > input[type="number"] { grid-column: 2; }
.profile-controls-container > input[type="checkbox"] { grid-column: 3; justify-self: center; }
.profile-controls-container > .profile-section-header { grid-column: 1 / -1; margin-top: 10px; }
.profile-controls-container > .profile-section-header:first-child { margin-top: 0; }
/* ---------- Toasts ---------- */
#toast-container {
position: fixed;
bottom: 18px;
right: 18px;
z-index: 9999;
display: flex;
flex-direction: column-reverse;
gap: 8px;
pointer-events: none;
}
.toast {
padding: 10px 16px;
border-radius: var(--r-1);
color: #fff;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.04em;
background: var(--bg-elevated);
border: 1px solid var(--rule-strong);
color: var(--fg);
box-shadow: var(--shadow-2);
opacity: 0;
transform: translateX(110%);
transition: opacity 0.3s, transform 0.3s cubic-bezier(0.21,1.02,0.73,1);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.error { background: var(--danger); border-color: var(--danger); color: #fff; }
.toast.success { background: var(--success); border-color: var(--success); color: #fff; }
/* ---------- Bottom actions section ---------- */
.bottom-actions > .control-group {
display: grid;
grid-template-columns: minmax(96px, auto) 1fr;
gap: 12px;
align-items: center;
border: none;
padding: 0;
}
/* Anything that carries its own internal label must span BOTH columns.
The Refinement group is a two-column grid, minmax(96px, auto) then 1fr, and
a block left in column 1 widens that column against the `auto` -- which is
why dropping the Max Iterations row in unlisted squeezed the Method selector
in column 2 down to "Paralle...". */
.bottom-actions > .control-group > h2,
.bottom-actions > .control-group > .slider-group,
.bottom-actions > .control-group > .parameter-grid-2col,
.bottom-actions > .control-group > .results-grid {
grid-column: 1 / -1;
}
/* Uniform label alignment for refinement grid elements */
.bottom-actions > .control-group > .parameter-grid-2col > .control-label {
margin-bottom: 0;
}
/* ---------- Help tooltip ---------- */
.help-tooltip-container { position: relative; display: inline-block; }
.help-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
background: var(--metal);
color: var(--fg-2);
border: 1px solid var(--rule);
border-radius: 50%;
font-weight: 600;
font-size: 16px;
font-family: var(--font-mono);
/* `pointer`, not `help`: the panel is a click toggle now, and the
question-mark cursor promised something that appeared on hover. */
cursor: pointer;
user-select: none;
transition: color 0.12s, border-color 0.12s, background 0.12s;
box-shadow: var(--shadow-1);
}
.help-icon:hover {
color: var(--accent);
border-color: var(--accent);
}
/* Open state: the icon stays lit while its panel is up, so it is clear which
control put the panel there and which one will take it away. */
.help-icon[aria-expanded="true"] {
color: var(--accent);
border-color: var(--accent);
background: var(--bg-inset);
}
.help-icon:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.tooltip-content {
visibility: hidden;
opacity: 0;
width: 280px;
background: var(--bg-elevated);
color: var(--fg);
text-align: left;
border-radius: var(--r-1);
padding: 14px;
position: absolute;
z-index: 1001;
top: -12px;
right: 115%;
margin-right: 10px;
transition: opacity 0.25s;
font-size: 12px;
border: 1px solid var(--rule-strong);
box-shadow: var(--shadow-2);
}
.tooltip-content::after {
content: "";
position: absolute;
top: 18px;
left: 100%;
margin-top: -5px;
border-width: 5px;