report-studio 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,8 +19,8 @@
19
19
  --dz-bar-height: 56px;
20
20
  /* wide enough for "reportHeader", the longest band name */
21
21
  --dz-gutter: 96px;
22
- /* room for a label column and a control column side by side, unwrapped */
23
- --dz-panel: 304px;
22
+ /* two columns of about 112px and a 16px margin either side, as a design tool's inspector */
23
+ --dz-panel: 264px;
24
24
  --dz-foot-height: 44px;
25
25
  /* how far the floating tools sit off the bottom edge, as the pager does */
26
26
  --dz-foot-offset: 20px;
@@ -28,10 +28,14 @@
28
28
 
29
29
  /**
30
30
  * The designer fills the element it was given - a column of the bar and the
31
- * row below it - so a host can put its own header above it. A mount with no
32
- * height of its own (the CLI's page, a host that never set one) gets the
33
- * window's instead: height: 100% has nothing to resolve against there, so the
34
- * cap is what stops the designer growing to the length of the page.
31
+ * row below it - so a host can put its own header above it.
32
+ *
33
+ * That needs the element to have a height. Where it has none, height: 100% has
34
+ * nothing to resolve against and the designer is only as tall as what is in
35
+ * it: the cap stops it growing past the window, but nothing stops it shrinking.
36
+ * A small page with a box selected - a short rail, a short canvas - left the
37
+ * whole designer ending two-thirds of the way down the window, its bottom edge
38
+ * jumping up and down as the selection changed.
35
39
  */
36
40
  .report-designer {
37
41
  display: flex;
@@ -41,6 +45,17 @@
41
45
  background-color: var(--backdrop);
42
46
  }
43
47
 
48
+ /**
49
+ * So the designer's own page - the one the CLI serves and the playground runs -
50
+ * gives it one: the document is the window, and the mount on its body fills
51
+ * it. A host page does the same for itself, as the README shows; the window
52
+ * the designer opens in gives its mount 100vh.
53
+ */
54
+ .report-studio-page,
55
+ .report-studio-page body {
56
+ height: 100%;
57
+ }
58
+
44
59
  /**
45
60
  * A class outranks the browser's own [hidden] rule, so display: flex above
46
61
  * would keep a designer on screen that its host had hidden - under the report,
@@ -555,22 +570,57 @@
555
570
 
556
571
  /* ---------------- the properties rail ---------------- */
557
572
 
573
+ /**
574
+ * Laid out the way a design tool's inspector is, Figma's in particular:
575
+ *
576
+ * - sections divided by a hairline rule, never boxed or carded
577
+ * - a two-column grid, so X sits beside Y and W beside H, and a control
578
+ * either takes one column (.is-half) or the whole row
579
+ * - boxes 24px tall with a soft grey fill and no border, which outline
580
+ * themselves on hover and take the accent ring on focus
581
+ * - a letter inside the box where a letter says enough (X, Y, W, H), and a
582
+ * small grey label above it where one does not
583
+ * - grey everywhere else, so the accent is only ever the thing in hand
584
+ *
585
+ * Everything is scoped to .dz-panel: the dialogs and the Format editor draw
586
+ * .dz-field too, and keep their own look.
587
+ */
558
588
  .dz-panel {
589
+ --rail-x: 16px;
590
+ --field-h: 24px;
591
+ --field-bg: var(--surface-muted);
592
+ --field-radius: 5px;
593
+
559
594
  flex: none;
560
595
  width: var(--dz-panel);
561
596
  overflow-y: auto;
562
- padding: 16px 20px 32px;
597
+ /**
598
+ * The scrollbar's room is kept whether or not the rail needs it. A box's
599
+ * rail fits and the report's does not, and where scrollbars take up width -
600
+ * Windows, most Linux - every control in the rail used to widen by 16px and
601
+ * shuffle sideways each time the selection crossed between the two.
602
+ */
603
+ scrollbar-gutter: stable;
604
+ padding: 0 0 32px;
563
605
 
564
606
  background: var(--surface);
565
607
  border-left: 1px solid var(--border);
566
608
 
567
609
  font-family: "Instrument Sans", system-ui, sans-serif;
568
- font-size: 12px;
610
+ font-size: 11px;
611
+ line-height: 16px;
569
612
  color: var(--ink);
570
613
  }
571
614
 
615
+ /* while a number is being scrubbed, the whole rail says so with the cursor */
616
+ .dz-panel.is-scrubbing,
617
+ .dz-panel.is-scrubbing * {
618
+ cursor: ew-resize !important;
619
+ user-select: none;
620
+ }
621
+
572
622
  .dz-panel-empty {
573
- padding: 24px 4px;
623
+ padding: 24px var(--rail-x);
574
624
  text-align: center;
575
625
  color: var(--ink-soft);
576
626
  }
@@ -579,186 +629,331 @@
579
629
  margin-bottom: 6px;
580
630
  }
581
631
 
632
+ /* what is selected: its glyph, its id, and what kind of thing it is */
582
633
  .dz-panel-head {
634
+ position: sticky;
635
+ top: 0;
636
+ z-index: 2;
637
+
583
638
  display: flex;
584
- align-items: baseline;
639
+ align-items: center;
585
640
  gap: 8px;
586
- padding-bottom: 12px;
587
- margin-bottom: 4px;
641
+ height: 40px;
642
+ padding: 0 var(--rail-x);
643
+
644
+ background: var(--surface);
588
645
  border-bottom: 1px solid var(--border);
589
646
  }
590
647
 
591
- .dz-panel-type {
592
- padding: 2px 7px;
593
- border-radius: 999px;
594
- background: var(--accent-soft);
595
- color: var(--accent-ink);
596
- font-size: 10px;
597
- letter-spacing: .04em;
598
- text-transform: uppercase;
648
+ .dz-panel-icon {
649
+ display: inline-flex;
650
+ flex: none;
651
+ color: var(--ink-soft);
599
652
  }
600
653
 
601
654
  .dz-panel-id {
602
- color: var(--ink-soft);
603
- font-family: "Courier Prime", monospace;
655
+ min-width: 0;
604
656
  overflow: hidden;
605
657
  text-overflow: ellipsis;
606
658
  white-space: nowrap;
659
+ font-weight: 600;
660
+ }
661
+
662
+ .dz-panel-type {
663
+ flex: none;
664
+ margin-left: auto;
665
+ color: var(--ink-soft);
607
666
  }
608
667
 
609
- .dz-section {
610
- padding: 18px 0;
668
+ /* ---- sections: a hairline between them, and a two-column grid inside ---- */
669
+
670
+ .dz-panel .dz-section {
671
+ display: grid;
672
+ grid-template-columns: repeat(2, minmax(0, 1fr));
673
+ gap: 8px;
674
+ padding: 4px var(--rail-x) 16px;
611
675
  border-bottom: 1px solid var(--border);
612
676
  }
613
677
 
614
- .dz-section:last-child {
678
+ .dz-panel .dz-section:last-child {
615
679
  border-bottom: none;
616
680
  }
617
681
 
618
- .dz-section h3 {
619
- margin-bottom: 14px;
620
- font-size: 10px;
621
- font-weight: 600;
622
- letter-spacing: .06em;
623
- text-transform: uppercase;
624
- color: var(--ink-soft);
682
+ /* the whole row unless a control asks for half of it */
683
+ .dz-panel .dz-section > *,
684
+ .dz-panel .dz-column-body > *,
685
+ .dz-panel .dz-group-level > * {
686
+ grid-column: 1 / -1;
625
687
  }
626
688
 
627
- /**
628
- * Label left, control right, on one line. Two lines per field would make the
629
- * rail twice as tall as the page it describes.
630
- *
631
- * The label column is a fixed width rather than a share, so every control in
632
- * the rail starts at the same x and the eye can run straight down them.
633
- */
634
- .dz-field {
635
- display: grid;
636
- grid-template-columns: 100px minmax(0, 1fr);
689
+ .dz-panel .dz-section > .is-half,
690
+ .dz-panel .dz-column-body > .is-half,
691
+ .dz-panel .dz-group-level > .is-half {
692
+ grid-column: auto;
693
+ }
694
+
695
+ /* sentence case and the ink colour, as a design tool titles its sections */
696
+ .dz-section-head {
697
+ display: flex;
637
698
  align-items: center;
638
- column-gap: 12px;
639
- row-gap: 6px;
640
- margin-bottom: 12px;
699
+ justify-content: space-between;
700
+ gap: 8px;
701
+ height: 36px;
702
+ }
703
+
704
+ .dz-section-head h3 {
705
+ font-size: 11px;
706
+ font-weight: 600;
707
+ color: var(--ink);
708
+ }
709
+
710
+ .dz-section-tools {
711
+ display: flex;
712
+ gap: 2px;
713
+ /* so the glyph, not its button, lines up with the boxes' right edge */
714
+ margin-right: -4px;
641
715
  }
642
716
 
643
- .dz-field:last-child {
644
- margin-bottom: 0;
717
+ /* ---- fields ---- */
718
+
719
+ .dz-panel .dz-field {
720
+ display: flex;
721
+ flex-direction: column;
722
+ gap: 4px;
723
+ min-width: 0;
724
+ margin: 0;
645
725
  }
646
726
 
647
- .dz-field label {
727
+ .dz-panel .dz-label {
728
+ overflow: hidden;
729
+ text-overflow: ellipsis;
730
+ white-space: nowrap;
648
731
  color: var(--ink-soft);
649
732
  }
650
733
 
651
- /* the value box and its hint take the full width instead */
652
- .dz-field-textarea {
653
- grid-template-columns: 1fr;
654
- gap: 4px;
734
+ /* a number's label is the handle it is dragged by */
735
+ .dz-panel .dz-scrub {
736
+ cursor: ew-resize;
737
+ user-select: none;
738
+ }
739
+
740
+ /* there for a screen reader, and for the tests that read labels, not for eyes */
741
+ .dz-panel .dz-sr {
742
+ position: absolute;
743
+ width: 1px;
744
+ height: 1px;
745
+ overflow: hidden;
746
+ clip-path: inset(50%);
747
+ white-space: nowrap;
655
748
  }
656
749
 
657
- .dz-field input,
658
- .dz-field select,
659
- .dz-field textarea {
750
+ /* every box in the rail: grey, borderless, 24px */
751
+ .dz-panel .dz-field input:not([type="checkbox"]):not([type="color"]):not([type="radio"]),
752
+ .dz-panel .dz-choice-trigger,
753
+ .dz-panel .dz-input,
754
+ .dz-panel .dz-format,
755
+ .dz-panel .dz-band-height {
660
756
  width: 100%;
661
- min-height: 30px;
662
- padding: 5px 8px;
663
- border: 1px solid var(--border);
664
- border-radius: 4px;
665
- background: var(--surface);
757
+ height: var(--field-h);
758
+ min-height: var(--field-h);
759
+ padding: 0 8px;
760
+ border: 1px solid transparent;
761
+ border-radius: var(--field-radius);
762
+ background-color: var(--field-bg);
666
763
  color: var(--ink);
667
764
  font: inherit;
668
765
  }
669
766
 
670
- .dz-field textarea {
671
- font-family: "Courier Prime", monospace;
672
- resize: vertical;
673
- line-height: 1.4;
767
+ /* a box holding a prefix or a swatch draws the box; what is inside it does not */
768
+ .dz-panel .dz-input {
769
+ display: flex;
770
+ align-items: center;
771
+ padding: 0;
674
772
  }
675
773
 
676
- .dz-field input[type="number"] {
677
- font-variant-numeric: tabular-nums;
774
+ .dz-panel .dz-field .dz-input input:not([type="checkbox"]):not([type="color"]):not([type="radio"]) {
775
+ flex: 1;
776
+ min-width: 0;
777
+ height: calc(var(--field-h) - 2px);
778
+ min-height: 0;
779
+ padding: 0 8px 0 0;
780
+ border: 0;
781
+ background: transparent;
678
782
  }
679
783
 
680
- .dz-field input[type="checkbox"] {
681
- width: 15px;
682
- height: 15px;
683
- min-height: 0;
684
- justify-self: start;
685
- accent-color: var(--accent-strong);
784
+ .dz-input-prefix {
785
+ flex: none;
786
+ width: 24px;
787
+ text-align: center;
788
+ color: var(--ink-soft);
686
789
  }
687
790
 
688
- /* a swatch, not a bar: a rail-wide block of black reads as a control's border */
689
- .dz-field input[type="color"] {
690
- width: 48px;
691
- height: 30px;
692
- padding: 2px;
693
- justify-self: start;
694
- cursor: pointer;
791
+ .dz-panel .dz-field input:not([type="checkbox"]):not([type="color"]):not([type="radio"]):hover,
792
+ .dz-panel .dz-choice-trigger:hover,
793
+ .dz-panel .dz-input:hover,
794
+ .dz-panel .dz-format:hover,
795
+ .dz-panel .dz-band-height:hover {
796
+ border-color: var(--border);
797
+ }
798
+
799
+ /* the box in hand turns to paper and takes the ring */
800
+ .dz-panel .dz-field input:not([type="checkbox"]):not([type="color"]):not([type="radio"]):focus-visible,
801
+ .dz-panel .dz-choice-trigger:focus-visible,
802
+ .dz-panel .dz-choice-trigger[aria-expanded="true"],
803
+ .dz-panel .dz-input:focus-within,
804
+ .dz-panel .dz-format:focus-visible,
805
+ .dz-panel .dz-band-height:focus-visible {
806
+ outline: none;
807
+ border-color: var(--accent-strong);
808
+ box-shadow: inset 0 0 0 1px var(--accent-strong);
809
+ background-color: var(--surface);
810
+ }
811
+
812
+ /* the box inside a ringed box does not ring again */
813
+ .dz-panel .dz-field .dz-input input:not([type="checkbox"]):not([type="color"]):not([type="radio"]):focus-visible {
814
+ border: 0;
815
+ box-shadow: none;
816
+ background: transparent;
817
+ }
818
+
819
+ /* no spinners: arrow keys step, and the label scrubs */
820
+ .dz-panel input[type="number"] {
821
+ appearance: textfield;
822
+ -moz-appearance: textfield;
823
+ font-variant-numeric: tabular-nums;
824
+ }
825
+
826
+ .dz-panel input[type="number"]::-webkit-inner-spin-button,
827
+ .dz-panel input[type="number"]::-webkit-outer-spin-button {
828
+ -webkit-appearance: none;
829
+ margin: 0;
695
830
  }
696
831
 
697
832
  /**
698
- * A colour control: the swatch, then either "None" or the button that takes
699
- * the colour off. The input stays underneath the none swatch, so a click on it
700
- * still opens the picker.
833
+ * A number shown but not editable - a margin switched off, showing what it
834
+ * comes back as. Faded with its letter, no hover outline, and nothing to scrub.
701
835
  */
702
- .dz-swatch {
703
- display: inline-flex;
704
- align-items: center;
705
- gap: 8px;
706
- justify-self: start;
836
+ .dz-panel .dz-input:has(input:disabled) {
837
+ opacity: .45;
838
+ border-color: transparent;
707
839
  }
708
840
 
709
- .dz-swatch-well {
710
- position: relative;
711
- display: block;
712
- width: 48px;
713
- height: 30px;
841
+ .dz-panel .dz-input:has(input:disabled) .dz-scrub,
842
+ .dz-panel .dz-field input:disabled {
843
+ cursor: not-allowed;
714
844
  }
715
845
 
716
- .dz-swatch-well input[type="color"] {
846
+ /**
847
+ * A choice is a button over a select that is still the control (see
848
+ * choiceBox). The select is kept out of sight and out of the tab order; the
849
+ * button is the box, with a chevron of our own.
850
+ */
851
+ .dz-choice {
852
+ position: relative;
717
853
  display: block;
854
+ min-width: 0;
718
855
  }
719
856
 
720
- /* white with a red slash through it: the usual way of saying "no colour" */
721
- .dz-swatch.is-none .dz-swatch-well::after {
722
- content: "";
857
+ .dz-choice .dz-choice-native {
723
858
  position: absolute;
724
- inset: 0;
725
- border: 1px solid var(--border);
726
- border-radius: 4px;
727
- background:
728
- linear-gradient(to top right,
729
- transparent calc(50% - 1px),
730
- var(--danger) calc(50% - 1px),
731
- var(--danger) calc(50% + 1px),
732
- transparent calc(50% + 1px)),
733
- var(--surface);
859
+ width: 1px;
860
+ height: 1px;
861
+ min-height: 0;
862
+ padding: 0;
863
+ border: 0;
864
+ opacity: 0;
734
865
  pointer-events: none;
735
866
  }
736
867
 
737
- .dz-swatch-none {
738
- display: none;
739
- color: var(--ink-soft);
740
- font-size: 11px;
868
+ .dz-panel .dz-choice-trigger {
869
+ display: flex;
870
+ align-items: center;
871
+ text-align: left;
872
+ padding-right: 22px;
873
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667080' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
874
+ background-repeat: no-repeat;
875
+ background-position: right 7px center;
876
+ background-size: 9px 6px;
877
+ text-overflow: ellipsis;
878
+ cursor: pointer;
741
879
  }
742
880
 
743
- .dz-swatch.is-none .dz-swatch-none {
744
- display: inline;
881
+ .dz-choice-value {
882
+ min-width: 0;
883
+ overflow: hidden;
884
+ text-overflow: ellipsis;
885
+ white-space: nowrap;
745
886
  }
746
887
 
747
- .dz-swatch .dz-swatch-clear {
748
- margin-left: 0;
749
- }
888
+ /**
889
+ * The listbox a choice opens - the shared dark menu, fixed to the window and
890
+ * placed by attachPanel so the chosen item sits over the button. It lives in
891
+ * the designer rather than the rail, so it takes the rail's type here.
892
+ */
893
+ .dz-listbox {
894
+ position: fixed;
895
+ top: 0;
896
+ left: 0;
897
+ z-index: 60;
898
+ max-height: min(360px, calc(100vh - 16px));
899
+ overflow-y: auto;
900
+ scrollbar-width: thin;
750
901
 
751
- .dz-swatch.is-none .dz-swatch-clear {
752
- display: none;
902
+ font-family: "Instrument Sans", system-ui, sans-serif;
903
+ font-size: 11px;
753
904
  }
754
905
 
755
906
  /**
756
- * A switch reads as the box and then what it does, on one line - with the
757
- * label in the 100px column, "New page for each group" wrapped into three.
907
+ * The shared menu sets its figures tabular, for the zoom list's percentages.
908
+ * A choice's items are words and samples - "(1,234)", "17 Jun 2026" - which
909
+ * tabular figures spread out until they read as typewriter text.
758
910
  */
911
+ .dz-listbox .dropdown-item {
912
+ font-variant-numeric: normal;
913
+ }
914
+
915
+ /* a dialog's choices open at the dialog's type size, not the rail's */
916
+ .dz-listbox.is-roomy {
917
+ font-size: 12px;
918
+ }
919
+
920
+ .dz-listbox.is-roomy .dropdown-item {
921
+ min-height: 28px;
922
+ }
923
+
924
+ /* a square that fills with ink when ticked */
925
+ .dz-panel input[type="checkbox"] {
926
+ appearance: none;
927
+ -webkit-appearance: none;
928
+ flex: none;
929
+ width: 14px;
930
+ height: 14px;
931
+ min-height: 0;
932
+ margin: 0;
933
+ border: 1px solid var(--ink-soft);
934
+ border-radius: 3px;
935
+ background: var(--surface) center / 10px 10px no-repeat;
936
+ cursor: pointer;
937
+ }
938
+
939
+ .dz-panel input[type="checkbox"]:checked {
940
+ border-color: var(--ink);
941
+ background-color: var(--ink);
942
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
943
+ }
944
+
945
+ .dz-panel input[type="checkbox"]:focus-visible {
946
+ outline: 2px solid var(--accent-strong);
947
+ outline-offset: 1px;
948
+ }
949
+
950
+ /* a switch is the box and then what it does, on one line */
759
951
  .dz-panel .dz-field-toggle {
760
- grid-template-columns: auto 1fr;
761
- column-gap: 10px;
952
+ flex-direction: row;
953
+ flex-wrap: wrap;
954
+ align-items: center;
955
+ gap: 4px 8px;
956
+ min-height: var(--field-h);
762
957
  }
763
958
 
764
959
  .dz-panel .dz-field-toggle input[type="checkbox"] {
@@ -766,23 +961,13 @@
766
961
  }
767
962
 
768
963
  .dz-panel .dz-field-toggle label {
964
+ flex: 1;
769
965
  color: var(--ink);
770
966
  cursor: pointer;
771
967
  }
772
968
 
773
- .dz-field input:focus-visible,
774
- .dz-field select:focus-visible,
775
- .dz-field textarea:focus-visible {
776
- outline: 2px solid var(--accent-strong);
777
- outline-offset: -1px;
778
- border-color: var(--accent-strong);
779
- }
780
-
781
- .dz-hint {
782
- grid-column: 1 / -1;
783
- color: var(--ink-soft);
784
- font-size: 11px;
785
- line-height: 1.4;
969
+ .dz-panel .dz-field-toggle .dz-hint {
970
+ flex-basis: 100%;
786
971
  }
787
972
 
788
973
  /**
@@ -791,6 +976,12 @@
791
976
  * pushed the controls apart until none could be read at a glance. The band
792
977
  * list's one-line notes stay, being part of what each row says.
793
978
  */
979
+ .dz-panel .dz-hint {
980
+ color: var(--ink-soft);
981
+ font-size: 11px;
982
+ line-height: 1.4;
983
+ }
984
+
794
985
  .dz-panel .dz-field > .dz-hint {
795
986
  display: none;
796
987
  }
@@ -799,37 +990,602 @@
799
990
  display: block;
800
991
  }
801
992
 
802
- /* ---------------- the tool footer ---------------- */
803
-
804
- /**
805
- * The tools sit under the page, not in the bar: the bar is about the report as
806
- * a whole, and these act on the band being looked at.
807
- *
808
- * A floating pill rather than a docked strip, matching the preview's pager - so
809
- * the two screens read as the same product, and neither takes a permanent slice
810
- * off the height of the page being worked on.
811
- */
812
- .dz-foot {
813
- position: absolute;
814
- left: 50%;
815
- bottom: var(--dz-foot-offset);
816
- transform: translateX(-50%);
817
- z-index: 5;
993
+ /* ---- colours: chip, hex, and a minus to take the colour off ---- */
818
994
 
819
- display: flex;
820
- align-items: center;
821
- gap: 4px;
822
- height: var(--dz-foot-height);
823
- padding: 0 8px;
995
+ .dz-panel .dz-swatch.dz-input {
996
+ position: relative;
997
+ gap: 8px;
998
+ padding-left: 6px;
999
+ }
824
1000
 
825
- background: var(--surface);
826
- border: 1px solid var(--border);
827
- border-radius: 999px;
828
- box-shadow: 0 4px 16px rgba(34, 39, 44, .12);
1001
+ /* the gap to the hex is the chip's, so no padding rule has to win for it */
1002
+ .dz-panel .dz-swatch-well {
1003
+ position: relative;
1004
+ display: block;
1005
+ flex: none;
1006
+ width: 16px;
1007
+ height: 16px;
1008
+ border-radius: 3px;
1009
+ overflow: hidden;
1010
+ box-shadow: inset 0 0 0 1px rgb(34 39 44 / .12);
829
1011
  }
830
1012
 
831
- .dz-tool {
832
- display: grid;
1013
+ .dz-panel .dz-swatch-well input[type="color"] {
1014
+ display: block;
1015
+ width: 100%;
1016
+ height: 100%;
1017
+ padding: 0;
1018
+ border: 0;
1019
+ background: none;
1020
+ cursor: pointer;
1021
+ }
1022
+
1023
+ .dz-panel .dz-swatch-well input[type="color"]::-webkit-color-swatch-wrapper {
1024
+ padding: 0;
1025
+ }
1026
+
1027
+ .dz-panel .dz-swatch-well input[type="color"]::-webkit-color-swatch {
1028
+ border: 0;
1029
+ border-radius: 3px;
1030
+ }
1031
+
1032
+ .dz-panel .dz-swatch-well input[type="color"]::-moz-color-swatch {
1033
+ border: 0;
1034
+ border-radius: 3px;
1035
+ }
1036
+
1037
+ /* white with a red slash through it: the usual way of saying "no colour" */
1038
+ .dz-panel .dz-swatch.is-none .dz-swatch-well::after {
1039
+ content: "";
1040
+ position: absolute;
1041
+ inset: 0;
1042
+ border: 1px solid var(--border);
1043
+ border-radius: 3px;
1044
+ background:
1045
+ linear-gradient(to top right,
1046
+ transparent calc(50% - .75px),
1047
+ var(--danger) calc(50% - .75px),
1048
+ var(--danger) calc(50% + .75px),
1049
+ transparent calc(50% + .75px)),
1050
+ var(--surface);
1051
+ pointer-events: none;
1052
+ }
1053
+
1054
+ .dz-panel .dz-hex {
1055
+ text-transform: uppercase;
1056
+ font-variant-numeric: tabular-nums;
1057
+ }
1058
+
1059
+ .dz-panel .dz-hex::placeholder {
1060
+ color: var(--ink-soft);
1061
+ text-transform: none;
1062
+ }
1063
+
1064
+ /**
1065
+ * The minus shows on the row being pointed at, as a design tool's does - and
1066
+ * floats over the box's empty right end rather than taking a slot in the row,
1067
+ * which a six-digit hex needs all of at half the rail's width.
1068
+ */
1069
+ .dz-panel .dz-swatch.dz-input .dz-swatch-clear {
1070
+ position: absolute;
1071
+ top: 1px;
1072
+ right: 1px;
1073
+ width: 20px;
1074
+ height: 20px;
1075
+ margin: 0;
1076
+ opacity: 0;
1077
+ }
1078
+
1079
+ .dz-panel .dz-swatch.dz-input:hover .dz-swatch-clear,
1080
+ .dz-panel .dz-swatch.dz-input:focus-within .dz-swatch-clear {
1081
+ opacity: 1;
1082
+ }
1083
+
1084
+ .dz-panel .dz-swatch.dz-input.is-none .dz-swatch-clear {
1085
+ display: none;
1086
+ }
1087
+
1088
+ /* a group band's fill: the chip alone, beside the band's height */
1089
+ .dz-panel .dz-band-fill {
1090
+ display: inline-flex;
1091
+ align-items: center;
1092
+ gap: 2px;
1093
+ }
1094
+
1095
+ .dz-panel .dz-band-fill .dz-swatch-clear {
1096
+ width: 18px;
1097
+ height: 18px;
1098
+ }
1099
+
1100
+ /* the clear button keeps its place, so the height box never moves */
1101
+ .dz-panel .dz-band-fill.is-none .dz-swatch-clear {
1102
+ display: inline-flex;
1103
+ visibility: hidden;
1104
+ }
1105
+
1106
+ /* ---- buttons ---- */
1107
+
1108
+ /* glyph buttons: no frame until pointed at */
1109
+ .dz-panel .dz-icon {
1110
+ display: inline-flex;
1111
+ align-items: center;
1112
+ justify-content: center;
1113
+ width: 24px;
1114
+ height: 24px;
1115
+ margin-left: 0;
1116
+ border: 0;
1117
+ border-radius: var(--field-radius);
1118
+ background: none;
1119
+ color: var(--ink-soft);
1120
+ font-size: 14px;
1121
+ }
1122
+
1123
+ .dz-panel .dz-icon:hover {
1124
+ background: var(--field-bg);
1125
+ color: var(--ink);
1126
+ }
1127
+
1128
+ .dz-panel .dz-icon:focus-visible {
1129
+ outline: 2px solid var(--accent-strong);
1130
+ outline-offset: -2px;
1131
+ }
1132
+
1133
+ /* a secondary button: hairline outline on paper, centred */
1134
+ .dz-panel .dz-add-row {
1135
+ width: 100%;
1136
+ height: var(--field-h);
1137
+ padding: 0 8px;
1138
+ border: 1px solid var(--border);
1139
+ border-radius: var(--field-radius);
1140
+ background: var(--surface);
1141
+ color: var(--ink);
1142
+ font: inherit;
1143
+ cursor: pointer;
1144
+ }
1145
+
1146
+ .dz-panel .dz-add-row:hover {
1147
+ border-color: var(--border);
1148
+ border-style: solid;
1149
+ background: var(--field-bg);
1150
+ color: var(--ink);
1151
+ }
1152
+
1153
+ .dz-panel .dz-add-row:focus-visible {
1154
+ outline: 2px solid var(--accent-strong);
1155
+ outline-offset: -1px;
1156
+ }
1157
+
1158
+ /* a format's summary is a box like any other, with its Edit on the right */
1159
+ .dz-panel .dz-format {
1160
+ display: flex;
1161
+ align-items: center;
1162
+ justify-content: space-between;
1163
+ gap: 8px;
1164
+ text-align: left;
1165
+ cursor: pointer;
1166
+ }
1167
+
1168
+ .dz-panel .dz-format-edit {
1169
+ color: var(--ink-soft);
1170
+ font-size: 11px;
1171
+ }
1172
+
1173
+ .dz-panel .dz-format:hover .dz-format-edit {
1174
+ color: var(--accent-ink);
1175
+ }
1176
+
1177
+ /* ---- the value box ---- */
1178
+
1179
+ .dz-panel .dz-brace {
1180
+ height: 20px;
1181
+ padding: 0 6px;
1182
+ border: 0;
1183
+ border-radius: 4px;
1184
+ background: none;
1185
+ color: var(--ink-soft);
1186
+ line-height: 20px;
1187
+ }
1188
+
1189
+ .dz-panel .dz-brace:hover {
1190
+ background: var(--field-bg);
1191
+ color: var(--accent-ink);
1192
+ }
1193
+
1194
+ .dz-panel .dz-value textarea {
1195
+ border-color: transparent;
1196
+ border-radius: var(--field-radius);
1197
+ }
1198
+
1199
+ .dz-panel .dz-value textarea:hover {
1200
+ border-color: var(--border);
1201
+ }
1202
+
1203
+ .dz-panel .dz-value textarea:focus-visible {
1204
+ outline: none;
1205
+ border-color: var(--accent-strong);
1206
+ box-shadow: inset 0 0 0 1px var(--accent-strong);
1207
+ }
1208
+
1209
+ /* the layer behind carries the box's fill, since the textarea is see-through */
1210
+ .dz-panel .dz-value-marks {
1211
+ border-radius: var(--field-radius);
1212
+ background: var(--field-bg);
1213
+ }
1214
+
1215
+ .dz-panel .dz-value:focus-within .dz-value-marks {
1216
+ background: var(--surface);
1217
+ }
1218
+
1219
+ /* ---- the stored picture ---- */
1220
+
1221
+ .dz-image {
1222
+ display: grid;
1223
+ gap: 8px;
1224
+ }
1225
+
1226
+ .dz-image-thumb,
1227
+ .dz-image-none {
1228
+ box-sizing: border-box;
1229
+ width: 100%;
1230
+ height: 80px;
1231
+ border-radius: var(--field-radius);
1232
+ background: var(--field-bg);
1233
+ }
1234
+
1235
+ .dz-image-thumb {
1236
+ object-fit: contain;
1237
+ }
1238
+
1239
+ .dz-image-none {
1240
+ display: flex;
1241
+ align-items: center;
1242
+ justify-content: center;
1243
+ color: var(--ink-soft);
1244
+ }
1245
+
1246
+ .dz-image-actions {
1247
+ display: flex;
1248
+ gap: 8px;
1249
+ }
1250
+
1251
+ /* nothing is being added by these two, so the plus goes */
1252
+ .dz-image-actions .dz-add-row::before {
1253
+ content: none;
1254
+ }
1255
+
1256
+ /* ---- a table's columns ---- */
1257
+
1258
+ /* rows that open, as layers do, packed closer than the section's controls */
1259
+ .dz-panel .dz-columns {
1260
+ row-gap: 2px;
1261
+ }
1262
+
1263
+ .dz-column-head {
1264
+ display: flex;
1265
+ align-items: center;
1266
+ gap: 6px;
1267
+ height: 28px;
1268
+ padding: 0 2px 0 4px;
1269
+ border-radius: var(--field-radius);
1270
+ list-style: none;
1271
+ cursor: pointer;
1272
+ user-select: none;
1273
+ }
1274
+
1275
+ .dz-column-head::-webkit-details-marker {
1276
+ display: none;
1277
+ }
1278
+
1279
+ .dz-column-head:hover {
1280
+ background: var(--field-bg);
1281
+ }
1282
+
1283
+ .dz-column-head:focus-visible {
1284
+ outline: 2px solid var(--accent-strong);
1285
+ outline-offset: -2px;
1286
+ }
1287
+
1288
+ /* a chevron that points at the column's controls once they are showing */
1289
+ .dz-column-caret {
1290
+ flex: none;
1291
+ width: 8px;
1292
+ height: 8px;
1293
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 10'%3E%3Cpath d='M1 1l4 4-4 4' fill='none' stroke='%23667080' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 5px 8px no-repeat;
1294
+ transition: transform .12s ease;
1295
+ }
1296
+
1297
+ .dz-column[open] > .dz-column-head .dz-column-caret {
1298
+ transform: rotate(90deg);
1299
+ }
1300
+
1301
+ @media (prefers-reduced-motion: reduce) {
1302
+ .dz-column-caret {
1303
+ transition: none;
1304
+ }
1305
+ }
1306
+
1307
+ .dz-column-number {
1308
+ display: inline-grid;
1309
+ place-items: center;
1310
+ flex: none;
1311
+ min-width: 18px;
1312
+ height: 18px;
1313
+ padding: 0 4px;
1314
+ border-radius: 4px;
1315
+ background: var(--field-bg);
1316
+ color: var(--ink-soft);
1317
+ font-size: 10px;
1318
+ font-variant-numeric: tabular-nums;
1319
+ }
1320
+
1321
+ .dz-column-head:hover .dz-column-number {
1322
+ background: var(--surface);
1323
+ }
1324
+
1325
+ .dz-column-name {
1326
+ flex: 1;
1327
+ min-width: 0;
1328
+ overflow: hidden;
1329
+ text-overflow: ellipsis;
1330
+ white-space: nowrap;
1331
+ font-weight: 600;
1332
+ }
1333
+
1334
+ .dz-column-width {
1335
+ flex: none;
1336
+ color: var(--ink-soft);
1337
+ font-variant-numeric: tabular-nums;
1338
+ }
1339
+
1340
+ /* remove waits on the right until the column is pointed at */
1341
+ .dz-panel .dz-column-head .dz-icon {
1342
+ width: 20px;
1343
+ height: 20px;
1344
+ opacity: 0;
1345
+ }
1346
+
1347
+ .dz-panel .dz-column-head:hover .dz-icon,
1348
+ .dz-panel .dz-column-head:focus-within .dz-icon,
1349
+ .dz-panel .dz-column-head .dz-icon:focus-visible {
1350
+ opacity: 1;
1351
+ }
1352
+
1353
+ /* open, the column's controls on the rail's grid */
1354
+ .dz-column-body {
1355
+ display: grid;
1356
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1357
+ gap: 8px;
1358
+ padding: 6px 0 12px;
1359
+ }
1360
+
1361
+ /* ---- a row of glyph buttons ---- */
1362
+
1363
+ /* a choice of a few, each a glyph, the chosen one raised on paper */
1364
+ .dz-segmented {
1365
+ display: flex;
1366
+ gap: 2px;
1367
+ height: var(--field-h);
1368
+ padding: 2px;
1369
+ border-radius: var(--field-radius);
1370
+ background: var(--field-bg);
1371
+ }
1372
+
1373
+ .dz-seg {
1374
+ position: relative;
1375
+ display: flex;
1376
+ flex: 1;
1377
+ min-width: 0;
1378
+ cursor: pointer;
1379
+ }
1380
+
1381
+ /* the radio stays, unseen, over its glyph: it is what takes the click and the keys */
1382
+ .dz-seg input {
1383
+ position: absolute;
1384
+ inset: 0;
1385
+ width: 100%;
1386
+ height: 100%;
1387
+ margin: 0;
1388
+ opacity: 0;
1389
+ cursor: pointer;
1390
+ }
1391
+
1392
+ .dz-seg-glyph {
1393
+ display: grid;
1394
+ flex: 1;
1395
+ place-items: center;
1396
+ border-radius: 3px;
1397
+ color: var(--ink-soft);
1398
+ }
1399
+
1400
+ .dz-seg-glyph svg {
1401
+ width: 14px;
1402
+ height: 14px;
1403
+ }
1404
+
1405
+ .dz-seg:hover .dz-seg-glyph {
1406
+ color: var(--ink);
1407
+ }
1408
+
1409
+ .dz-seg input:checked + .dz-seg-glyph {
1410
+ background: var(--surface);
1411
+ color: var(--ink);
1412
+ box-shadow: 0 0 0 1px var(--border);
1413
+ }
1414
+
1415
+ .dz-seg input:focus-visible + .dz-seg-glyph {
1416
+ outline: 2px solid var(--accent-strong);
1417
+ outline-offset: -1px;
1418
+ }
1419
+
1420
+ /* ---- the band list ---- */
1421
+
1422
+ /* a row per band, as a layer list is: tick, name, then its height */
1423
+ .dz-band-row {
1424
+ display: grid;
1425
+ grid-template-columns: minmax(0, 1fr) 52px;
1426
+ align-items: center;
1427
+ column-gap: 8px;
1428
+ row-gap: 0;
1429
+ min-height: 28px;
1430
+ }
1431
+
1432
+ .dz-band-row.has-fill {
1433
+ grid-template-columns: minmax(0, 1fr) auto 52px;
1434
+ }
1435
+
1436
+ .dz-band-name {
1437
+ display: flex;
1438
+ align-items: center;
1439
+ gap: 8px;
1440
+ min-width: 0;
1441
+ cursor: pointer;
1442
+ color: var(--ink-soft);
1443
+ }
1444
+
1445
+ .dz-band-name span {
1446
+ overflow: hidden;
1447
+ text-overflow: ellipsis;
1448
+ white-space: nowrap;
1449
+ }
1450
+
1451
+ /* an inactive band is legible but plainly off */
1452
+ .dz-band-row.is-on .dz-band-name {
1453
+ color: var(--ink);
1454
+ }
1455
+
1456
+ .dz-panel .dz-band-height {
1457
+ font-variant-numeric: tabular-nums;
1458
+ text-align: right;
1459
+ }
1460
+
1461
+ .dz-band-height-none {
1462
+ color: var(--ink-soft);
1463
+ font-size: 10px;
1464
+ text-align: right;
1465
+ }
1466
+
1467
+ .dz-band-row .dz-hint {
1468
+ grid-column: 1 / -1;
1469
+ padding: 0 0 4px 22px;
1470
+ font-size: 10px;
1471
+ line-height: 1.3;
1472
+ }
1473
+
1474
+ /* ---- a table's grouping levels ---- */
1475
+
1476
+ /**
1477
+ * A level is a block on the rail's grid, under a row naming it - the levels of
1478
+ * a nested grouping read as separate things, each with its own field, order,
1479
+ * page breaks and bands, rather than one run of controls.
1480
+ */
1481
+ .dz-panel .dz-group-level {
1482
+ display: grid;
1483
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1484
+ gap: 8px;
1485
+ padding-bottom: 12px;
1486
+ }
1487
+
1488
+ .dz-panel .dz-group-level + .dz-group-level {
1489
+ padding-top: 12px;
1490
+ border-top: 1px dashed var(--border);
1491
+ }
1492
+
1493
+ .dz-group-level-head {
1494
+ display: flex;
1495
+ align-items: center;
1496
+ justify-content: space-between;
1497
+ gap: 8px;
1498
+ height: 24px;
1499
+ }
1500
+
1501
+ .dz-group-level-name {
1502
+ min-width: 0;
1503
+ overflow: hidden;
1504
+ text-overflow: ellipsis;
1505
+ white-space: nowrap;
1506
+ color: var(--ink-soft);
1507
+ }
1508
+
1509
+ .dz-group-level-name b {
1510
+ color: var(--ink);
1511
+ font-weight: 600;
1512
+ }
1513
+
1514
+ /* the move and remove buttons together on the right, not pushed apart */
1515
+ .dz-group-level-actions {
1516
+ display: flex;
1517
+ flex: none;
1518
+ gap: 2px;
1519
+ }
1520
+
1521
+ /* ---- several items selected ---- */
1522
+
1523
+ .dz-selected {
1524
+ display: flex;
1525
+ flex-direction: column;
1526
+ gap: 2px;
1527
+ padding: 0;
1528
+ list-style: none;
1529
+ max-height: 30vh;
1530
+ overflow-y: auto;
1531
+ }
1532
+
1533
+ .dz-selected li {
1534
+ display: flex;
1535
+ align-items: center;
1536
+ gap: 8px;
1537
+ height: 28px;
1538
+ padding: 0 8px;
1539
+ border-radius: var(--field-radius);
1540
+ }
1541
+
1542
+ .dz-selected li:hover {
1543
+ background: var(--field-bg);
1544
+ }
1545
+
1546
+ .dz-selected-type {
1547
+ flex: none;
1548
+ width: 36px;
1549
+ color: var(--ink-soft);
1550
+ }
1551
+
1552
+ .dz-selected-id {
1553
+ overflow: hidden;
1554
+ text-overflow: ellipsis;
1555
+ white-space: nowrap;
1556
+ }
1557
+
1558
+ /* ---------------- the tool footer ---------------- */
1559
+
1560
+ /**
1561
+ * The tools sit under the page, not in the bar: the bar is about the report as
1562
+ * a whole, and these act on the band being looked at.
1563
+ *
1564
+ * A floating pill rather than a docked strip, matching the preview's pager - so
1565
+ * the two screens read as the same product, and neither takes a permanent slice
1566
+ * off the height of the page being worked on.
1567
+ */
1568
+ .dz-foot {
1569
+ position: absolute;
1570
+ left: 50%;
1571
+ bottom: var(--dz-foot-offset);
1572
+ transform: translateX(-50%);
1573
+ z-index: 5;
1574
+
1575
+ display: flex;
1576
+ align-items: center;
1577
+ gap: 4px;
1578
+ height: var(--dz-foot-height);
1579
+ padding: 0 8px;
1580
+
1581
+ background: var(--surface);
1582
+ border: 1px solid var(--border);
1583
+ border-radius: 999px;
1584
+ box-shadow: 0 4px 16px rgba(34, 39, 44, .12);
1585
+ }
1586
+
1587
+ .dz-tool {
1588
+ display: grid;
833
1589
  place-items: center;
834
1590
  width: 32px;
835
1591
  height: 32px;
@@ -1001,199 +1757,6 @@
1001
1757
  color: var(--accent-ink);
1002
1758
  }
1003
1759
 
1004
- /* the stored picture, small, with what can be done to it underneath */
1005
- .dz-image {
1006
- display: grid;
1007
- gap: 6px;
1008
- }
1009
-
1010
- .dz-image-thumb,
1011
- .dz-image-none {
1012
- box-sizing: border-box;
1013
- width: 100%;
1014
- height: 72px;
1015
- border: 1px solid var(--border);
1016
- border-radius: 5px;
1017
- background: var(--backdrop);
1018
- }
1019
-
1020
- .dz-image-thumb {
1021
- object-fit: contain;
1022
- }
1023
-
1024
- .dz-image-none {
1025
- display: flex;
1026
- align-items: center;
1027
- justify-content: center;
1028
- border-style: dashed;
1029
- color: var(--ink-soft);
1030
- }
1031
-
1032
- .dz-image-actions {
1033
- display: flex;
1034
- gap: 6px;
1035
- }
1036
-
1037
- /* nothing is being added by these two, so the plus goes */
1038
- .dz-image-actions .dz-add-row::before {
1039
- content: none;
1040
- }
1041
-
1042
- /* a column is a card, because four controls will not sit on one rail-wide row */
1043
- .dz-column {
1044
- margin-bottom: 10px;
1045
- padding: 8px;
1046
- border: 1px solid var(--border);
1047
- border-radius: 5px;
1048
- background: var(--backdrop);
1049
- }
1050
-
1051
- .dz-column-head {
1052
- display: flex;
1053
- align-items: center;
1054
- margin-bottom: 6px;
1055
- color: var(--ink-soft);
1056
- font-size: 10px;
1057
- letter-spacing: .06em;
1058
- }
1059
-
1060
- .dz-column .dz-field:last-child {
1061
- margin-bottom: 0;
1062
- }
1063
-
1064
- /* ---------------- the band list ---------------- */
1065
-
1066
- .dz-band-row {
1067
- display: grid;
1068
- grid-template-columns: 1fr 64px;
1069
- align-items: center;
1070
- column-gap: 10px;
1071
- row-gap: 2px;
1072
- padding: 6px 0;
1073
- }
1074
-
1075
- .dz-band-name {
1076
- display: flex;
1077
- align-items: center;
1078
- gap: 7px;
1079
- cursor: pointer;
1080
- color: var(--ink-soft);
1081
- }
1082
-
1083
- /* an inactive band is legible but plainly off */
1084
- .dz-band-row.is-on .dz-band-name {
1085
- color: var(--ink);
1086
- }
1087
-
1088
- .dz-band-name input {
1089
- width: 14px;
1090
- height: 14px;
1091
- accent-color: var(--accent-strong);
1092
- }
1093
-
1094
- .dz-band-height {
1095
- width: 100%;
1096
- min-height: 28px;
1097
- padding: 4px 8px;
1098
- border: 1px solid var(--border);
1099
- border-radius: 4px;
1100
- background: var(--surface);
1101
- color: var(--ink);
1102
- font: inherit;
1103
- font-variant-numeric: tabular-nums;
1104
- text-align: right;
1105
- }
1106
-
1107
- .dz-band-height:focus-visible {
1108
- outline: 2px solid var(--accent-strong);
1109
- outline-offset: -1px;
1110
- }
1111
-
1112
- .dz-band-height-none {
1113
- color: var(--ink-soft);
1114
- font-size: 10px;
1115
- text-align: right;
1116
- }
1117
-
1118
- .dz-band-row .dz-hint {
1119
- grid-column: 1 / -1;
1120
- padding-left: 21px;
1121
- font-size: 10px;
1122
- }
1123
-
1124
- /* ---------------- a table's grouping levels ---------------- */
1125
-
1126
- /**
1127
- * A card per level, as a column is a card: the levels of a nested grouping
1128
- * read as separate things, each with its own field, order, page breaks and
1129
- * bands, rather than one run of controls.
1130
- */
1131
- .dz-group-level {
1132
- margin-bottom: 12px;
1133
- padding: 12px;
1134
- border: 1px solid var(--border);
1135
- border-radius: 6px;
1136
- background: var(--backdrop);
1137
- }
1138
-
1139
- .dz-group-level-head {
1140
- display: flex;
1141
- align-items: center;
1142
- justify-content: space-between;
1143
- gap: 8px;
1144
- margin-bottom: 12px;
1145
- padding-bottom: 10px;
1146
- border-bottom: 1px solid var(--border);
1147
- }
1148
-
1149
- .dz-group-level-name {
1150
- overflow: hidden;
1151
- text-overflow: ellipsis;
1152
- white-space: nowrap;
1153
- color: var(--ink-soft);
1154
- font-size: 10px;
1155
- letter-spacing: .06em;
1156
- text-transform: uppercase;
1157
- }
1158
-
1159
- .dz-group-level-name b {
1160
- color: var(--ink);
1161
- font-family: "Courier Prime", monospace;
1162
- font-size: 12px;
1163
- font-weight: 600;
1164
- letter-spacing: 0;
1165
- text-transform: none;
1166
- }
1167
-
1168
- /* the move and remove buttons together on the right, not pushed apart */
1169
- .dz-group-level-actions {
1170
- display: flex;
1171
- flex: none;
1172
- gap: 2px;
1173
- }
1174
-
1175
- .dz-group-level-actions .dz-icon {
1176
- margin-left: 0;
1177
- }
1178
-
1179
- /* less the card's own padding, so its controls line up with the rail's */
1180
- .dz-group-level .dz-field:not(.dz-field-toggle) {
1181
- grid-template-columns: 88px minmax(0, 1fr);
1182
- }
1183
-
1184
- .dz-group-level .dz-band-row:last-child {
1185
- padding-bottom: 0;
1186
- }
1187
-
1188
- /* the grouping section's buttons sit clear of the cards above them */
1189
- .dz-grouping .dz-add-row {
1190
- margin-top: 4px;
1191
- }
1192
-
1193
- .dz-grouping .dz-add-row + .dz-add-row {
1194
- margin-top: 8px;
1195
- }
1196
-
1197
1760
  /* ---------------- the corner ---------------- */
1198
1761
 
1199
1762
  /**
@@ -1301,6 +1864,13 @@
1301
1864
 
1302
1865
  /* ---------------- the dialog ---------------- */
1303
1866
 
1867
+ /**
1868
+ * The designer's dialogs take the rail's look a size up: grey borderless
1869
+ * boxes 32px tall that outline themselves on hover and take the accent ring
1870
+ * on focus, labels small and grey above them, choices that open the shared
1871
+ * menu. The card, its title bar and its footer are shared/modal.css.
1872
+ */
1873
+
1304
1874
  /* wide enough for a report name to be read in full */
1305
1875
  .modal-card.is-roomy {
1306
1876
  width: min(560px, calc(100vw - 32px));
@@ -1315,17 +1885,71 @@
1315
1885
  * because of it. Narrow is now the exception, and it asks for itself by name.
1316
1886
  */
1317
1887
  .modal-card .dz-field {
1888
+ display: grid;
1318
1889
  grid-template-columns: 1fr;
1319
1890
  gap: 6px;
1320
- margin-bottom: 14px;
1891
+ margin-bottom: 12px;
1321
1892
  }
1322
1893
 
1323
1894
  .modal-card .dz-field label {
1324
1895
  color: var(--ink-soft);
1325
- font-size: 10px;
1326
- font-weight: 600;
1327
- letter-spacing: .06em;
1328
- text-transform: uppercase;
1896
+ font-size: 11px;
1897
+ }
1898
+
1899
+ /* every box in a dialog */
1900
+ .modal-card .dz-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
1901
+ .modal-card .dz-hl-rule input[type="text"],
1902
+ .modal-card .dz-choice-trigger {
1903
+ width: 100%;
1904
+ height: 32px;
1905
+ padding: 0 10px;
1906
+ border: 1px solid transparent;
1907
+ border-radius: 6px;
1908
+ background-color: var(--surface-muted);
1909
+ color: var(--ink);
1910
+ font: inherit;
1911
+ font-size: 12px;
1912
+ }
1913
+
1914
+ .modal-card .dz-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):hover,
1915
+ .modal-card .dz-hl-rule input[type="text"]:hover,
1916
+ .modal-card .dz-choice-trigger:hover {
1917
+ border-color: var(--border);
1918
+ }
1919
+
1920
+ .modal-card .dz-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus-visible,
1921
+ .modal-card .dz-hl-rule input[type="text"]:focus-visible,
1922
+ .modal-card .dz-choice-trigger:focus-visible,
1923
+ .modal-card .dz-choice-trigger[aria-expanded="true"] {
1924
+ outline: none;
1925
+ border-color: var(--accent-strong);
1926
+ box-shadow: inset 0 0 0 1px var(--accent-strong);
1927
+ background-color: var(--surface);
1928
+ }
1929
+
1930
+ .modal-card input[type="number"] {
1931
+ appearance: textfield;
1932
+ -moz-appearance: textfield;
1933
+ font-variant-numeric: tabular-nums;
1934
+ }
1935
+
1936
+ .modal-card input[type="number"]::-webkit-inner-spin-button,
1937
+ .modal-card input[type="number"]::-webkit-outer-spin-button {
1938
+ -webkit-appearance: none;
1939
+ margin: 0;
1940
+ }
1941
+
1942
+ /* a choice: the box, with the same chevron as the rail's */
1943
+ .modal-card .dz-choice-trigger {
1944
+ display: flex;
1945
+ align-items: center;
1946
+ padding-right: 28px;
1947
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667080' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
1948
+ background-repeat: no-repeat;
1949
+ background-position: right 10px center;
1950
+ background-size: 9px 6px;
1951
+ text-align: left;
1952
+ cursor: pointer;
1329
1953
  }
1330
1954
 
1331
1955
  /* a count is two digits; a box the width of the card would be absurd */
@@ -1338,12 +1962,31 @@
1338
1962
 
1339
1963
  .modal-card .dz-field-count label {
1340
1964
  font-size: 12px;
1341
- font-weight: 400;
1342
- letter-spacing: 0;
1343
- text-transform: none;
1344
1965
  color: var(--ink);
1345
1966
  }
1346
1967
 
1968
+ /* glyph buttons in a dialog: no frame until pointed at, as in the rail */
1969
+ .modal-card .dz-icon {
1970
+ width: 28px;
1971
+ height: 28px;
1972
+ margin-left: 0;
1973
+ border: 0;
1974
+ border-radius: 6px;
1975
+ background: none;
1976
+ color: var(--ink-soft);
1977
+ font-size: 15px;
1978
+ }
1979
+
1980
+ .modal-card .dz-icon:hover {
1981
+ background: var(--surface-muted);
1982
+ color: var(--ink);
1983
+ }
1984
+
1985
+ .modal-card .dz-icon:focus-visible {
1986
+ outline: 2px solid var(--accent-strong);
1987
+ outline-offset: -2px;
1988
+ }
1989
+
1347
1990
  /* ---------------- the bar's controls ---------------- */
1348
1991
 
1349
1992
  /* the report's name, with what the disk currently knows underneath it */
@@ -1431,12 +2074,12 @@
1431
2074
  */
1432
2075
  .modal-card .dz-field-picker .dropdown-trigger,
1433
2076
  .modal-card .dz-field-picker .dropdown-item {
1434
- font-size: 13px;
2077
+ font-size: 12px;
1435
2078
  }
1436
2079
 
1437
2080
  .modal-card .dz-field-picker .dropdown-trigger {
1438
- height: 38px;
1439
- padding: 0 12px;
2081
+ height: 32px;
2082
+ padding: 0 10px;
1440
2083
  }
1441
2084
 
1442
2085
  /**
@@ -1448,15 +2091,15 @@
1448
2091
  * so it clips rather than pushing the menu wider than the trigger under it.
1449
2092
  */
1450
2093
  .modal-card .dz-field-picker .dropdown-item {
1451
- padding: 9px 12px 9px 8px;
2094
+ padding: 6px 12px 6px 6px;
1452
2095
  overflow: hidden;
1453
2096
  text-overflow: ellipsis;
1454
2097
  }
1455
2098
 
2099
+ /* exactly the trigger's width - dropdown.js sets it, a fixed menu has no 100% to use */
1456
2100
  .modal-card .dz-field-picker .dropdown-menu {
1457
- width: 100%;
2101
+ width: var(--dropdown-trigger-width, auto);
1458
2102
  max-height: 40vh;
1459
- overflow-y: auto;
1460
2103
  }
1461
2104
 
1462
2105
  /**
@@ -1488,11 +2131,13 @@
1488
2131
  }
1489
2132
 
1490
2133
  .dz-payload {
2134
+ display: block;
1491
2135
  width: 100%;
2136
+ margin-top: 12px;
1492
2137
  padding: 10px 12px;
1493
- border: 1px solid var(--border);
1494
- border-radius: 6px;
1495
- background: var(--backdrop);
2138
+ border: 1px solid transparent;
2139
+ border-radius: 8px;
2140
+ background: var(--surface-muted);
1496
2141
  color: var(--ink);
1497
2142
 
1498
2143
  font-family: "Courier Prime", monospace;
@@ -1502,10 +2147,15 @@
1502
2147
  resize: vertical;
1503
2148
  }
1504
2149
 
2150
+ .dz-payload:hover {
2151
+ border-color: var(--border);
2152
+ }
2153
+
1505
2154
  .dz-payload:focus-visible {
1506
- outline: 2px solid var(--accent-strong);
1507
- outline-offset: -1px;
2155
+ outline: none;
1508
2156
  border-color: var(--accent-strong);
2157
+ box-shadow: inset 0 0 0 1px var(--accent-strong);
2158
+ background: var(--surface);
1509
2159
  }
1510
2160
 
1511
2161
  /**
@@ -1717,41 +2367,6 @@
1717
2367
  outline-style: dashed;
1718
2368
  }
1719
2369
 
1720
- .dz-selected {
1721
- display: flex;
1722
- flex-direction: column;
1723
- gap: 4px;
1724
- margin-bottom: 10px;
1725
- padding: 0;
1726
- list-style: none;
1727
- max-height: 30vh;
1728
- overflow-y: auto;
1729
- }
1730
-
1731
- .dz-selected li {
1732
- display: flex;
1733
- align-items: baseline;
1734
- gap: 8px;
1735
- padding: 5px 8px;
1736
- border: 1px solid var(--border);
1737
- border-radius: 5px;
1738
- background: var(--backdrop);
1739
- }
1740
-
1741
- .dz-selected-type {
1742
- color: var(--ink-soft);
1743
- font-size: 10px;
1744
- letter-spacing: .04em;
1745
- text-transform: uppercase;
1746
- }
1747
-
1748
- .dz-selected-id {
1749
- font-family: "Courier Prime", monospace;
1750
- overflow: hidden;
1751
- text-overflow: ellipsis;
1752
- white-space: nowrap;
1753
- }
1754
-
1755
2370
  /* ---------------- the value box ---------------- */
1756
2371
 
1757
2372
  .dz-field-top {
@@ -1939,38 +2554,38 @@ a.dz-tool[aria-disabled="true"]:hover {
1939
2554
  width: min(480px, calc(100vw - 32px));
1940
2555
  }
1941
2556
 
1942
- /**
1943
- * The dialog sits outside the rail, so its controls inherited the page's 16px
1944
- * and towered over their 10px labels. 13px, as the other dialogs' choices are.
1945
- */
1946
- .dz-format-card .dz-field select,
1947
- .dz-format-card .dz-field input[type="text"],
1948
- .dz-format-card .dz-field input[type="number"] {
1949
- min-height: 32px;
1950
- padding: 5px 8px;
1951
- font-size: 13px;
1952
- }
1953
-
1954
2557
  .dz-format-types {
1955
- display: flex;
1956
- flex-wrap: wrap;
1957
- gap: 6px;
1958
2558
  margin: 0 0 16px;
1959
2559
  padding: 0;
1960
2560
  border: 0;
1961
2561
  }
1962
2562
 
1963
2563
  .dz-format-types legend {
1964
- margin-bottom: 8px;
2564
+ margin-bottom: 6px;
2565
+ padding: 0;
1965
2566
  color: var(--ink-soft);
1966
- font-size: 10px;
1967
- letter-spacing: .06em;
1968
- text-transform: uppercase;
2567
+ font-size: 11px;
2568
+ }
2569
+
2570
+ /**
2571
+ * The type is a row of buttons in a grey track, the chosen one raised on
2572
+ * paper - a design tool's segmented control. The radio inside each stays for
2573
+ * the keyboard and for the form.
2574
+ */
2575
+ .dz-format-track {
2576
+ display: flex;
2577
+ gap: 2px;
2578
+ padding: 2px;
2579
+ border-radius: 8px;
2580
+ background: var(--surface-muted);
1969
2581
  }
1970
2582
 
1971
- /* a type is a pill; the radio inside stays for the keyboard and for forms */
2583
+ /* sized to their names, so "Date & time" is read whole beside "Date" */
1972
2584
  .dz-format-type {
1973
2585
  position: relative;
2586
+ display: flex;
2587
+ flex: 1 1 auto;
2588
+ min-width: 0;
1974
2589
  cursor: pointer;
1975
2590
  }
1976
2591
 
@@ -1981,33 +2596,37 @@ a.dz-tool[aria-disabled="true"]:hover {
1981
2596
  }
1982
2597
 
1983
2598
  .dz-format-type span {
1984
- display: inline-block;
1985
- padding: 6px 12px;
1986
- border: 1px solid var(--border);
1987
- border-radius: 999px;
2599
+ flex: 1;
2600
+ padding: 6px 8px;
2601
+ overflow: hidden;
2602
+ border-radius: 6px;
1988
2603
  color: var(--ink-soft);
1989
2604
  font-size: 12px;
2605
+ text-align: center;
2606
+ text-overflow: ellipsis;
2607
+ white-space: nowrap;
1990
2608
  }
1991
2609
 
1992
2610
  .dz-format-type:hover span {
1993
- border-color: var(--accent);
2611
+ color: var(--ink);
1994
2612
  }
1995
2613
 
1996
2614
  .dz-format-type input:checked + span {
1997
- border-color: var(--accent-strong);
1998
- background: var(--accent-soft);
1999
- color: var(--accent-ink);
2615
+ background: var(--surface);
2616
+ color: var(--ink);
2617
+ font-weight: 600;
2618
+ box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(34, 39, 44, .08);
2000
2619
  }
2001
2620
 
2002
2621
  .dz-format-type input:focus-visible + span {
2003
2622
  outline: 2px solid var(--accent-strong);
2004
- outline-offset: 1px;
2623
+ outline-offset: -1px;
2005
2624
  }
2006
2625
 
2007
2626
  .dz-format-group {
2008
2627
  display: grid;
2009
2628
  grid-template-columns: 1fr 1fr;
2010
- column-gap: 14px;
2629
+ column-gap: 12px;
2011
2630
  }
2012
2631
 
2013
2632
  .dz-format-group[hidden] {
@@ -2017,6 +2636,7 @@ a.dz-tool[aria-disabled="true"]:hover {
2017
2636
  .dz-format-group .modal-summary {
2018
2637
  grid-column: 1 / -1;
2019
2638
  margin-top: 0;
2639
+ margin-bottom: 12px;
2020
2640
  font-size: 11px;
2021
2641
  }
2022
2642
 
@@ -2031,16 +2651,14 @@ a.dz-tool[aria-disabled="true"]:hover {
2031
2651
  gap: 12px;
2032
2652
  margin-top: 4px;
2033
2653
  padding: 12px;
2034
- border-radius: 6px;
2035
- background: var(--backdrop);
2654
+ border: 1px dashed var(--border);
2655
+ border-radius: 8px;
2036
2656
  }
2037
2657
 
2038
2658
  .dz-format-sample-label {
2039
2659
  flex: none;
2040
2660
  color: var(--ink-soft);
2041
- font-size: 10px;
2042
- letter-spacing: .06em;
2043
- text-transform: uppercase;
2661
+ font-size: 11px;
2044
2662
  }
2045
2663
 
2046
2664
  .dz-format-sample-values {
@@ -2074,42 +2692,36 @@ a.dz-tool[aria-disabled="true"]:hover {
2074
2692
  width: min(640px, calc(100vw - 32px));
2075
2693
  }
2076
2694
 
2077
- /* the dialog's own buttons and notes at the rules' size, not the page's 16px */
2078
- .dz-highlight-card .dz-add-row {
2079
- height: 34px;
2080
- font-size: 13px;
2081
- }
2082
-
2695
+ /**
2696
+ * The rules are a list, as a design tool lists layers or fills: each a row
2697
+ * across the whole card, ruled off from the next, rather than a card of its
2698
+ * own. The list scrolls inside the dialog once there are many.
2699
+ */
2083
2700
  .dz-hl-rules {
2084
2701
  display: grid;
2085
- gap: 10px;
2086
2702
  max-height: 55vh;
2087
- margin-bottom: 12px;
2703
+ margin: -16px calc(-1 * var(--modal-x)) 12px;
2088
2704
  overflow-y: auto;
2089
2705
  }
2090
2706
 
2091
2707
  /**
2092
- * A rule is a card on a three-column grid - its label, its controls, its own
2093
- * buttons - the same for every rule, so each control sits under the matching
2094
- * one in the rule above whatever the label says or the test needs.
2708
+ * A rule is three columns - its label, its controls, its own buttons - the
2709
+ * same for every rule, so each control sits under the matching one in the rule
2710
+ * above whatever the label says or the test needs.
2095
2711
  */
2096
2712
  .dz-hl-rule {
2097
2713
  display: grid;
2098
- grid-template-columns: 72px minmax(0, 1fr) 56px;
2714
+ grid-template-columns: 64px minmax(0, 1fr) 60px;
2099
2715
  align-items: center;
2100
2716
  column-gap: 12px;
2101
- row-gap: 10px;
2102
- padding: 12px 14px;
2103
- border: 1px solid var(--border);
2104
- border-radius: 6px;
2105
- background: var(--backdrop);
2717
+ row-gap: 8px;
2718
+ padding: 14px var(--modal-x);
2719
+ border-bottom: 1px solid var(--border);
2106
2720
  }
2107
2721
 
2108
2722
  .dz-hl-label {
2109
2723
  color: var(--ink-soft);
2110
2724
  font-size: 11px;
2111
- letter-spacing: .04em;
2112
- text-transform: uppercase;
2113
2725
  }
2114
2726
 
2115
2727
  /**
@@ -2138,127 +2750,171 @@ a.dz-tool[aria-disabled="true"]:hover {
2138
2750
  .dz-hl-and {
2139
2751
  flex: none;
2140
2752
  color: var(--ink-soft);
2141
- font-size: 12px;
2142
2753
  }
2143
2754
 
2144
2755
  .dz-hl-novalue {
2145
2756
  color: var(--ink-soft);
2146
- font-size: 12px;
2147
2757
  font-style: italic;
2148
2758
  }
2149
2759
 
2150
- /* every control one height, one border, one type size */
2151
- .dz-hl-rule select,
2152
- .dz-hl-rule input[type="text"] {
2153
- width: 100%;
2154
- height: 32px;
2155
- padding: 0 8px;
2156
- border: 1px solid var(--border);
2157
- border-radius: 4px;
2158
- background: var(--surface);
2159
- color: var(--ink);
2160
- font: inherit;
2161
- font-size: 13px;
2162
- }
2163
-
2164
- .dz-hl-rule select:focus-visible,
2165
- .dz-hl-rule input[type="text"]:focus-visible,
2166
- .dz-hl-toggle:focus-visible {
2167
- outline: 2px solid var(--accent-strong);
2168
- outline-offset: -1px;
2169
- border-color: var(--accent-strong);
2170
- }
2171
-
2172
2760
  .dz-hl-actions {
2173
2761
  display: flex;
2174
2762
  justify-content: flex-end;
2175
- gap: 4px;
2763
+ gap: 2px;
2176
2764
  }
2177
2765
 
2178
- .dz-hl-actions .dz-icon,
2179
2766
  .dz-hl-slot {
2180
- width: 24px;
2181
- height: 24px;
2182
- margin-left: 0;
2767
+ width: 28px;
2768
+ height: 28px;
2183
2769
  }
2184
2770
 
2185
2771
  /* the style line: colours, then weight and slant, then the sample at the end */
2186
2772
  .dz-hl-style {
2187
2773
  display: flex;
2188
2774
  align-items: center;
2189
- gap: 14px;
2775
+ gap: 8px;
2190
2776
  min-width: 0;
2191
2777
  }
2192
2778
 
2779
+ /**
2780
+ * A colour is a grey box like the others: the chip, what it colours, and a
2781
+ * minus to take it off - a design tool's fill row. The swatch's own wrapper
2782
+ * steps aside (display: contents) so the three line up in that order.
2783
+ */
2193
2784
  .dz-hl-color {
2194
2785
  display: inline-flex;
2195
2786
  align-items: center;
2196
- gap: 6px;
2787
+ gap: 8px;
2788
+ height: 32px;
2789
+ padding: 0 4px 0 8px;
2790
+ border: 1px solid transparent;
2791
+ border-radius: 6px;
2792
+ background: var(--surface-muted);
2793
+ }
2794
+
2795
+ .dz-hl-color:hover {
2796
+ border-color: var(--border);
2797
+ }
2798
+
2799
+ .dz-hl-color:focus-within {
2800
+ border-color: var(--accent-strong);
2801
+ box-shadow: inset 0 0 0 1px var(--accent-strong);
2802
+ background: var(--surface);
2803
+ }
2804
+
2805
+ .dz-hl-rule .dz-swatch {
2806
+ display: contents;
2197
2807
  }
2198
2808
 
2199
2809
  .dz-hl-color-label {
2200
- color: var(--ink-soft);
2810
+ order: 1;
2811
+ color: var(--ink);
2201
2812
  font-size: 12px;
2202
2813
  }
2203
2814
 
2204
- .dz-hl-rule .dz-swatch {
2205
- gap: 2px;
2815
+ .dz-hl-rule .dz-swatch-well {
2816
+ position: relative;
2817
+ display: block;
2818
+ flex: none;
2819
+ order: 0;
2820
+ width: 16px;
2821
+ height: 16px;
2822
+ overflow: hidden;
2823
+ border-radius: 4px;
2824
+ box-shadow: inset 0 0 0 1px rgba(34, 39, 44, .12);
2206
2825
  }
2207
2826
 
2208
- .dz-hl-rule .dz-swatch-well,
2209
2827
  .dz-hl-rule .dz-swatch-well input[type="color"] {
2210
- width: 40px;
2211
- height: 32px;
2828
+ display: block;
2829
+ width: 100%;
2830
+ height: 100%;
2831
+ padding: 0;
2832
+ border: 0;
2833
+ background: none;
2834
+ cursor: pointer;
2212
2835
  }
2213
2836
 
2214
- .dz-hl-rule .dz-swatch-well input[type="color"] {
2215
- padding: 3px;
2837
+ .dz-hl-rule .dz-swatch-well input[type="color"]::-webkit-color-swatch-wrapper {
2838
+ padding: 0;
2839
+ }
2840
+
2841
+ .dz-hl-rule .dz-swatch-well input[type="color"]::-webkit-color-swatch {
2842
+ border: 0;
2843
+ border-radius: 4px;
2844
+ }
2845
+
2846
+ .dz-hl-rule .dz-swatch-well input[type="color"]::-moz-color-swatch {
2847
+ border: 0;
2848
+ border-radius: 4px;
2849
+ }
2850
+
2851
+ /* white with a red slash through it: the usual way of saying "no colour" */
2852
+ .dz-hl-rule .dz-swatch.is-none .dz-swatch-well::after {
2853
+ content: "";
2854
+ position: absolute;
2855
+ inset: 0;
2216
2856
  border: 1px solid var(--border);
2217
2857
  border-radius: 4px;
2218
- background: var(--surface);
2219
- cursor: pointer;
2858
+ background:
2859
+ linear-gradient(to top right,
2860
+ transparent calc(50% - .75px),
2861
+ var(--danger) calc(50% - .75px),
2862
+ var(--danger) calc(50% + .75px),
2863
+ transparent calc(50% + .75px)),
2864
+ var(--surface);
2865
+ pointer-events: none;
2220
2866
  }
2221
2867
 
2222
2868
  /**
2223
- * The clear button keeps its place when there is no colour to clear, so the
2224
- * fill, the toggles and the sample never shift from one rule to the next.
2869
+ * The minus keeps its place when there is no colour to clear, so the fill,
2870
+ * the toggles and the sample never shift from one rule to the next.
2225
2871
  */
2226
- .dz-hl-rule .dz-swatch.is-none .dz-swatch-clear {
2227
- display: inline-flex;
2228
- visibility: hidden;
2229
- }
2230
-
2231
2872
  .dz-hl-rule .dz-swatch-clear {
2873
+ order: 2;
2232
2874
  width: 20px;
2233
2875
  height: 20px;
2234
- margin-left: 0;
2876
+ font-size: 14px;
2877
+ }
2878
+
2879
+ .dz-hl-rule .dz-swatch.is-none .dz-swatch-clear {
2880
+ visibility: hidden;
2235
2881
  }
2236
2882
 
2883
+ /* bold and italic: two glyph buttons in a grey track, the one on raised */
2237
2884
  .dz-hl-toggles {
2238
2885
  display: inline-flex;
2239
- gap: 4px;
2886
+ gap: 2px;
2887
+ height: 32px;
2888
+ padding: 2px;
2889
+ border-radius: 6px;
2890
+ background: var(--surface-muted);
2240
2891
  }
2241
2892
 
2242
2893
  .dz-hl-toggle {
2243
- width: 32px;
2244
- height: 32px;
2245
- border: 1px solid var(--border);
2894
+ width: 28px;
2895
+ height: 28px;
2896
+ border: 0;
2246
2897
  border-radius: 4px;
2247
- background: var(--surface);
2248
- color: var(--ink);
2898
+ background: none;
2899
+ color: var(--ink-soft);
2249
2900
  font: inherit;
2250
2901
  font-size: 13px;
2251
2902
  cursor: pointer;
2252
2903
  }
2253
2904
 
2254
2905
  .dz-hl-toggle:hover {
2255
- border-color: var(--accent);
2906
+ color: var(--ink);
2256
2907
  }
2257
2908
 
2258
2909
  .dz-hl-toggle[aria-pressed="true"] {
2259
- border-color: var(--accent-strong);
2260
- background: var(--accent-soft);
2261
- color: var(--accent-ink);
2910
+ background: var(--surface);
2911
+ color: var(--ink);
2912
+ box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(34, 39, 44, .08);
2913
+ }
2914
+
2915
+ .dz-hl-toggle:focus-visible {
2916
+ outline: 2px solid var(--accent-strong);
2917
+ outline-offset: -1px;
2262
2918
  }
2263
2919
 
2264
2920
  /* what the rule does to a value, in the rule's own style, at the line's end */
@@ -2272,40 +2928,35 @@ a.dz-tool[aria-disabled="true"]:hover {
2272
2928
  padding: 0 10px;
2273
2929
  overflow: hidden;
2274
2930
  border: 1px dashed var(--border);
2275
- border-radius: 4px;
2931
+ border-radius: 6px;
2276
2932
  background: var(--surface);
2277
2933
  font-family: "Courier Prime", monospace;
2278
2934
  font-size: 13px;
2279
2935
  white-space: nowrap;
2280
2936
  }
2281
2937
 
2282
- /* a group band's row: its name, its background, its height */
2283
- .dz-band-row.has-fill {
2284
- grid-template-columns: 1fr auto 64px;
2285
- }
2286
-
2287
- .dz-band-fill .dz-swatch-well,
2288
- .dz-band-fill .dz-swatch-well input[type="color"] {
2289
- width: 36px;
2290
- height: 28px;
2291
- }
2292
-
2293
- .dz-band-fill .dz-swatch-well input[type="color"] {
2294
- padding: 2px;
2938
+ /* add a rule: a secondary button, as the footer's are */
2939
+ .dz-highlight-card .dz-add-row {
2940
+ width: auto;
2941
+ height: 32px;
2942
+ padding: 0 12px;
2295
2943
  border: 1px solid var(--border);
2296
- border-radius: 4px;
2944
+ border-radius: 6px;
2297
2945
  background: var(--surface);
2298
- cursor: pointer;
2946
+ color: var(--ink);
2947
+ font: inherit;
2948
+ font-size: 12px;
2949
+ font-weight: 500;
2299
2950
  }
2300
2951
 
2301
- /* the clear button keeps its place, so the height box never moves */
2302
- .dz-band-fill.is-none .dz-swatch-clear {
2303
- display: inline-flex;
2304
- visibility: hidden;
2952
+ .dz-highlight-card .dz-add-row:hover {
2953
+ border-style: solid;
2954
+ border-color: var(--border);
2955
+ background: var(--surface-muted);
2956
+ color: var(--ink);
2305
2957
  }
2306
2958
 
2307
- .dz-band-fill .dz-swatch-clear {
2308
- width: 18px;
2309
- height: 18px;
2310
- margin-left: 0;
2959
+ .dz-highlight-card .dz-add-row:focus-visible {
2960
+ outline: 2px solid var(--accent-strong);
2961
+ outline-offset: 2px;
2311
2962
  }