@lijinmei-810/dev-inspector 0.1.2 → 0.2.0

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.
package/dist/index.css CHANGED
@@ -314,6 +314,9 @@
314
314
  sans-serif;
315
315
  overflow: hidden;
316
316
  }
317
+ .di-panel--workbench-open {
318
+ z-index: 2147483646;
319
+ }
317
320
  .di-panel--picking .di-body * {
318
321
  cursor: crosshair !important;
319
322
  }
@@ -357,132 +360,2981 @@
357
360
  line-height: 1;
358
361
  padding: 0;
359
362
  }
360
- .di-head-icon-btn:hover:not(:disabled),
361
- .di-head-icon-btn:focus-visible:not(:disabled) {
362
- background: #faf5ff;
363
+ .di-head-icon-btn:hover:not(:disabled),
364
+ .di-head-icon-btn:focus-visible:not(:disabled) {
365
+ background: #faf5ff;
366
+ border-color: #c4b5fd;
367
+ color: #7c3aed;
368
+ outline: none;
369
+ box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12);
370
+ }
371
+ .di-head-icon-btn:disabled {
372
+ background: #fff;
373
+ border-color: #eef2f7;
374
+ color: #cbd5e1;
375
+ cursor: not-allowed;
376
+ box-shadow: none;
377
+ }
378
+ .di-head-icon-btn svg {
379
+ width: 15px;
380
+ height: 15px;
381
+ flex: 0 0 auto;
382
+ }
383
+ .di-head-right {
384
+ display: flex;
385
+ align-items: center;
386
+ gap: 8px;
387
+ }
388
+ .di-title {
389
+ font-size: 15px;
390
+ font-weight: 700;
391
+ color: #111827;
392
+ }
393
+ .di-badge-dev {
394
+ display: inline-flex;
395
+ height: 22px;
396
+ align-items: center;
397
+ padding: 0 7px;
398
+ border: 1px solid #ede9fe;
399
+ border-radius: 6px;
400
+ background: #faf5ff;
401
+ color: #7c3aed;
402
+ font-size: 10px;
403
+ font-weight: 850;
404
+ line-height: 1;
405
+ letter-spacing: 0;
406
+ white-space: nowrap;
407
+ cursor: default;
408
+ user-select: none;
409
+ }
410
+ .di-spec-link {
411
+ background: none;
412
+ border: none;
413
+ color: #7c3aed;
414
+ font-size: 12px;
415
+ font-family: inherit;
416
+ cursor: pointer;
417
+ padding: 0;
418
+ }
419
+ .di-spec-link:hover {
420
+ text-decoration: underline;
421
+ }
422
+ .di-library-trigger {
423
+ display: inline-flex;
424
+ align-items: center;
425
+ justify-content: center;
426
+ gap: 4px;
427
+ height: 26px;
428
+ padding: 0 8px;
429
+ border: 1px solid #ede9fe;
430
+ border-radius: 7px;
431
+ background: #faf5ff;
432
+ color: #7c3aed;
433
+ font-family: inherit;
434
+ font-size: 11px;
435
+ font-weight: 800;
436
+ line-height: 1;
437
+ white-space: nowrap;
438
+ transition:
439
+ background 0.12s,
440
+ border-color 0.12s,
441
+ color 0.12s,
442
+ box-shadow 0.12s;
443
+ }
444
+ .di-library-trigger:hover,
445
+ .di-library-trigger:focus-visible,
446
+ .di-library-trigger--on {
447
+ border-color: #c4b5fd;
448
+ background: #f5f3ff;
449
+ color: #6d28d9;
450
+ outline: none;
451
+ box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12);
452
+ }
453
+ .di-library-layer {
454
+ position: absolute;
455
+ z-index: 4;
456
+ inset: 48px 0 0;
457
+ display: flex;
458
+ min-height: 0;
459
+ padding: 10px 14px;
460
+ background: rgba(255, 255, 255, 0.82);
461
+ backdrop-filter: blur(2px);
462
+ box-sizing: border-box;
463
+ overflow: hidden;
464
+ }
465
+ .di-library-drawer {
466
+ display: flex;
467
+ flex-direction: column;
468
+ gap: 10px;
469
+ width: 100%;
470
+ height: 100%;
471
+ min-height: 0;
472
+ max-height: 100%;
473
+ overflow: hidden;
474
+ padding: 10px;
475
+ border: 1px solid #e5e7eb;
476
+ border-radius: 12px;
477
+ background: #fff;
478
+ box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14), 0 2px 10px rgba(15, 23, 42, 0.08);
479
+ box-sizing: border-box;
480
+ }
481
+ .di-library-head {
482
+ display: flex;
483
+ align-items: center;
484
+ justify-content: space-between;
485
+ gap: 8px;
486
+ flex: 0 0 auto;
487
+ }
488
+ .di-library-title {
489
+ display: inline-flex;
490
+ align-items: center;
491
+ gap: 6px;
492
+ min-width: 0;
493
+ color: #7c3aed;
494
+ font-size: 13px;
495
+ font-weight: 850;
496
+ }
497
+ .di-library-title span {
498
+ color: #94a3b8;
499
+ font-size: 11px;
500
+ font-weight: 800;
501
+ }
502
+ .di-library-head-actions {
503
+ display: flex;
504
+ align-items: center;
505
+ gap: 6px;
506
+ }
507
+ .di-library-workbench-trigger,
508
+ .di-library-workbench-soft-btn {
509
+ height: 26px;
510
+ padding: 0 9px;
511
+ border: 1px solid #e5e7eb;
512
+ border-radius: 7px;
513
+ background: #fff;
514
+ color: #64748b;
515
+ font-family: inherit;
516
+ font-size: 11px;
517
+ font-weight: 850;
518
+ cursor: pointer;
519
+ }
520
+ .di-library-workbench-trigger:hover,
521
+ .di-library-workbench-trigger:focus-visible,
522
+ .di-library-workbench-soft-btn:hover,
523
+ .di-library-workbench-soft-btn:focus-visible {
524
+ border-color: #c4b5fd;
525
+ background: #faf5ff;
526
+ color: #7c3aed;
527
+ outline: none;
528
+ }
529
+ .di-library-workbench-layer {
530
+ position: fixed;
531
+ z-index: 2147483647;
532
+ inset: 0;
533
+ display: flex;
534
+ min-width: 0;
535
+ min-height: 0;
536
+ padding: 0;
537
+ background: #f8fafc;
538
+ font-family:
539
+ "PingFang SC",
540
+ system-ui,
541
+ sans-serif;
542
+ box-sizing: border-box;
543
+ }
544
+ .di-library-workbench {
545
+ display: flex;
546
+ flex-direction: column;
547
+ width: 100%;
548
+ min-width: 0;
549
+ min-height: 0;
550
+ border: 0;
551
+ border-radius: 0;
552
+ background: #fff;
553
+ box-shadow: none;
554
+ overflow: hidden;
555
+ }
556
+ .di-library-workbench-head {
557
+ display: flex;
558
+ align-items: center;
559
+ justify-content: space-between;
560
+ gap: 16px;
561
+ flex: 0 0 auto;
562
+ min-height: 72px;
563
+ padding: 14px 22px;
564
+ border-bottom: 1px solid #eef2f7;
565
+ background: #fff;
566
+ }
567
+ .di-library-workbench-title {
568
+ display: flex;
569
+ align-items: center;
570
+ gap: 10px;
571
+ min-width: 0;
572
+ color: #7c3aed;
573
+ }
574
+ .di-library-workbench-title div {
575
+ display: grid;
576
+ gap: 2px;
577
+ min-width: 0;
578
+ }
579
+ .di-library-workbench-title strong {
580
+ color: #111827;
581
+ font-size: 18px;
582
+ font-weight: 900;
583
+ line-height: 1.1;
584
+ }
585
+ .di-library-workbench-title span {
586
+ color: #64748b;
587
+ font-size: 12px;
588
+ font-weight: 750;
589
+ }
590
+ .di-library-workbench-head-actions {
591
+ display: flex;
592
+ align-items: center;
593
+ gap: 8px;
594
+ }
595
+ .di-library-workbench-grid {
596
+ display: grid;
597
+ grid-template-columns: 220px minmax(0, 1fr) 286px;
598
+ gap: 0;
599
+ min-height: 0;
600
+ flex: 1 1 auto;
601
+ }
602
+ .di-library-workbench-nav,
603
+ .di-library-workbench-detail {
604
+ min-height: 0;
605
+ overflow-y: auto;
606
+ padding: 18px;
607
+ background: #f8fafc;
608
+ }
609
+ .di-library-workbench-nav {
610
+ border-right: 1px solid #eef2f7;
611
+ }
612
+ .di-library-workbench-detail {
613
+ border-left: 1px solid #eef2f7;
614
+ }
615
+ .di-library-workbench-main {
616
+ min-width: 0;
617
+ min-height: 0;
618
+ display: flex;
619
+ flex-direction: column;
620
+ gap: 12px;
621
+ padding: 18px;
622
+ overflow: hidden;
623
+ background: #fff;
624
+ }
625
+ .di-library-workbench-brand {
626
+ display: grid;
627
+ gap: 4px;
628
+ margin-bottom: 18px;
629
+ }
630
+ .di-library-workbench-brand strong {
631
+ color: #7c3aed;
632
+ font-size: 18px;
633
+ font-weight: 950;
634
+ line-height: 1.05;
635
+ }
636
+ .di-library-workbench-brand span {
637
+ color: #94a3b8;
638
+ font-size: 11px;
639
+ font-weight: 850;
640
+ }
641
+ .di-library-workbench-tabs,
642
+ .di-library-workbench-filter-list {
643
+ display: grid;
644
+ gap: 8px;
645
+ }
646
+ .di-library-workbench-tab,
647
+ .di-library-workbench-filter {
648
+ min-width: 0;
649
+ display: flex;
650
+ align-items: center;
651
+ justify-content: space-between;
652
+ gap: 8px;
653
+ min-height: 38px;
654
+ padding: 0 10px;
655
+ border: 1px solid #e5e7eb;
656
+ border-radius: 10px;
657
+ background: #fff;
658
+ color: #334155;
659
+ font-family: inherit;
660
+ font-size: 12px;
661
+ font-weight: 850;
662
+ cursor: pointer;
663
+ }
664
+ .di-library-workbench-tab > span {
665
+ display: grid;
666
+ gap: 2px;
667
+ min-width: 0;
668
+ color: inherit;
669
+ }
670
+ .di-library-workbench-tab small {
671
+ color: #94a3b8;
672
+ font-size: 10px;
673
+ font-weight: 800;
674
+ }
675
+ .di-library-workbench-tab > strong,
676
+ .di-library-workbench-filter strong {
677
+ color: #94a3b8;
678
+ font-size: 11px;
679
+ font-weight: 850;
680
+ }
681
+ .di-library-workbench-tab:hover,
682
+ .di-library-workbench-tab:focus-visible,
683
+ .di-library-workbench-tab--active,
684
+ .di-library-workbench-filter:hover,
685
+ .di-library-workbench-filter:focus-visible,
686
+ .di-library-workbench-filter--active {
687
+ border-color: #c4b5fd;
688
+ background: #faf5ff;
689
+ color: #7c3aed;
690
+ outline: none;
691
+ }
692
+ .di-library-workbench-search {
693
+ display: grid;
694
+ gap: 6px;
695
+ margin: 14px 0;
696
+ }
697
+ .di-library-workbench-search span,
698
+ .di-library-workbench-nav-title,
699
+ .di-library-edit-panel label span,
700
+ .di-library-detail-kicker {
701
+ color: #94a3b8;
702
+ font-size: 10px;
703
+ font-weight: 850;
704
+ line-height: 1.2;
705
+ }
706
+ .di-library-workbench-search input,
707
+ .di-library-edit-panel input,
708
+ .di-library-edit-panel select {
709
+ width: 100%;
710
+ min-width: 0;
711
+ height: 34px;
712
+ border: 1px solid #e5e7eb;
713
+ border-radius: 8px;
714
+ background: #fff;
715
+ color: #111827;
716
+ padding: 0 10px;
717
+ font-family: inherit;
718
+ font-size: 12px;
719
+ font-weight: 750;
720
+ outline: none;
721
+ box-sizing: border-box;
722
+ }
723
+ .di-library-workbench-search input:focus,
724
+ .di-library-edit-panel input:focus,
725
+ .di-library-edit-panel select:focus {
726
+ border-color: #c4b5fd;
727
+ box-shadow: 0 0 0 1px #c4b5fd;
728
+ }
729
+ .di-library-workbench-nav-title {
730
+ margin: 14px 0 8px;
731
+ }
732
+ .di-library-workbench-note {
733
+ margin-top: 14px;
734
+ padding: 10px;
735
+ border-radius: 10px;
736
+ background: #fff;
737
+ color: #64748b;
738
+ font-size: 11px;
739
+ font-weight: 700;
740
+ line-height: 1.4;
741
+ }
742
+ .di-library-workbench-toolbar {
743
+ display: flex;
744
+ align-items: center;
745
+ justify-content: space-between;
746
+ gap: 12px;
747
+ flex: 0 0 auto;
748
+ }
749
+ .di-library-workbench-toolbar div {
750
+ display: flex;
751
+ align-items: baseline;
752
+ gap: 6px;
753
+ min-width: 0;
754
+ }
755
+ .di-library-workbench-toolbar strong {
756
+ color: #111827;
757
+ font-size: 24px;
758
+ font-weight: 950;
759
+ line-height: 1;
760
+ }
761
+ .di-library-workbench-toolbar span {
762
+ color: #64748b;
763
+ font-size: 12px;
764
+ font-weight: 800;
765
+ }
766
+ .di-library-workbench-toolbar > .di-btn-save,
767
+ .di-library-workbench-toolbar > .di-library-workbench-soft-btn {
768
+ flex: 0 0 auto;
769
+ width: auto;
770
+ min-width: 104px;
771
+ height: 36px;
772
+ }
773
+ .di-library-workbench-table {
774
+ display: grid;
775
+ gap: 8px;
776
+ min-height: 0;
777
+ overflow: auto;
778
+ padding-right: 2px;
779
+ }
780
+ .di-library-workbench-table-head,
781
+ .di-library-workbench-row {
782
+ display: grid;
783
+ grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1fr) 110px 62px 196px;
784
+ align-items: center;
785
+ gap: 10px;
786
+ min-width: 760px;
787
+ }
788
+ .di-library-workbench-table-head--components,
789
+ .di-library-workbench-row--components {
790
+ grid-template-columns: minmax(190px, 1.1fr) minmax(250px, 1.5fr) 120px 210px;
791
+ }
792
+ .di-library-workbench-table-head--changes,
793
+ .di-library-workbench-row--changes {
794
+ grid-template-columns: minmax(210px, 1fr) minmax(320px, 1.6fr) 120px 180px;
795
+ }
796
+ .di-library-workbench-table-head--usage,
797
+ .di-library-workbench-row--usage {
798
+ grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.4fr) 70px 230px;
799
+ }
800
+ .di-library-workbench-table-head {
801
+ min-height: 30px;
802
+ padding: 0 10px;
803
+ color: #94a3b8;
804
+ font-size: 10px;
805
+ font-weight: 900;
806
+ }
807
+ .di-library-workbench-row {
808
+ min-height: 68px;
809
+ padding: 9px 10px;
810
+ border: 1px solid #eef2f7;
811
+ border-radius: 12px;
812
+ background: #f8fafc;
813
+ cursor: pointer;
814
+ box-sizing: border-box;
815
+ }
816
+ .di-library-workbench-row:hover,
817
+ .di-library-workbench-row--selected {
818
+ border-color: #c4b5fd;
819
+ background: #faf5ff;
820
+ }
821
+ .di-library-workbench-token-cell,
822
+ .di-library-workbench-copy-cell {
823
+ min-width: 0;
824
+ display: flex;
825
+ align-items: center;
826
+ gap: 10px;
827
+ }
828
+ .di-library-workbench-token-cell div,
829
+ .di-library-workbench-copy-cell {
830
+ display: grid;
831
+ gap: 3px;
832
+ }
833
+ .di-library-workbench-token-cell strong {
834
+ min-width: 0;
835
+ color: #111827;
836
+ font-size: 13px;
837
+ font-weight: 900;
838
+ overflow: hidden;
839
+ text-overflow: ellipsis;
840
+ white-space: nowrap;
841
+ }
842
+ .di-library-workbench-token-cell small,
843
+ .di-library-workbench-copy-cell span {
844
+ min-width: 0;
845
+ color: #64748b;
846
+ font-size: 11px;
847
+ font-weight: 750;
848
+ overflow: hidden;
849
+ text-overflow: ellipsis;
850
+ white-space: nowrap;
851
+ }
852
+ .di-library-workbench-copy-cell code {
853
+ min-width: 0;
854
+ color: #334155;
855
+ font-size: 12px;
856
+ font-weight: 850;
857
+ overflow: hidden;
858
+ text-overflow: ellipsis;
859
+ white-space: nowrap;
860
+ }
861
+ .di-library-workbench-status,
862
+ .di-library-workbench-count {
863
+ justify-self: start;
864
+ color: #64748b;
865
+ font-size: 11px;
866
+ font-weight: 850;
867
+ }
868
+ .di-library-workbench-count {
869
+ width: 44px;
870
+ height: 30px;
871
+ border: 1px solid #e5e7eb;
872
+ border-radius: 8px;
873
+ background: #fff;
874
+ cursor: pointer;
875
+ }
876
+ .di-library-workbench-count:hover,
877
+ .di-library-workbench-count:focus-visible {
878
+ border-color: #c4b5fd;
879
+ color: #7c3aed;
880
+ outline: none;
881
+ }
882
+ .di-library-change-index {
883
+ display: inline-flex;
884
+ width: 26px;
885
+ height: 26px;
886
+ align-items: center;
887
+ justify-content: center;
888
+ border-radius: 9px;
889
+ background: #ede9fe;
890
+ color: #7c3aed;
891
+ font-size: 11px;
892
+ font-weight: 950;
893
+ }
894
+ .di-library-workbench-actions,
895
+ .di-library-detail-actions {
896
+ display: flex;
897
+ align-items: center;
898
+ gap: 6px;
899
+ min-width: 0;
900
+ flex-wrap: wrap;
901
+ }
902
+ .di-library-workbench-actions button,
903
+ .di-library-detail-actions button {
904
+ height: 28px;
905
+ padding: 0 8px;
906
+ border: 1px solid #e5e7eb;
907
+ border-radius: 8px;
908
+ background: #fff;
909
+ color: #334155;
910
+ font-family: inherit;
911
+ font-size: 11px;
912
+ font-weight: 850;
913
+ cursor: pointer;
914
+ }
915
+ .di-library-workbench-actions button:hover,
916
+ .di-library-workbench-actions button:focus-visible,
917
+ .di-library-detail-actions button:hover,
918
+ .di-library-detail-actions button:focus-visible {
919
+ border-color: #c4b5fd;
920
+ background: #fff;
921
+ color: #7c3aed;
922
+ outline: none;
923
+ }
924
+ .di-library-component-preview-grid {
925
+ min-height: 0;
926
+ overflow: auto;
927
+ display: grid;
928
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
929
+ align-content: start;
930
+ gap: 12px;
931
+ padding-right: 2px;
932
+ }
933
+ .di-library-component-preview-card {
934
+ min-width: 0;
935
+ display: grid;
936
+ gap: 10px;
937
+ padding: 12px;
938
+ border: 1px solid #eef2f7;
939
+ border-radius: 14px;
940
+ background: #f8fafc;
941
+ color: #111827;
942
+ cursor: pointer;
943
+ box-sizing: border-box;
944
+ }
945
+ .di-library-component-preview-card:hover,
946
+ .di-library-component-preview-card:focus-visible,
947
+ .di-library-component-preview-card--selected {
948
+ border-color: #c4b5fd;
949
+ background: #faf5ff;
950
+ outline: none;
951
+ }
952
+ .di-library-component-preview-head {
953
+ min-width: 0;
954
+ display: flex;
955
+ align-items: flex-start;
956
+ justify-content: space-between;
957
+ gap: 10px;
958
+ }
959
+ .di-library-component-preview-head div {
960
+ min-width: 0;
961
+ display: grid;
962
+ gap: 3px;
963
+ }
964
+ .di-library-component-preview-head span {
965
+ color: #94a3b8;
966
+ font-size: 10px;
967
+ font-weight: 900;
968
+ line-height: 1.2;
969
+ }
970
+ .di-library-component-preview-head strong {
971
+ min-width: 0;
972
+ color: #111827;
973
+ font-size: 15px;
974
+ font-weight: 950;
975
+ line-height: 1.2;
976
+ overflow: hidden;
977
+ text-overflow: ellipsis;
978
+ white-space: nowrap;
979
+ }
980
+ .di-library-component-preview-head small {
981
+ flex: 0 0 auto;
982
+ max-width: 96px;
983
+ padding: 4px 7px;
984
+ border-radius: 999px;
985
+ background: #fff;
986
+ color: #64748b;
987
+ font-size: 10px;
988
+ font-weight: 850;
989
+ line-height: 1;
990
+ overflow: hidden;
991
+ text-overflow: ellipsis;
992
+ white-space: nowrap;
993
+ }
994
+ .di-library-component-preview-stage {
995
+ min-height: 128px;
996
+ display: grid;
997
+ place-items: center;
998
+ padding: 16px;
999
+ border: 1px solid #eef2f7;
1000
+ border-radius: 12px;
1001
+ background: #fff;
1002
+ box-sizing: border-box;
1003
+ }
1004
+ .di-library-component-preview-copy {
1005
+ min-width: 0;
1006
+ display: grid;
1007
+ gap: 4px;
1008
+ }
1009
+ .di-library-component-preview-copy span {
1010
+ color: #7c3aed;
1011
+ font-size: 11px;
1012
+ font-weight: 950;
1013
+ }
1014
+ .di-library-component-preview-copy p {
1015
+ min-width: 0;
1016
+ margin: 0;
1017
+ color: #334155;
1018
+ font-size: 12px;
1019
+ font-weight: 800;
1020
+ line-height: 1.35;
1021
+ overflow: hidden;
1022
+ text-overflow: ellipsis;
1023
+ white-space: nowrap;
1024
+ }
1025
+ .di-library-component-preview-copy code {
1026
+ min-width: 0;
1027
+ color: #64748b;
1028
+ font-size: 11px;
1029
+ font-weight: 800;
1030
+ overflow: hidden;
1031
+ text-overflow: ellipsis;
1032
+ white-space: nowrap;
1033
+ }
1034
+ .di-library-component-preview-actions {
1035
+ display: flex;
1036
+ align-items: center;
1037
+ gap: 6px;
1038
+ flex-wrap: wrap;
1039
+ }
1040
+ .di-library-component-preview-actions button {
1041
+ height: 28px;
1042
+ padding: 0 8px;
1043
+ border: 1px solid #e5e7eb;
1044
+ border-radius: 8px;
1045
+ background: #fff;
1046
+ color: #334155;
1047
+ font-family: inherit;
1048
+ font-size: 11px;
1049
+ font-weight: 850;
1050
+ cursor: pointer;
1051
+ }
1052
+ .di-library-component-preview-actions button:hover,
1053
+ .di-library-component-preview-actions button:focus-visible {
1054
+ border-color: #c4b5fd;
1055
+ color: #7c3aed;
1056
+ outline: none;
1057
+ }
1058
+ .di-library-real-preview {
1059
+ width: 100%;
1060
+ min-width: 0;
1061
+ display: grid;
1062
+ gap: 10px;
1063
+ }
1064
+ .di-library-real-preview-group {
1065
+ min-width: 0;
1066
+ display: grid;
1067
+ gap: 6px;
1068
+ }
1069
+ .di-library-real-preview-group-title {
1070
+ color: #94a3b8;
1071
+ font-size: 10px;
1072
+ font-weight: 900;
1073
+ line-height: 1.2;
1074
+ }
1075
+ .di-library-real-preview-grid {
1076
+ min-width: 0;
1077
+ display: grid;
1078
+ grid-template-columns: repeat(auto-fit, minmax(112px, max-content));
1079
+ align-items: start;
1080
+ gap: 8px;
1081
+ }
1082
+ .di-library-real-preview--detail .di-library-real-preview-grid {
1083
+ grid-template-columns: repeat(auto-fit, minmax(132px, max-content));
1084
+ }
1085
+ .di-library-real-preview-item {
1086
+ min-width: 0;
1087
+ display: grid;
1088
+ gap: 6px;
1089
+ padding: 6px;
1090
+ border: 1px solid transparent;
1091
+ border-radius: 10px;
1092
+ cursor: pointer;
1093
+ box-sizing: border-box;
1094
+ }
1095
+ .di-library-real-preview-item:hover,
1096
+ .di-library-real-preview-item:focus-visible,
1097
+ .di-library-real-preview-item--selected {
1098
+ border-color: #c4b5fd;
1099
+ background: #faf5ff;
1100
+ outline: none;
1101
+ }
1102
+ .di-library-real-preview-item--selected {
1103
+ box-shadow: inset 0 0 0 1px #8b5cf6;
1104
+ }
1105
+ .di-library-real-preview-slot {
1106
+ min-width: 0;
1107
+ min-height: 44px;
1108
+ display: flex;
1109
+ align-items: center;
1110
+ justify-content: flex-start;
1111
+ }
1112
+ .di-library-real-preview-meta {
1113
+ min-width: 0;
1114
+ display: grid;
1115
+ gap: 2px;
1116
+ }
1117
+ .di-library-real-preview-meta span {
1118
+ color: #334155;
1119
+ font-size: 10px;
1120
+ font-weight: 850;
1121
+ line-height: 1.2;
1122
+ }
1123
+ .di-library-real-preview-meta small {
1124
+ max-width: 128px;
1125
+ color: #94a3b8;
1126
+ font-size: 9px;
1127
+ font-weight: 800;
1128
+ line-height: 1.2;
1129
+ overflow: hidden;
1130
+ text-overflow: ellipsis;
1131
+ white-space: nowrap;
1132
+ }
1133
+ .di-library-preview-matrix {
1134
+ width: 100%;
1135
+ min-width: 0;
1136
+ display: grid;
1137
+ gap: 8px;
1138
+ overflow-x: auto;
1139
+ padding-bottom: 1px;
1140
+ overscroll-behavior-x: contain;
1141
+ }
1142
+ .di-library-preview-matrix-head,
1143
+ .di-library-preview-matrix-row {
1144
+ display: grid;
1145
+ grid-template-columns: var(--di-library-matrix-columns);
1146
+ align-items: center;
1147
+ gap: 8px;
1148
+ min-width: max-content;
1149
+ }
1150
+ .di-library-preview-matrix-head span,
1151
+ .di-library-preview-matrix-label {
1152
+ color: #94a3b8;
1153
+ font-size: 10px;
1154
+ font-weight: 900;
1155
+ line-height: 1.2;
1156
+ white-space: nowrap;
1157
+ }
1158
+ .di-library-preview-matrix-label {
1159
+ color: #64748b;
1160
+ }
1161
+ .di-library-preview-matrix--detail {
1162
+ gap: 10px;
1163
+ }
1164
+ .di-library-preview-matrix--detail .di-library-preview-matrix-head,
1165
+ .di-library-preview-matrix--detail .di-library-preview-matrix-row {
1166
+ gap: 10px;
1167
+ }
1168
+ .di-library-preview-button {
1169
+ display: inline-flex;
1170
+ align-items: center;
1171
+ justify-content: center;
1172
+ border-radius: 9px;
1173
+ font-size: 12px;
1174
+ font-weight: 900;
1175
+ line-height: 1;
1176
+ white-space: nowrap;
1177
+ box-sizing: border-box;
1178
+ }
1179
+ .di-library-preview-button--primary {
1180
+ background: #7c3aed;
1181
+ color: #fff;
1182
+ }
1183
+ .di-library-preview-button--secondary {
1184
+ border: 1px solid #e2e8f0;
1185
+ background: #fff;
1186
+ color: #334155;
1187
+ }
1188
+ .di-library-preview-button--ghost {
1189
+ border: 1px solid #c4b5fd;
1190
+ background: #fff;
1191
+ color: #7c3aed;
1192
+ }
1193
+ .di-library-preview-button--text {
1194
+ color: #7c3aed;
1195
+ }
1196
+ .di-library-preview-badge {
1197
+ display: inline-flex;
1198
+ align-items: center;
1199
+ justify-content: center;
1200
+ min-height: 26px;
1201
+ padding: 0 10px;
1202
+ border-radius: 8px;
1203
+ font-size: 12px;
1204
+ font-weight: 900;
1205
+ white-space: nowrap;
1206
+ box-sizing: border-box;
1207
+ }
1208
+ .di-library-preview-badge--default {
1209
+ background: #f1f5f9;
1210
+ color: #64748b;
1211
+ }
1212
+ .di-library-preview-badge--progress {
1213
+ background: #dbeafe;
1214
+ color: #2563eb;
1215
+ }
1216
+ .di-library-preview-badge--success {
1217
+ background: #dcfce7;
1218
+ color: #16a34a;
1219
+ }
1220
+ .di-library-preview-badge--warning {
1221
+ background: #fef3c7;
1222
+ color: #d97706;
1223
+ }
1224
+ .di-library-preview-badge--danger {
1225
+ background: #fee2e2;
1226
+ color: #dc2626;
1227
+ }
1228
+ .di-library-preview-card-gallery {
1229
+ width: 100%;
1230
+ min-width: 0;
1231
+ display: grid;
1232
+ grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
1233
+ gap: 10px;
1234
+ }
1235
+ .di-library-preview-card-gallery--detail {
1236
+ grid-template-columns: 1fr;
1237
+ }
1238
+ .di-library-preview-card-sample {
1239
+ min-width: 0;
1240
+ display: grid;
1241
+ gap: 8px;
1242
+ padding: 14px;
1243
+ border: 1px solid #e2e8f0;
1244
+ border-radius: 12px;
1245
+ background: #fff;
1246
+ box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
1247
+ box-sizing: border-box;
1248
+ }
1249
+ .di-library-preview-card-sample span {
1250
+ justify-self: start;
1251
+ padding: 4px 8px;
1252
+ border-radius: 8px;
1253
+ background: #dbeafe;
1254
+ color: #2563eb;
1255
+ font-size: 11px;
1256
+ font-weight: 900;
1257
+ }
1258
+ .di-library-preview-card-sample strong {
1259
+ color: #111827;
1260
+ font-size: 15px;
1261
+ font-weight: 950;
1262
+ }
1263
+ .di-library-preview-card-sample p {
1264
+ margin: 0;
1265
+ color: #64748b;
1266
+ font-size: 12px;
1267
+ font-weight: 750;
1268
+ line-height: 1.4;
1269
+ }
1270
+ .di-library-preview-card-sample--compact {
1271
+ gap: 5px;
1272
+ padding: 10px 12px;
1273
+ }
1274
+ .di-library-preview-card-sample--floating {
1275
+ box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
1276
+ }
1277
+ .di-library-preview-card-sample--emphasis {
1278
+ border-color: #c4b5fd;
1279
+ background: #faf5ff;
1280
+ }
1281
+ .di-library-preview-form-sample {
1282
+ width: min(100%, 240px);
1283
+ display: grid;
1284
+ grid-template-columns: minmax(0, 1fr) max-content;
1285
+ gap: 8px;
1286
+ align-items: center;
1287
+ }
1288
+ .di-library-preview-form-sample span {
1289
+ grid-column: 1 / -1;
1290
+ color: #64748b;
1291
+ font-size: 11px;
1292
+ font-weight: 850;
1293
+ }
1294
+ .di-library-preview-form-sample div {
1295
+ min-width: 0;
1296
+ height: 34px;
1297
+ display: flex;
1298
+ align-items: center;
1299
+ padding: 0 10px;
1300
+ border: 1px solid #e2e8f0;
1301
+ border-radius: 9px;
1302
+ color: #94a3b8;
1303
+ font-size: 12px;
1304
+ font-weight: 800;
1305
+ }
1306
+ .di-library-preview-form-sample strong {
1307
+ height: 34px;
1308
+ display: inline-flex;
1309
+ align-items: center;
1310
+ justify-content: center;
1311
+ padding: 0 12px;
1312
+ border-radius: 9px;
1313
+ background: #7c3aed;
1314
+ color: #fff;
1315
+ font-size: 12px;
1316
+ font-weight: 900;
1317
+ }
1318
+ .di-library-preview-icon-cell {
1319
+ width: 36px;
1320
+ height: 36px;
1321
+ display: inline-flex;
1322
+ align-items: center;
1323
+ justify-content: center;
1324
+ border: 1px solid #e2e8f0;
1325
+ border-radius: 10px;
1326
+ background: #fff;
1327
+ }
1328
+ .di-library-preview-generic {
1329
+ width: min(100%, 220px);
1330
+ display: grid;
1331
+ justify-items: center;
1332
+ gap: 8px;
1333
+ color: #64748b;
1334
+ }
1335
+ .di-library-preview-generic strong {
1336
+ color: #111827;
1337
+ font-size: 14px;
1338
+ font-weight: 950;
1339
+ }
1340
+ .di-library-preview-generic span {
1341
+ max-width: 100%;
1342
+ color: #94a3b8;
1343
+ font-size: 11px;
1344
+ font-weight: 800;
1345
+ overflow: hidden;
1346
+ text-overflow: ellipsis;
1347
+ white-space: nowrap;
1348
+ }
1349
+ .di-library-workbench-empty {
1350
+ padding: 18px;
1351
+ border-radius: 12px;
1352
+ background: #f8fafc;
1353
+ color: #64748b;
1354
+ font-size: 12px;
1355
+ font-weight: 750;
1356
+ text-align: center;
1357
+ }
1358
+ .di-library-edit-panel,
1359
+ .di-library-detail-card {
1360
+ display: grid;
1361
+ gap: 12px;
1362
+ min-width: 0;
1363
+ }
1364
+ .di-library-edit-head {
1365
+ display: flex;
1366
+ align-items: center;
1367
+ justify-content: space-between;
1368
+ gap: 8px;
1369
+ }
1370
+ .di-library-edit-head strong,
1371
+ .di-library-detail-card h3 {
1372
+ margin: 0;
1373
+ color: #111827;
1374
+ font-size: 16px;
1375
+ font-weight: 950;
1376
+ }
1377
+ .di-library-edit-panel label {
1378
+ display: grid;
1379
+ gap: 6px;
1380
+ }
1381
+ .di-library-detail-preview {
1382
+ display: grid;
1383
+ grid-template-columns: max-content minmax(0, 1fr);
1384
+ align-items: center;
1385
+ gap: 10px;
1386
+ padding: 10px;
1387
+ border-radius: 12px;
1388
+ background: #fff;
1389
+ border: 1px solid #eef2f7;
1390
+ }
1391
+ .di-library-detail-preview code {
1392
+ min-width: 0;
1393
+ color: #334155;
1394
+ font-size: 12px;
1395
+ font-weight: 850;
1396
+ overflow: hidden;
1397
+ text-overflow: ellipsis;
1398
+ white-space: nowrap;
1399
+ }
1400
+ .di-library-detail-preview--component {
1401
+ display: block;
1402
+ padding: 0;
1403
+ overflow-x: auto;
1404
+ overflow-y: hidden;
1405
+ overscroll-behavior-x: contain;
1406
+ }
1407
+ .di-library-detail-preview--component .di-library-component-preview-stage {
1408
+ min-height: 112px;
1409
+ border: 0;
1410
+ border-radius: 12px;
1411
+ }
1412
+ .di-library-spec-preview {
1413
+ min-width: 0;
1414
+ display: grid;
1415
+ gap: 8px;
1416
+ padding: 14px;
1417
+ border-radius: 12px;
1418
+ background: #fff;
1419
+ box-sizing: border-box;
1420
+ }
1421
+ .di-library-spec-preview-slot {
1422
+ min-width: 0;
1423
+ min-height: 56px;
1424
+ display: flex;
1425
+ align-items: center;
1426
+ }
1427
+ .di-library-spec-preview-meta {
1428
+ min-width: 0;
1429
+ display: grid;
1430
+ gap: 3px;
1431
+ }
1432
+ .di-library-spec-preview-meta span {
1433
+ color: #111827;
1434
+ font-size: 12px;
1435
+ font-weight: 900;
1436
+ line-height: 1.2;
1437
+ }
1438
+ .di-library-spec-preview-meta small {
1439
+ color: #94a3b8;
1440
+ font-size: 10px;
1441
+ font-weight: 850;
1442
+ line-height: 1.2;
1443
+ overflow-wrap: anywhere;
1444
+ }
1445
+ .di-library-spec-pills {
1446
+ min-width: 0;
1447
+ display: flex;
1448
+ align-items: center;
1449
+ gap: 6px;
1450
+ flex-wrap: wrap;
1451
+ }
1452
+ .di-library-spec-pills span {
1453
+ display: inline-flex;
1454
+ min-height: 24px;
1455
+ align-items: center;
1456
+ padding: 0 8px;
1457
+ border: 1px solid #ddd6fe;
1458
+ border-radius: 999px;
1459
+ background: #f5f0ff;
1460
+ color: #7c3aed;
1461
+ font-size: 10px;
1462
+ font-weight: 900;
1463
+ }
1464
+ .di-library-detail-card dl {
1465
+ display: grid;
1466
+ gap: 8px;
1467
+ margin: 0;
1468
+ }
1469
+ .di-library-detail-card dl div {
1470
+ display: grid;
1471
+ gap: 4px;
1472
+ padding: 9px 10px;
1473
+ border-radius: 10px;
1474
+ background: #fff;
1475
+ border: 1px solid #eef2f7;
1476
+ }
1477
+ .di-library-detail-card dt {
1478
+ color: #94a3b8;
1479
+ font-size: 10px;
1480
+ font-weight: 850;
1481
+ }
1482
+ .di-library-detail-card dd {
1483
+ margin: 0;
1484
+ color: #334155;
1485
+ font-size: 12px;
1486
+ font-weight: 800;
1487
+ line-height: 1.35;
1488
+ overflow-wrap: anywhere;
1489
+ }
1490
+ .di-library-basket-card {
1491
+ display: grid;
1492
+ gap: 10px;
1493
+ margin-top: 16px;
1494
+ padding: 14px;
1495
+ border: 1px solid #ddd6fe;
1496
+ border-radius: 14px;
1497
+ background: #f5f0ff;
1498
+ }
1499
+ .di-library-basket-card div {
1500
+ display: flex;
1501
+ align-items: center;
1502
+ justify-content: space-between;
1503
+ gap: 10px;
1504
+ }
1505
+ .di-library-basket-card span {
1506
+ color: #7c3aed;
1507
+ font-size: 12px;
1508
+ font-weight: 900;
1509
+ }
1510
+ .di-library-basket-card strong {
1511
+ color: #111827;
1512
+ font-size: 24px;
1513
+ font-weight: 950;
1514
+ line-height: 1;
1515
+ }
1516
+ .di-library-basket-card p {
1517
+ margin: 0;
1518
+ color: #64748b;
1519
+ font-size: 12px;
1520
+ font-weight: 750;
1521
+ line-height: 1.4;
1522
+ }
1523
+ @media (max-width: 720px) {
1524
+ .di-library-workbench-layer {
1525
+ padding: 0;
1526
+ }
1527
+ .di-library-workbench-grid {
1528
+ grid-template-columns: 1fr;
1529
+ }
1530
+ .di-library-workbench-nav,
1531
+ .di-library-workbench-detail {
1532
+ max-height: 220px;
1533
+ border: 0;
1534
+ border-bottom: 1px solid #eef2f7;
1535
+ }
1536
+ .di-library-workbench-detail {
1537
+ border-top: 1px solid #eef2f7;
1538
+ }
1539
+ }
1540
+ .di-library-tabs {
1541
+ display: grid;
1542
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1543
+ gap: var(--di-control-gap-x);
1544
+ flex: 0 0 auto;
1545
+ padding: 3px;
1546
+ border-radius: 10px;
1547
+ background: #f8fafc;
1548
+ }
1549
+ .di-library-tab {
1550
+ height: 30px;
1551
+ border: 0;
1552
+ border-radius: 8px;
1553
+ background: transparent;
1554
+ color: #64748b;
1555
+ font-family: inherit;
1556
+ font-size: 12px;
1557
+ font-weight: 850;
1558
+ cursor: pointer;
1559
+ }
1560
+ .di-library-tab:hover,
1561
+ .di-library-tab:focus-visible {
1562
+ color: #7c3aed;
1563
+ outline: none;
1564
+ }
1565
+ .di-library-tab--active {
1566
+ background: #fff;
1567
+ color: #7c3aed;
1568
+ box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
1569
+ }
1570
+ .di-library-content {
1571
+ display: flex;
1572
+ flex-direction: column;
1573
+ gap: 10px;
1574
+ min-height: 0;
1575
+ flex: 1 1 auto;
1576
+ }
1577
+ .di-library-tools {
1578
+ display: grid;
1579
+ gap: 8px;
1580
+ flex: 0 0 auto;
1581
+ }
1582
+ .di-library-search {
1583
+ display: grid;
1584
+ grid-template-columns: max-content minmax(0, 1fr);
1585
+ align-items: center;
1586
+ gap: var(--di-field-label-gap);
1587
+ min-height: 40px;
1588
+ padding: var(--di-tool-row-padding-block) var(--di-tool-row-padding-inline);
1589
+ border-radius: 10px;
1590
+ background: #f8fafc;
1591
+ }
1592
+ .di-library-search span {
1593
+ color: #94a3b8;
1594
+ font-size: 10px;
1595
+ font-weight: 850;
1596
+ }
1597
+ .di-library-search input {
1598
+ width: 100%;
1599
+ min-width: 0;
1600
+ height: 30px;
1601
+ border: 1px solid #e5e7eb;
1602
+ border-radius: 7px;
1603
+ background: #fff;
1604
+ color: #111827;
1605
+ padding: 0 10px;
1606
+ font-family: inherit;
1607
+ font-size: 12px;
1608
+ font-weight: 750;
1609
+ outline: none;
1610
+ }
1611
+ .di-library-search input:focus {
1612
+ border-color: #c4b5fd;
1613
+ box-shadow: 0 0 0 1px #c4b5fd;
1614
+ }
1615
+ .di-library-categories {
1616
+ display: flex;
1617
+ gap: 6px;
1618
+ min-width: 0;
1619
+ overflow-x: auto;
1620
+ padding-bottom: 1px;
1621
+ }
1622
+ .di-library-category {
1623
+ flex: 0 0 auto;
1624
+ height: 28px;
1625
+ padding: 0 10px;
1626
+ border: 1px solid #e5e7eb;
1627
+ border-radius: 999px;
1628
+ background: #fff;
1629
+ color: #64748b;
1630
+ font-family: inherit;
1631
+ font-size: 11px;
1632
+ font-weight: 800;
1633
+ cursor: pointer;
1634
+ }
1635
+ .di-library-category-count {
1636
+ margin-left: 4px;
1637
+ color: #94a3b8;
1638
+ font-size: 10px;
1639
+ font-weight: 850;
1640
+ }
1641
+ .di-library-category:hover,
1642
+ .di-library-category:focus-visible,
1643
+ .di-library-category--active {
1644
+ border-color: #c4b5fd;
1645
+ background: #faf5ff;
1646
+ color: #7c3aed;
1647
+ outline: none;
1648
+ }
1649
+ .di-library-summary {
1650
+ display: grid;
1651
+ grid-template-columns: max-content max-content minmax(0, 1fr);
1652
+ align-items: center;
1653
+ gap: 6px;
1654
+ min-height: 32px;
1655
+ flex: 0 0 auto;
1656
+ padding: 0 2px;
1657
+ }
1658
+ .di-library-summary strong {
1659
+ color: #111827;
1660
+ font-size: 18px;
1661
+ font-weight: 900;
1662
+ line-height: 1;
1663
+ }
1664
+ .di-library-summary span,
1665
+ .di-library-summary small {
1666
+ color: #64748b;
1667
+ font-size: 11px;
1668
+ font-weight: 750;
1669
+ }
1670
+ .di-library-summary small {
1671
+ min-width: 0;
1672
+ overflow: hidden;
1673
+ text-overflow: ellipsis;
1674
+ white-space: nowrap;
1675
+ }
1676
+ .di-library-list {
1677
+ display: grid;
1678
+ gap: 8px;
1679
+ min-height: 0;
1680
+ overflow-y: auto;
1681
+ overscroll-behavior: contain;
1682
+ padding-right: 2px;
1683
+ }
1684
+ .di-library-token-row,
1685
+ .di-library-component-row {
1686
+ min-width: 0;
1687
+ display: grid;
1688
+ align-items: center;
1689
+ gap: var(--di-control-gap-x);
1690
+ padding: 9px 10px;
1691
+ border: 1px solid #f1f5f9;
1692
+ border-radius: 10px;
1693
+ background: #f8fafc;
1694
+ }
1695
+ .di-library-token-row {
1696
+ grid-template-columns: 30px minmax(0, 1fr) minmax(74px, max-content) 38px;
1697
+ }
1698
+ .di-library-token-preview {
1699
+ width: 30px;
1700
+ height: 30px;
1701
+ border-radius: 8px;
1702
+ border: 1px solid #e2e8f0;
1703
+ background: #fff;
1704
+ box-sizing: border-box;
1705
+ }
1706
+ .di-library-token-preview--color,
1707
+ .di-library-token-preview--appearance {
1708
+ background: var(--di-library-preview, #fff);
1709
+ }
1710
+ .di-library-token-preview--text {
1711
+ position: relative;
1712
+ background: #fff;
1713
+ }
1714
+ .di-library-token-preview--text::after {
1715
+ content: "T";
1716
+ position: absolute;
1717
+ inset: 0;
1718
+ display: grid;
1719
+ place-items: center;
1720
+ color: var(--di-library-preview, #111827);
1721
+ font-size: 16px;
1722
+ font-weight: 900;
1723
+ }
1724
+ .di-library-token-preview--space {
1725
+ background:
1726
+ linear-gradient(
1727
+ 90deg,
1728
+ transparent 0 7px,
1729
+ #7c3aed 7px 10px,
1730
+ transparent 10px 20px,
1731
+ #7c3aed 20px 23px,
1732
+ transparent 23px),
1733
+ #f8fafc;
1734
+ }
1735
+ .di-library-token-preview--radius {
1736
+ border-color: #c4b5fd;
1737
+ border-radius: 12px 4px 12px 4px;
1738
+ }
1739
+ .di-library-token-preview--shadow {
1740
+ background: #fff;
1741
+ box-shadow: var(--di-library-preview, 0 8px 20px rgba(15, 23, 42, 0.16));
1742
+ }
1743
+ .di-library-token-main,
1744
+ .di-library-component-main {
1745
+ min-width: 0;
1746
+ display: grid;
1747
+ gap: 3px;
1748
+ }
1749
+ .di-library-token-name,
1750
+ .di-library-component-title {
1751
+ min-width: 0;
1752
+ color: #111827;
1753
+ font-size: 12px;
1754
+ font-weight: 850;
1755
+ overflow: hidden;
1756
+ text-overflow: ellipsis;
1757
+ white-space: nowrap;
1758
+ }
1759
+ .di-library-token-meta,
1760
+ .di-library-component-summary {
1761
+ min-width: 0;
1762
+ color: #64748b;
1763
+ font-size: 10px;
1764
+ font-weight: 700;
1765
+ line-height: 1.25;
1766
+ overflow: hidden;
1767
+ text-overflow: ellipsis;
1768
+ white-space: nowrap;
1769
+ }
1770
+ .di-library-token-meta {
1771
+ display: flex;
1772
+ gap: 6px;
1773
+ }
1774
+ .di-library-token-meta span {
1775
+ min-width: 0;
1776
+ overflow: hidden;
1777
+ text-overflow: ellipsis;
1778
+ white-space: nowrap;
1779
+ }
1780
+ .di-library-token-side {
1781
+ min-width: 0;
1782
+ display: grid;
1783
+ justify-items: end;
1784
+ gap: 2px;
1785
+ }
1786
+ .di-library-token-side code {
1787
+ max-width: 120px;
1788
+ color: #334155;
1789
+ font-size: 10px;
1790
+ font-weight: 800;
1791
+ overflow: hidden;
1792
+ text-overflow: ellipsis;
1793
+ white-space: nowrap;
1794
+ }
1795
+ .di-library-token-side span,
1796
+ .di-library-token-usage span,
1797
+ .di-library-component-status {
1798
+ color: #94a3b8;
1799
+ font-size: 10px;
1800
+ font-weight: 800;
1801
+ }
1802
+ .di-library-token-usage {
1803
+ display: grid;
1804
+ justify-items: center;
1805
+ gap: 1px;
1806
+ min-width: 0;
1807
+ padding: 0;
1808
+ border: 0;
1809
+ background: transparent;
1810
+ font-family: inherit;
1811
+ cursor: pointer;
1812
+ }
1813
+ .di-library-token-usage:hover strong,
1814
+ .di-library-token-usage:focus-visible strong {
1815
+ color: #7c3aed;
1816
+ }
1817
+ .di-library-token-usage:focus-visible {
1818
+ outline: 2px solid #c4b5fd;
1819
+ outline-offset: 2px;
1820
+ border-radius: 8px;
1821
+ }
1822
+ .di-library-token-usage strong {
1823
+ color: #111827;
1824
+ font-size: 12px;
1825
+ font-weight: 900;
1826
+ line-height: 1;
1827
+ }
1828
+ .di-library-component-row {
1829
+ grid-template-columns: 30px minmax(0, 1fr) max-content;
1830
+ }
1831
+ .di-library-component-icon {
1832
+ width: 30px;
1833
+ height: 30px;
1834
+ display: inline-flex;
1835
+ align-items: center;
1836
+ justify-content: center;
1837
+ border-radius: 8px;
1838
+ background: #faf5ff;
1839
+ color: #7c3aed;
1840
+ }
1841
+ .di-library-component-title {
1842
+ display: flex;
1843
+ align-items: baseline;
1844
+ gap: 6px;
1845
+ }
1846
+ .di-library-component-title span {
1847
+ color: #94a3b8;
1848
+ font-size: 10px;
1849
+ font-weight: 800;
1850
+ }
1851
+ .di-library-component-status {
1852
+ padding: 4px 7px;
1853
+ border-radius: 999px;
1854
+ background: #fff;
1855
+ }
1856
+ .di-library-note,
1857
+ .di-library-empty,
1858
+ .di-library-more {
1859
+ padding: 10px;
1860
+ border-radius: 10px;
1861
+ background: #f8fafc;
1862
+ color: #64748b;
1863
+ font-size: 11px;
1864
+ font-weight: 700;
1865
+ line-height: 1.35;
1866
+ }
1867
+ .di-library-empty,
1868
+ .di-library-more {
1869
+ text-align: center;
1870
+ }
1871
+ .di-component-create-layer {
1872
+ position: absolute;
1873
+ z-index: 4;
1874
+ inset: 48px 0 0;
1875
+ display: flex;
1876
+ min-height: 0;
1877
+ padding: 10px 14px;
1878
+ background: rgba(255, 255, 255, 0.82);
1879
+ backdrop-filter: blur(2px);
1880
+ box-sizing: border-box;
1881
+ overflow: hidden;
1882
+ }
1883
+ .di-component-create-drawer {
1884
+ display: flex;
1885
+ flex-direction: column;
1886
+ gap: 10px;
1887
+ width: 100%;
1888
+ height: 100%;
1889
+ min-height: 0;
1890
+ max-height: 100%;
1891
+ overflow: hidden;
1892
+ padding: 10px;
1893
+ border: 1px solid #e5e7eb;
1894
+ border-radius: 12px;
1895
+ background: #fff;
1896
+ box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14), 0 2px 10px rgba(15, 23, 42, 0.08);
1897
+ box-sizing: border-box;
1898
+ }
1899
+ .di-component-create-head {
1900
+ display: flex;
1901
+ align-items: center;
1902
+ justify-content: space-between;
1903
+ gap: 8px;
1904
+ flex: 0 0 auto;
1905
+ }
1906
+ .di-component-create-title {
1907
+ display: inline-flex;
1908
+ align-items: center;
1909
+ gap: 6px;
1910
+ color: #7c3aed;
1911
+ font-size: 13px;
1912
+ font-weight: 850;
1913
+ }
1914
+ .di-component-create-scroll {
1915
+ min-height: 0;
1916
+ display: grid;
1917
+ gap: 10px;
1918
+ overflow-y: auto;
1919
+ overscroll-behavior: contain;
1920
+ padding-right: 2px;
1921
+ }
1922
+ .di-component-create-summary {
1923
+ display: grid;
1924
+ gap: 6px;
1925
+ min-width: 0;
1926
+ padding: 10px;
1927
+ border-radius: 10px;
1928
+ background: #f8fafc;
1929
+ }
1930
+ .di-component-create-summary div {
1931
+ display: flex;
1932
+ align-items: center;
1933
+ gap: 8px;
1934
+ min-width: 0;
1935
+ }
1936
+ .di-component-create-summary span,
1937
+ .di-component-create-field > span,
1938
+ .di-component-create-rules-title {
1939
+ color: #94a3b8;
1940
+ font-size: 11px;
1941
+ font-weight: 800;
1942
+ white-space: nowrap;
1943
+ }
1944
+ .di-component-create-summary strong {
1945
+ min-width: 0;
1946
+ color: #111827;
1947
+ font-size: 13px;
1948
+ font-weight: 850;
1949
+ overflow: hidden;
1950
+ text-overflow: ellipsis;
1951
+ white-space: nowrap;
1952
+ }
1953
+ .di-component-create-summary code,
1954
+ .di-component-create-summary p {
1955
+ margin: 0;
1956
+ min-width: 0;
1957
+ color: #64748b;
1958
+ font-size: 11px;
1959
+ font-weight: 650;
1960
+ line-height: 1.35;
1961
+ overflow: hidden;
1962
+ text-overflow: ellipsis;
1963
+ white-space: nowrap;
1964
+ }
1965
+ .di-component-create-form {
1966
+ display: grid;
1967
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1968
+ gap: var(--di-control-gap-y);
1969
+ }
1970
+ .di-component-create-field {
1971
+ display: grid;
1972
+ grid-template-columns: max-content minmax(0, 1fr);
1973
+ align-items: center;
1974
+ gap: var(--di-field-label-gap);
1975
+ min-height: 44px;
1976
+ min-width: 0;
1977
+ padding: var(--di-tool-row-padding-block) var(--di-tool-row-padding-inline);
1978
+ border-radius: 10px;
1979
+ background: #f8fafc;
1980
+ }
1981
+ .di-component-create-field > span {
1982
+ color: #9ca3af;
1983
+ font-size: 10px;
1984
+ font-weight: 800;
1985
+ line-height: 1.2;
1986
+ }
1987
+ .di-component-create-field--wide {
1988
+ grid-column: 1 / -1;
1989
+ }
1990
+ .di-component-create-field input {
1991
+ min-width: 0;
1992
+ width: 100%;
1993
+ height: 30px;
1994
+ border: 1px solid #e5e7eb;
1995
+ border-radius: 7px;
1996
+ background: #fff;
1997
+ color: #111827;
1998
+ padding: 0 10px;
1999
+ font: inherit;
2000
+ font-size: 12px;
2001
+ font-weight: 750;
2002
+ outline: none;
2003
+ }
2004
+ .di-component-create-field input:focus {
2005
+ border-color: #c4b5fd;
2006
+ box-shadow: 0 0 0 1px #c4b5fd;
2007
+ }
2008
+ .di-component-type-combobox {
2009
+ position: relative;
2010
+ min-width: 0;
2011
+ }
2012
+ .di-component-type-combobox input {
2013
+ padding-right: 30px;
2014
+ }
2015
+ .di-component-type-trigger {
2016
+ width: 100%;
2017
+ min-width: 0;
2018
+ height: 30px;
2019
+ display: flex;
2020
+ align-items: center;
2021
+ justify-content: space-between;
2022
+ gap: var(--di-control-gap-x);
2023
+ padding: 0 9px;
2024
+ border: 1px solid #e5e7eb;
2025
+ border-radius: 7px;
2026
+ background: #fff;
2027
+ color: #111827;
2028
+ font-family: inherit;
2029
+ cursor: pointer;
2030
+ }
2031
+ .di-component-type-trigger:hover,
2032
+ .di-component-type-trigger[aria-expanded=true] {
2033
+ border-color: #c4b5fd;
2034
+ box-shadow: 0 0 0 1px #c4b5fd;
2035
+ }
2036
+ .di-component-create-field .di-component-type-trigger-value {
2037
+ min-width: 0;
2038
+ color: #111827;
2039
+ font-size: 12px;
2040
+ font-weight: 750;
2041
+ overflow: hidden;
2042
+ text-overflow: ellipsis;
2043
+ white-space: nowrap;
2044
+ }
2045
+ .di-component-type-trigger svg {
2046
+ color: #94a3b8;
2047
+ flex-shrink: 0;
2048
+ }
2049
+ .di-component-type-toggle {
2050
+ position: absolute;
2051
+ top: 4px;
2052
+ right: 4px;
2053
+ width: 22px;
2054
+ height: 22px;
2055
+ display: inline-flex;
2056
+ align-items: center;
2057
+ justify-content: center;
2058
+ border: 0;
2059
+ border-radius: 6px;
2060
+ background: transparent;
2061
+ color: #94a3b8;
2062
+ cursor: pointer;
2063
+ }
2064
+ .di-component-type-toggle:hover {
2065
+ background: #f5f3ff;
2066
+ color: #7c3aed;
2067
+ }
2068
+ .di-component-create-existing {
2069
+ grid-column: 1 / -1;
2070
+ display: grid;
2071
+ gap: var(--di-control-gap-y);
2072
+ padding: var(--di-tool-row-padding-block) var(--di-tool-row-padding-inline);
2073
+ border: 1px solid #ede9fe;
2074
+ border-radius: 10px;
2075
+ background: #faf5ff;
2076
+ }
2077
+ .di-component-create-existing-copy {
2078
+ display: grid;
2079
+ grid-template-columns: max-content max-content minmax(0, 1fr);
2080
+ align-items: center;
2081
+ gap: var(--di-field-label-gap);
2082
+ min-width: 0;
2083
+ }
2084
+ .di-component-create-existing-copy span {
2085
+ color: #94a3b8;
2086
+ font-size: 10px;
2087
+ font-weight: 850;
2088
+ }
2089
+ .di-component-create-existing-copy strong {
2090
+ color: #111827;
2091
+ font-size: 12px;
2092
+ font-weight: 850;
2093
+ }
2094
+ .di-component-create-existing-copy small {
2095
+ min-width: 0;
2096
+ color: #64748b;
2097
+ font-size: 10px;
2098
+ font-weight: 700;
2099
+ overflow: hidden;
2100
+ text-overflow: ellipsis;
2101
+ white-space: nowrap;
2102
+ }
2103
+ .di-component-create-existing-actions {
2104
+ display: grid;
2105
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2106
+ gap: var(--di-control-gap-x);
2107
+ }
2108
+ .di-segment-pill {
2109
+ height: 30px;
2110
+ min-width: 0;
2111
+ border: 1px solid #e5e7eb;
2112
+ border-radius: 8px;
2113
+ background: #fff;
2114
+ color: #334155;
2115
+ font-family: inherit;
2116
+ font-size: 12px;
2117
+ font-weight: 850;
2118
+ cursor: pointer;
2119
+ }
2120
+ .di-segment-pill:hover {
2121
+ border-color: #c4b5fd;
2122
+ color: #7c3aed;
2123
+ }
2124
+ .di-segment-pill--active {
2125
+ border-color: #c4b5fd;
2126
+ background: #f5f3ff;
2127
+ color: #7c3aed;
2128
+ }
2129
+ .di-component-type-menu {
2130
+ position: absolute;
2131
+ z-index: 6;
2132
+ top: calc(100% + 4px);
2133
+ left: 0;
2134
+ right: 0;
2135
+ max-height: 220px;
2136
+ overflow: auto;
2137
+ padding: 4px;
2138
+ border: 1px solid #e5e7eb;
2139
+ border-radius: 10px;
2140
+ background: #fff;
2141
+ box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
2142
+ }
2143
+ .di-component-type-menu-head {
2144
+ padding: 6px 9px 7px;
2145
+ color: #94a3b8;
2146
+ font-size: 10px;
2147
+ font-weight: 800;
2148
+ line-height: 1.25;
2149
+ }
2150
+ .di-component-type-option {
2151
+ width: 100%;
2152
+ display: grid;
2153
+ gap: 2px;
2154
+ padding: 8px 9px;
2155
+ border: 0;
2156
+ border-radius: 8px;
2157
+ background: transparent;
2158
+ text-align: left;
2159
+ cursor: pointer;
2160
+ font-family: inherit;
2161
+ }
2162
+ .di-component-type-option:hover,
2163
+ .di-component-type-option--active {
2164
+ background: #f5f3ff;
2165
+ }
2166
+ .di-component-type-option strong {
2167
+ color: #111827;
2168
+ font-size: 12px;
2169
+ font-weight: 850;
2170
+ }
2171
+ .di-component-type-option--active strong,
2172
+ .di-component-type-option--new strong {
2173
+ color: #7c3aed;
2174
+ }
2175
+ .di-component-type-option span,
2176
+ .di-component-type-empty {
2177
+ color: #64748b;
2178
+ font-size: 10px;
2179
+ font-weight: 650;
2180
+ line-height: 1.3;
2181
+ }
2182
+ .di-component-type-empty {
2183
+ padding: 10px;
2184
+ text-align: center;
2185
+ }
2186
+ .di-component-create-rules {
2187
+ display: grid;
2188
+ gap: 6px;
2189
+ padding: 10px;
2190
+ border-radius: 10px;
2191
+ background: #faf5ff;
2192
+ border: 1px solid #ede9fe;
2193
+ }
2194
+ .di-component-create-rules ul {
2195
+ margin: 0;
2196
+ padding-left: 16px;
2197
+ display: grid;
2198
+ gap: 4px;
2199
+ }
2200
+ .di-component-create-rules li {
2201
+ color: #475569;
2202
+ font-size: 11px;
2203
+ font-weight: 650;
2204
+ line-height: 1.35;
2205
+ }
2206
+ .di-component-create-actions {
2207
+ display: grid;
2208
+ grid-template-columns: minmax(0, 1fr);
2209
+ gap: var(--di-control-gap-x);
2210
+ flex: 0 0 auto;
2211
+ padding-top: 8px;
2212
+ border-top: 1px solid #f3f4f6;
2213
+ background: #fff;
2214
+ }
2215
+ .di-body {
2216
+ overflow-y: auto;
2217
+ flex: 1;
2218
+ padding: 2px 0 4px;
2219
+ }
2220
+ .di-body--plugin-page {
2221
+ padding-top: 0;
2222
+ }
2223
+ .di-body--plugin-page > .di-section:not(.di-plugin-section--page) {
2224
+ display: none;
2225
+ }
2226
+ .di-body--readonly {
2227
+ pointer-events: none;
2228
+ opacity: 0.72;
2229
+ user-select: none;
2230
+ }
2231
+ .di-section {
2232
+ padding: 8px 14px;
2233
+ border-bottom: 1px solid #f3f4f6;
2234
+ }
2235
+ .di-section:last-child {
2236
+ border-bottom: none;
2237
+ }
2238
+ .di-section-title {
2239
+ font-size: 12px;
2240
+ font-weight: 700;
2241
+ color: #111827;
2242
+ margin-bottom: var(--di-section-title-gap);
2243
+ }
2244
+ .di-section-title-row {
2245
+ display: flex;
2246
+ align-items: center;
2247
+ gap: var(--di-control-gap-x);
2248
+ margin-bottom: var(--di-section-title-gap);
2249
+ }
2250
+ .di-section-title-row--action {
2251
+ justify-content: space-between;
2252
+ min-height: 24px;
2253
+ }
2254
+ .di-section-title-row--empty {
2255
+ margin-bottom: 0;
2256
+ }
2257
+ .di-section-title-row .di-section-title {
2258
+ margin-bottom: 0;
2259
+ }
2260
+ .di-section-title-group {
2261
+ display: inline-flex;
2262
+ align-items: center;
2263
+ gap: 6px;
2264
+ min-width: 0;
2265
+ }
2266
+ .di-section-icon-action {
2267
+ width: 24px;
2268
+ height: 24px;
2269
+ border: 1px solid #e5e7eb;
2270
+ border-radius: 7px;
2271
+ background: #fff;
2272
+ color: #64748b;
2273
+ display: inline-flex;
2274
+ align-items: center;
2275
+ justify-content: center;
2276
+ padding: 0;
2277
+ cursor: pointer;
2278
+ transition:
2279
+ background 0.12s,
2280
+ border-color 0.12s,
2281
+ color 0.12s,
2282
+ box-shadow 0.12s;
2283
+ }
2284
+ .di-section-icon-action:hover,
2285
+ .di-section-icon-action:focus-visible {
2286
+ background: #faf5ff;
2287
+ border-color: #c4b5fd;
2288
+ color: #7c3aed;
2289
+ outline: none;
2290
+ box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12);
2291
+ }
2292
+ .di-section-icon-action svg {
2293
+ width: 14px;
2294
+ height: 14px;
2295
+ }
2296
+ .di-section-icon-action--reset {
2297
+ color: #64748b;
2298
+ }
2299
+ .di-plugin-section {
2300
+ padding-top: 6px;
2301
+ padding-bottom: 6px;
2302
+ }
2303
+ .di-plugin-section--page {
2304
+ display: grid;
2305
+ gap: 8px;
2306
+ min-height: 100%;
2307
+ padding-top: 8px;
2308
+ padding-bottom: 10px;
2309
+ border-bottom: none;
2310
+ }
2311
+ .di-structure-section {
2312
+ padding-top: 8px;
2313
+ padding-bottom: 8px;
2314
+ }
2315
+ .di-structure-callout {
2316
+ display: grid;
2317
+ grid-template-columns: minmax(0, 1fr) max-content;
2318
+ align-items: center;
2319
+ gap: var(--di-control-gap-x);
2320
+ padding: 9px 10px;
2321
+ border-radius: 10px;
2322
+ background: #f5f3ff;
2323
+ }
2324
+ .di-page-shell-callout {
2325
+ border: 1px solid #dbeafe;
2326
+ background: #eff6ff;
2327
+ }
2328
+ .di-layout-container-callout {
2329
+ grid-template-columns: minmax(0, 1fr);
2330
+ border: 1px solid #e2e8f0;
2331
+ background: #f8fafc;
2332
+ }
2333
+ .di-page-shell-section .di-structure-action {
2334
+ border-color: #bfdbfe;
2335
+ background: #fff;
2336
+ color: #2563eb;
2337
+ }
2338
+ .di-page-shell-section .di-structure-action:hover,
2339
+ .di-page-shell-section .di-structure-action:focus-visible {
2340
+ background: #dbeafe;
2341
+ }
2342
+ .di-page-shell-section .di-structure-link {
2343
+ color: #2563eb;
2344
+ }
2345
+ .di-page-shell-section .di-structure-child-group-head small {
2346
+ background: #dbeafe;
2347
+ color: #2563eb;
2348
+ }
2349
+ .di-layout-container-section .di-structure-link {
2350
+ color: #475569;
2351
+ }
2352
+ .di-layout-container-section .di-structure-link:hover,
2353
+ .di-layout-container-section .di-structure-link:focus-visible {
2354
+ background: #f1f5f9;
2355
+ border-color: #cbd5e1;
2356
+ }
2357
+ .di-layout-container-section .di-structure-child-group-head small {
2358
+ background: #e2e8f0;
2359
+ color: #475569;
2360
+ }
2361
+ .di-layout-container-section .di-structure-child-item:hover,
2362
+ .di-layout-container-section .di-structure-child-item:focus-visible {
2363
+ border-color: #cbd5e1;
2364
+ }
2365
+ .di-structure-callout-copy {
2366
+ min-width: 0;
2367
+ }
2368
+ .di-structure-title {
2369
+ font-size: 13px;
2370
+ font-weight: 800;
2371
+ line-height: 1.25;
2372
+ color: #111827;
2373
+ }
2374
+ .di-structure-desc {
2375
+ margin-top: 3px;
2376
+ font-size: 11px;
2377
+ font-weight: 600;
2378
+ line-height: 1.35;
2379
+ color: #64748b;
2380
+ }
2381
+ .di-structure-action {
2382
+ height: 30px;
2383
+ padding: 0 10px;
2384
+ border: 1px solid #c4b5fd;
2385
+ border-radius: 8px;
2386
+ background: #faf5ff;
2387
+ color: #7c3aed;
2388
+ font-family: inherit;
2389
+ font-size: 12px;
2390
+ font-weight: 800;
2391
+ white-space: nowrap;
2392
+ cursor: pointer;
2393
+ }
2394
+ .di-structure-action:hover,
2395
+ .di-structure-action:focus-visible {
2396
+ background: #f3e8ff;
2397
+ outline: none;
2398
+ }
2399
+ .di-structure-summary-grid {
2400
+ display: grid;
2401
+ gap: 8px;
2402
+ margin-top: 8px;
2403
+ }
2404
+ .di-structure-summary-card {
2405
+ display: grid;
2406
+ grid-template-columns: minmax(0, 1fr) max-content;
2407
+ align-items: center;
2408
+ gap: var(--di-control-gap-x);
2409
+ min-width: 0;
2410
+ padding: 9px 10px;
2411
+ border-radius: 10px;
2412
+ background: #f8fafc;
2413
+ }
2414
+ .di-structure-summary-main {
2415
+ display: grid;
2416
+ gap: 2px;
2417
+ min-width: 0;
2418
+ }
2419
+ .di-structure-summary-label {
2420
+ color: #94a3b8;
2421
+ font-size: 11px;
2422
+ font-weight: 800;
2423
+ line-height: 1.2;
2424
+ }
2425
+ .di-structure-summary-main strong {
2426
+ min-width: 0;
2427
+ color: #111827;
2428
+ font-size: 12px;
2429
+ font-weight: 850;
2430
+ line-height: 1.25;
2431
+ overflow: hidden;
2432
+ text-overflow: ellipsis;
2433
+ white-space: nowrap;
2434
+ }
2435
+ .di-structure-summary-main small {
2436
+ min-width: 0;
2437
+ color: #64748b;
2438
+ font-size: 11px;
2439
+ font-weight: 650;
2440
+ line-height: 1.35;
2441
+ overflow: hidden;
2442
+ text-overflow: ellipsis;
2443
+ white-space: nowrap;
2444
+ }
2445
+ .di-structure-link {
2446
+ height: 28px;
2447
+ border: 1px solid #e5e7eb;
2448
+ border-radius: 8px;
2449
+ background: #fff;
2450
+ color: #7c3aed;
2451
+ padding: 0 10px;
2452
+ font-family: inherit;
2453
+ font-size: 12px;
2454
+ font-weight: 800;
2455
+ white-space: nowrap;
2456
+ cursor: pointer;
2457
+ }
2458
+ .di-structure-link:hover,
2459
+ .di-structure-link:focus-visible {
2460
+ background: #faf5ff;
2461
+ border-color: #c4b5fd;
2462
+ outline: none;
2463
+ }
2464
+ .di-structure-child-groups {
2465
+ display: grid;
2466
+ gap: 6px;
2467
+ min-width: 0;
2468
+ }
2469
+ .di-structure-child-group {
2470
+ display: grid;
2471
+ gap: 5px;
2472
+ min-width: 0;
2473
+ padding: 8px;
2474
+ border-radius: 10px;
2475
+ background: #f8fafc;
2476
+ }
2477
+ .di-structure-child-group-head {
2478
+ display: flex;
2479
+ align-items: center;
2480
+ gap: 6px;
2481
+ min-width: 0;
2482
+ }
2483
+ .di-structure-child-group-head span {
2484
+ color: #111827;
2485
+ font-size: 12px;
2486
+ font-weight: 850;
2487
+ }
2488
+ .di-structure-child-group-head small {
2489
+ border-radius: 999px;
2490
+ background: #f4efff;
2491
+ color: #7c3aed;
2492
+ padding: 1px 6px;
2493
+ font-size: 11px;
2494
+ font-weight: 850;
2495
+ line-height: 1.3;
2496
+ }
2497
+ .di-structure-child-list {
2498
+ display: grid;
2499
+ gap: 4px;
2500
+ min-width: 0;
2501
+ }
2502
+ .di-structure-child-item {
2503
+ display: grid;
2504
+ grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
2505
+ align-items: center;
2506
+ gap: 8px;
2507
+ min-width: 0;
2508
+ height: 30px;
2509
+ border: 1px solid #e5e7eb;
2510
+ border-radius: 8px;
2511
+ background: #fff;
2512
+ padding: 0 9px;
2513
+ font-family: inherit;
2514
+ text-align: left;
2515
+ cursor: pointer;
2516
+ }
2517
+ .di-structure-child-item:hover,
2518
+ .di-structure-child-item:focus-visible {
2519
+ border-color: #c4b5fd;
2520
+ outline: none;
2521
+ }
2522
+ .di-structure-child-item span {
2523
+ color: #334155;
2524
+ font-size: 12px;
2525
+ font-weight: 800;
2526
+ }
2527
+ .di-structure-child-item small {
2528
+ min-width: 0;
2529
+ color: #64748b;
2530
+ font-size: 11px;
2531
+ font-weight: 650;
2532
+ overflow: hidden;
2533
+ text-overflow: ellipsis;
2534
+ white-space: nowrap;
2535
+ }
2536
+ .di-plugin-page-head {
2537
+ display: flex;
2538
+ align-items: center;
2539
+ gap: 8px;
2540
+ min-width: 0;
2541
+ }
2542
+ .di-plugin-back {
2543
+ height: 28px;
2544
+ border: 1px solid #e5e7eb;
2545
+ border-radius: 8px;
2546
+ background: #fff;
2547
+ color: #334155;
2548
+ display: inline-flex;
2549
+ align-items: center;
2550
+ gap: 5px;
2551
+ padding: 0 9px;
2552
+ font-family: inherit;
2553
+ font-size: 12px;
2554
+ font-weight: 800;
2555
+ white-space: nowrap;
2556
+ cursor: pointer;
2557
+ transition:
2558
+ background 0.12s,
2559
+ border-color 0.12s,
2560
+ color 0.12s,
2561
+ box-shadow 0.12s;
2562
+ }
2563
+ .di-plugin-back:hover,
2564
+ .di-plugin-back:focus-visible {
2565
+ background: #faf5ff;
2566
+ border-color: #c4b5fd;
2567
+ color: #7c3aed;
2568
+ outline: none;
2569
+ box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12);
2570
+ }
2571
+ .di-plugin-page-title {
2572
+ min-width: 0;
2573
+ display: inline-flex;
2574
+ align-items: center;
2575
+ gap: 5px;
2576
+ color: #7c3aed;
2577
+ font-size: 12px;
2578
+ font-weight: 850;
2579
+ overflow: hidden;
2580
+ text-overflow: ellipsis;
2581
+ white-space: nowrap;
2582
+ }
2583
+ .di-plugin-toolbar {
2584
+ display: flex;
2585
+ align-items: center;
2586
+ gap: 6px;
2587
+ min-width: 0;
2588
+ }
2589
+ .di-plugin-tab {
2590
+ height: 28px;
2591
+ border: 1px solid #e5e7eb;
2592
+ border-radius: 8px;
2593
+ background: #fff;
2594
+ color: #334155;
2595
+ display: inline-flex;
2596
+ align-items: center;
2597
+ gap: 5px;
2598
+ padding: 0 10px;
2599
+ font-size: 12px;
2600
+ font-weight: 700;
2601
+ font-family: inherit;
2602
+ line-height: 1;
2603
+ white-space: nowrap;
2604
+ cursor: pointer;
2605
+ transition:
2606
+ background 0.12s,
2607
+ border-color 0.12s,
2608
+ color 0.12s,
2609
+ box-shadow 0.12s;
2610
+ }
2611
+ .di-plugin-tab:hover,
2612
+ .di-plugin-tab:focus-visible {
2613
+ background: #faf5ff;
2614
+ border-color: #c4b5fd;
2615
+ color: #7c3aed;
2616
+ outline: none;
2617
+ }
2618
+ .di-plugin-tab--on {
2619
+ background: #f4efff;
2620
+ border-color: #c4b5fd;
2621
+ color: #7c3aed;
2622
+ }
2623
+ .di-plugin-msg {
2624
+ margin-left: auto;
2625
+ color: #7c3aed;
2626
+ font-size: 11px;
2627
+ font-weight: 700;
2628
+ white-space: nowrap;
2629
+ }
2630
+ .di-plugin-panel {
2631
+ margin-top: 6px;
2632
+ padding: 8px;
2633
+ border-radius: 10px;
2634
+ background: #f8fafc;
2635
+ display: grid;
2636
+ gap: 6px;
2637
+ }
2638
+ .di-plugin-panel--maker {
2639
+ background: transparent;
2640
+ padding: 0;
2641
+ gap: 8px;
2642
+ }
2643
+ .di-plugin-context-card,
2644
+ .di-plugin-maker-compact,
2645
+ .di-plugin-control-card {
2646
+ display: grid;
2647
+ gap: 6px;
2648
+ min-width: 0;
2649
+ padding: 8px;
2650
+ border-radius: 10px;
2651
+ background: #f8fafc;
2652
+ }
2653
+ .di-plugin-maker-compact {
2654
+ gap: 7px;
2655
+ }
2656
+ .di-plugin-maker-compact--variant {
2657
+ background: #fff;
2658
+ border: 1px solid #eef2f7;
2659
+ }
2660
+ .di-plugin-row {
2661
+ display: flex;
2662
+ align-items: center;
2663
+ gap: 8px;
2664
+ min-width: 0;
2665
+ }
2666
+ .di-plugin-label {
2667
+ flex: 0 0 auto;
2668
+ color: #94a3b8;
2669
+ font-size: 11px;
2670
+ font-weight: 700;
2671
+ }
2672
+ .di-plugin-value,
2673
+ .di-plugin-code {
2674
+ min-width: 0;
2675
+ color: #111827;
2676
+ font-size: 12px;
2677
+ font-weight: 700;
2678
+ overflow: hidden;
2679
+ text-overflow: ellipsis;
2680
+ white-space: nowrap;
2681
+ }
2682
+ .di-plugin-code {
2683
+ color: #64748b;
2684
+ font-family:
2685
+ ui-monospace,
2686
+ SFMono-Regular,
2687
+ Menlo,
2688
+ Monaco,
2689
+ Consolas,
2690
+ "Liberation Mono",
2691
+ monospace;
2692
+ font-weight: 600;
2693
+ }
2694
+ .di-plugin-control-row {
2695
+ display: flex;
2696
+ align-items: center;
2697
+ gap: 8px;
2698
+ min-width: 0;
2699
+ }
2700
+ .di-plugin-control-row--input {
2701
+ align-items: stretch;
2702
+ }
2703
+ .di-plugin-component-main {
2704
+ display: flex;
2705
+ align-items: baseline;
2706
+ gap: 6px;
2707
+ min-width: 0;
2708
+ }
2709
+ .di-plugin-component-main strong {
2710
+ min-width: 0;
2711
+ color: #111827;
2712
+ font-size: 13px;
2713
+ font-weight: 850;
2714
+ overflow: hidden;
2715
+ text-overflow: ellipsis;
2716
+ white-space: nowrap;
2717
+ }
2718
+ .di-plugin-component-main span {
2719
+ color: #64748b;
2720
+ font-size: 11px;
2721
+ font-weight: 750;
2722
+ }
2723
+ .di-plugin-source-toggle,
2724
+ .di-plugin-action-tiles {
2725
+ display: flex;
2726
+ align-items: center;
2727
+ gap: 6px;
2728
+ min-width: 0;
2729
+ flex-wrap: wrap;
2730
+ }
2731
+ .di-plugin-choice,
2732
+ .di-plugin-action-tile {
2733
+ height: 28px;
2734
+ border: 1px solid #e5e7eb;
2735
+ border-radius: 8px;
2736
+ background: #fff;
2737
+ color: #334155;
2738
+ padding: 0 10px;
2739
+ font-family: inherit;
2740
+ font-size: 12px;
2741
+ font-weight: 800;
2742
+ white-space: nowrap;
2743
+ cursor: pointer;
2744
+ transition:
2745
+ background 0.12s,
2746
+ border-color 0.12s,
2747
+ color 0.12s;
2748
+ }
2749
+ .di-plugin-choice:hover:not(:disabled),
2750
+ .di-plugin-choice:focus-visible:not(:disabled),
2751
+ .di-plugin-action-tile:hover,
2752
+ .di-plugin-action-tile:focus-visible {
2753
+ background: #faf5ff;
2754
+ border-color: #c4b5fd;
2755
+ color: #7c3aed;
2756
+ outline: none;
2757
+ }
2758
+ .di-plugin-choice--on,
2759
+ .di-plugin-action-tile--on {
2760
+ background: #fff;
2761
+ border-color: #c4b5fd;
2762
+ color: #7c3aed;
2763
+ box-shadow: inset 0 0 0 1px #c4b5fd;
2764
+ }
2765
+ .di-plugin-choice:disabled {
2766
+ color: #cbd5e1;
2767
+ cursor: not-allowed;
2768
+ }
2769
+ .di-plugin-inline-input {
2770
+ height: 30px;
2771
+ min-width: 0;
2772
+ flex: 1 1 auto;
2773
+ border: 1px solid #e5e7eb;
2774
+ border-radius: 8px;
2775
+ background: #fff;
2776
+ color: #111827;
2777
+ padding: 0 10px;
2778
+ font-family: inherit;
2779
+ font-size: 12px;
2780
+ font-weight: 750;
2781
+ outline: none;
2782
+ }
2783
+ .di-plugin-inline-input:focus {
2784
+ border-color: #c4b5fd;
2785
+ box-shadow: 0 0 0 1px #c4b5fd;
2786
+ }
2787
+ .di-plugin-code-name-input {
2788
+ font-family:
2789
+ ui-monospace,
2790
+ SFMono-Regular,
2791
+ Menlo,
2792
+ Monaco,
2793
+ Consolas,
2794
+ "Liberation Mono",
2795
+ monospace;
2796
+ font-weight: 750;
2797
+ }
2798
+ .di-plugin-empty-note,
2799
+ .di-plugin-action-hint {
2800
+ color: #94a3b8;
2801
+ font-size: 11px;
2802
+ font-weight: 700;
2803
+ line-height: 1.35;
2804
+ }
2805
+ .di-plugin-action-hint {
2806
+ padding-left: 58px;
2807
+ }
2808
+ .di-plugin-preview {
2809
+ display: flex;
2810
+ flex-wrap: wrap;
2811
+ gap: 5px;
2812
+ min-width: 0;
2813
+ }
2814
+ .di-plugin-preview span {
2815
+ max-width: 100%;
2816
+ padding: 4px 7px;
2817
+ border-radius: 7px;
2818
+ background: #fff;
2819
+ color: #64748b;
2820
+ font-size: 11px;
2821
+ font-weight: 600;
2822
+ line-height: 1.25;
2823
+ overflow: hidden;
2824
+ text-overflow: ellipsis;
2825
+ white-space: nowrap;
2826
+ }
2827
+ .di-plugin-subtitle {
2828
+ color: #111827;
2829
+ font-size: 12px;
2830
+ font-weight: 800;
2831
+ line-height: 1.2;
2832
+ }
2833
+ .di-plugin-spec-grid {
2834
+ display: grid;
2835
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2836
+ gap: 6px;
2837
+ min-width: 0;
2838
+ }
2839
+ .di-plugin-spec-field {
2840
+ display: grid;
2841
+ grid-template-columns: max-content minmax(0, 1fr);
2842
+ align-items: center;
2843
+ gap: 8px;
2844
+ min-width: 0;
2845
+ padding: 6px 8px;
2846
+ border-radius: 8px;
2847
+ background: #fff;
2848
+ }
2849
+ .di-plugin-spec-field--wide {
2850
+ grid-column: 1 / -1;
2851
+ align-items: start;
2852
+ }
2853
+ .di-plugin-spec-field span {
2854
+ color: #94a3b8;
2855
+ font-size: 11px;
2856
+ font-weight: 800;
2857
+ white-space: nowrap;
2858
+ }
2859
+ .di-plugin-spec-field input,
2860
+ .di-plugin-spec-field select,
2861
+ .di-plugin-spec-field textarea {
2862
+ min-width: 0;
2863
+ width: 100%;
2864
+ border: 0;
2865
+ padding: 0;
2866
+ background: transparent;
2867
+ color: #111827;
2868
+ font: inherit;
2869
+ font-size: 12px;
2870
+ font-weight: 650;
2871
+ outline: none;
2872
+ }
2873
+ .di-plugin-spec-field select {
2874
+ appearance: none;
2875
+ cursor: pointer;
2876
+ }
2877
+ .di-plugin-spec-field textarea {
2878
+ min-height: 34px;
2879
+ resize: vertical;
2880
+ line-height: 1.35;
2881
+ }
2882
+ .di-plugin-variant-builder {
2883
+ display: grid;
2884
+ gap: 8px;
2885
+ min-width: 0;
2886
+ }
2887
+ .di-plugin-variant-base,
2888
+ .di-plugin-variant-head {
2889
+ display: flex;
2890
+ align-items: center;
2891
+ justify-content: space-between;
2892
+ gap: 8px;
2893
+ min-width: 0;
2894
+ }
2895
+ .di-plugin-variant-base {
2896
+ min-height: 34px;
2897
+ padding: 6px 8px;
2898
+ border-radius: 9px;
2899
+ background: #fff;
2900
+ }
2901
+ .di-plugin-variant-base-copy {
2902
+ display: flex;
2903
+ align-items: center;
2904
+ gap: 6px;
2905
+ min-width: 0;
2906
+ color: #94a3b8;
2907
+ font-size: 11px;
2908
+ font-weight: 800;
2909
+ }
2910
+ .di-plugin-variant-base-copy strong {
2911
+ min-width: 0;
2912
+ color: #111827;
2913
+ font-size: 12px;
2914
+ overflow: hidden;
2915
+ text-overflow: ellipsis;
2916
+ white-space: nowrap;
2917
+ }
2918
+ .di-plugin-variant-count {
2919
+ flex: 0 0 auto;
2920
+ padding: 3px 7px;
2921
+ border-radius: 999px;
2922
+ background: #f3e8ff;
2923
+ color: #7c3aed;
2924
+ font-size: 11px;
2925
+ font-weight: 850;
2926
+ line-height: 1.2;
2927
+ }
2928
+ .di-plugin-variant-head {
2929
+ color: #64748b;
2930
+ font-size: 11px;
2931
+ font-weight: 800;
2932
+ }
2933
+ .di-plugin-variant-tools {
2934
+ display: inline-flex;
2935
+ align-items: center;
2936
+ gap: 4px;
2937
+ }
2938
+ .di-plugin-variant-tools button {
2939
+ border: 0;
2940
+ background: transparent;
2941
+ color: #7c3aed;
2942
+ padding: 2px 4px;
2943
+ font-family: inherit;
2944
+ font-size: 11px;
2945
+ font-weight: 800;
2946
+ cursor: pointer;
2947
+ }
2948
+ .di-plugin-variant-tools button:hover,
2949
+ .di-plugin-variant-tools button:focus-visible {
2950
+ text-decoration: underline;
2951
+ outline: none;
2952
+ }
2953
+ .di-plugin-variant-grid {
2954
+ display: grid;
2955
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2956
+ gap: 6px;
2957
+ min-width: 0;
2958
+ }
2959
+ .di-plugin-variant-card {
2960
+ position: relative;
2961
+ display: grid;
2962
+ grid-template-columns: 22px minmax(0, 1fr);
2963
+ align-items: center;
2964
+ column-gap: 7px;
2965
+ row-gap: 4px;
2966
+ min-width: 0;
2967
+ min-height: 52px;
2968
+ border: 1px solid #e5e7eb;
2969
+ border-radius: 9px;
2970
+ background: #fff;
2971
+ color: #111827;
2972
+ padding: 7px 8px;
2973
+ font-family: inherit;
2974
+ text-align: left;
2975
+ cursor: pointer;
2976
+ transition:
2977
+ background 0.12s,
2978
+ border-color 0.12s,
2979
+ color 0.12s,
2980
+ box-shadow 0.12s;
2981
+ }
2982
+ .di-plugin-variant-card:hover,
2983
+ .di-plugin-variant-card:focus-visible {
2984
+ border-color: #c4b5fd;
2985
+ outline: none;
2986
+ }
2987
+ .di-plugin-variant-card--on {
2988
+ border-color: #c4b5fd;
2989
+ background: #faf5ff;
2990
+ box-shadow: inset 0 0 0 1px #c4b5fd;
2991
+ }
2992
+ .di-plugin-variant-swatch {
2993
+ width: 22px;
2994
+ height: 22px;
2995
+ border-radius: 7px;
2996
+ background: #f8fafc;
2997
+ border: 1px solid #e2e8f0;
2998
+ }
2999
+ .di-plugin-variant-swatch--brand {
3000
+ background:
3001
+ linear-gradient(
3002
+ 135deg,
3003
+ #7c3aed,
3004
+ #6d5dfc);
3005
+ }
3006
+ .di-plugin-variant-swatch--compact {
3007
+ background:
3008
+ linear-gradient(
3009
+ 135deg,
3010
+ #fff,
3011
+ #eef2ff);
3012
+ }
3013
+ .di-plugin-variant-swatch--floating {
3014
+ background: #fff;
3015
+ box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
3016
+ }
3017
+ .di-plugin-variant-swatch--emphasis {
3018
+ background: #111827;
3019
+ }
3020
+ .di-plugin-variant-swatch--success {
3021
+ background: #bbf7d0;
3022
+ border-color: #86efac;
3023
+ }
3024
+ .di-plugin-variant-swatch--warning {
3025
+ background: #fef3c7;
3026
+ border-color: #fde68a;
3027
+ }
3028
+ .di-plugin-variant-swatch--danger {
3029
+ background: #fee2e2;
3030
+ border-color: #fecaca;
3031
+ }
3032
+ .di-plugin-variant-swatch--disabled {
3033
+ background: #f1f5f9;
3034
+ border-color: #e2e8f0;
3035
+ opacity: 0.72;
3036
+ }
3037
+ .di-plugin-variant-swatch--size {
3038
+ background:
3039
+ linear-gradient(
3040
+ 90deg,
3041
+ transparent 0 5px,
3042
+ #7c3aed 5px 9px,
3043
+ transparent 9px 13px,
3044
+ #7c3aed 13px 17px,
3045
+ transparent 17px),
3046
+ #faf5ff;
3047
+ }
3048
+ .di-plugin-variant-card-copy {
3049
+ display: grid;
3050
+ gap: 1px;
3051
+ min-width: 0;
3052
+ }
3053
+ .di-plugin-variant-card-copy strong {
3054
+ color: #7c3aed;
3055
+ font-size: 12px;
3056
+ font-weight: 850;
3057
+ line-height: 1.15;
3058
+ overflow: hidden;
3059
+ text-overflow: ellipsis;
3060
+ white-space: nowrap;
3061
+ }
3062
+ .di-plugin-variant-card-copy span {
3063
+ color: #64748b;
3064
+ font-size: 10.5px;
3065
+ font-weight: 700;
3066
+ line-height: 1.15;
3067
+ overflow: hidden;
3068
+ text-overflow: ellipsis;
3069
+ white-space: nowrap;
3070
+ }
3071
+ .di-plugin-variant-card-desc {
3072
+ grid-column: 1 / -1;
3073
+ color: #94a3b8;
3074
+ font-size: 10.5px;
3075
+ font-weight: 650;
3076
+ line-height: 1.2;
3077
+ overflow: hidden;
3078
+ text-overflow: ellipsis;
3079
+ white-space: nowrap;
3080
+ }
3081
+ .di-plugin-variant-sandbox {
3082
+ display: grid;
3083
+ gap: 8px;
3084
+ min-width: 0;
3085
+ }
3086
+ .di-plugin-control-card--variant-flow {
3087
+ gap: 8px;
3088
+ }
3089
+ .di-plugin-variant-workflow {
3090
+ display: grid;
3091
+ gap: 8px;
3092
+ min-width: 0;
3093
+ }
3094
+ .di-plugin-library-row,
3095
+ .di-plugin-sandbox-row,
3096
+ .di-plugin-selected-variants {
3097
+ display: grid;
3098
+ grid-template-columns: max-content minmax(0, 1fr);
3099
+ align-items: center;
3100
+ gap: 8px;
3101
+ min-width: 0;
3102
+ }
3103
+ .di-plugin-library-pills,
3104
+ .di-plugin-sandbox-options,
3105
+ .di-plugin-selected-chip-row {
3106
+ display: flex;
3107
+ flex-wrap: wrap;
3108
+ align-items: center;
3109
+ gap: 6px;
3110
+ min-width: 0;
3111
+ }
3112
+ .di-plugin-library-pill,
3113
+ .di-plugin-sandbox-option,
3114
+ .di-plugin-selected-chip {
3115
+ min-width: 0;
3116
+ height: 28px;
3117
+ border: 1px solid #e5e7eb;
3118
+ border-radius: 8px;
3119
+ background: #fff;
3120
+ color: #334155;
3121
+ padding: 0 9px;
3122
+ font-family: inherit;
3123
+ font-size: 12px;
3124
+ font-weight: 800;
3125
+ line-height: 1;
3126
+ cursor: pointer;
3127
+ }
3128
+ .di-plugin-library-pill {
3129
+ max-width: 128px;
3130
+ overflow: hidden;
3131
+ text-overflow: ellipsis;
3132
+ white-space: nowrap;
3133
+ }
3134
+ .di-plugin-library-pill:hover,
3135
+ .di-plugin-library-pill:focus-visible,
3136
+ .di-plugin-sandbox-option:hover,
3137
+ .di-plugin-sandbox-option:focus-visible,
3138
+ .di-plugin-selected-chip:hover,
3139
+ .di-plugin-selected-chip:focus-visible {
3140
+ border-color: #c4b5fd;
3141
+ outline: none;
3142
+ }
3143
+ .di-plugin-library-pill--on,
3144
+ .di-plugin-sandbox-option--on {
3145
+ border-color: #c4b5fd;
3146
+ background: #f5f3ff;
3147
+ color: #7c3aed;
3148
+ }
3149
+ .di-plugin-sandbox-option--preview {
3150
+ box-shadow: inset 0 0 0 1px #a78bfa;
3151
+ }
3152
+ .di-plugin-live-preview {
3153
+ display: grid;
3154
+ gap: 7px;
3155
+ min-width: 0;
3156
+ padding: 8px;
3157
+ border-radius: 10px;
3158
+ background: #fff;
3159
+ border: 1px solid #e5e7eb;
3160
+ }
3161
+ .di-plugin-live-preview--floating {
3162
+ box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
3163
+ }
3164
+ .di-plugin-live-preview--emphasis {
3165
+ background: #f8fafc;
3166
+ border-color: #cbd5e1;
3167
+ }
3168
+ .di-plugin-live-preview--brand {
363
3169
  border-color: #c4b5fd;
364
- color: #7c3aed;
365
- outline: none;
366
- box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12);
3170
+ background: #faf5ff;
367
3171
  }
368
- .di-head-icon-btn:disabled {
369
- background: #fff;
370
- border-color: #eef2f7;
371
- color: #cbd5e1;
372
- cursor: not-allowed;
373
- box-shadow: none;
3172
+ .di-plugin-live-preview--compact {
3173
+ padding: 6px;
374
3174
  }
375
- .di-head-icon-btn svg {
376
- width: 15px;
377
- height: 15px;
378
- flex: 0 0 auto;
3175
+ .di-plugin-live-preview--disabled {
3176
+ opacity: 0.72;
379
3177
  }
380
- .di-head-right {
3178
+ .di-plugin-live-preview-head,
3179
+ .di-plugin-live-base,
3180
+ .di-plugin-preview-meta {
381
3181
  display: flex;
382
3182
  align-items: center;
3183
+ justify-content: space-between;
383
3184
  gap: 8px;
3185
+ min-width: 0;
384
3186
  }
385
- .di-title {
386
- font-size: 15px;
387
- font-weight: 700;
388
- color: #111827;
3187
+ .di-plugin-real-preview-frame {
3188
+ min-width: 0;
3189
+ max-height: 180px;
3190
+ overflow: hidden;
3191
+ border-radius: 9px;
3192
+ background: #fff;
389
3193
  }
390
- .di-badge-dev {
391
- padding: 2px 8px;
392
- border-radius: 6px;
393
- background: rgba(124, 58, 237, 0.1);
394
- color: #7c3aed;
3194
+ .di-plugin-real-preview-inner {
3195
+ min-width: 0;
3196
+ padding: 8px;
3197
+ overflow: hidden;
3198
+ }
3199
+ .di-plugin-real-preview-inner > * {
3200
+ max-width: 100%;
3201
+ margin-left: 0 !important;
3202
+ margin-right: 0 !important;
3203
+ pointer-events: none;
3204
+ }
3205
+ .di-plugin-live-preview--compact .di-plugin-real-preview-inner {
3206
+ padding: 6px;
3207
+ }
3208
+ .di-plugin-preview-meta {
3209
+ color: #64748b;
395
3210
  font-size: 11px;
396
- font-weight: 600;
3211
+ font-weight: 750;
397
3212
  }
398
- .di-spec-link {
399
- background: none;
400
- border: none;
3213
+ .di-plugin-preview-meta strong {
3214
+ min-width: 0;
401
3215
  color: #7c3aed;
402
- font-size: 12px;
403
- font-family: inherit;
404
- cursor: pointer;
405
- padding: 0;
3216
+ overflow: hidden;
3217
+ text-overflow: ellipsis;
3218
+ white-space: nowrap;
406
3219
  }
407
- .di-spec-link:hover {
408
- text-decoration: underline;
3220
+ .di-plugin-live-card {
3221
+ display: grid;
3222
+ grid-template-columns: 24px minmax(0, 1fr);
3223
+ align-items: center;
3224
+ column-gap: 8px;
3225
+ row-gap: 3px;
3226
+ min-width: 0;
3227
+ min-height: 56px;
3228
+ padding: 8px;
3229
+ border-radius: 9px;
3230
+ background: #f8fafc;
409
3231
  }
410
- .di-body {
411
- overflow-y: auto;
412
- flex: 1;
413
- padding: 2px 0 4px;
3232
+ .di-plugin-live-preview--compact .di-plugin-live-card {
3233
+ min-height: 46px;
3234
+ padding: 6px;
414
3235
  }
415
- .di-body--readonly {
416
- pointer-events: none;
417
- opacity: 0.72;
418
- user-select: none;
3236
+ .di-plugin-live-preview--emphasis .di-plugin-live-card {
3237
+ background: #0f172a;
419
3238
  }
420
- .di-section {
421
- padding: 8px 14px;
422
- border-bottom: 1px solid #f3f4f6;
3239
+ .di-plugin-live-card-copy {
3240
+ display: grid;
3241
+ gap: 1px;
3242
+ min-width: 0;
423
3243
  }
424
- .di-section:last-child {
425
- border-bottom: none;
3244
+ .di-plugin-live-card-copy strong {
3245
+ color: #7c3aed;
3246
+ font-size: 13px;
3247
+ font-weight: 850;
3248
+ line-height: 1.15;
3249
+ overflow: hidden;
3250
+ text-overflow: ellipsis;
3251
+ white-space: nowrap;
426
3252
  }
427
- .di-section-title {
428
- font-size: 12px;
3253
+ .di-plugin-live-preview--emphasis .di-plugin-live-card-copy strong {
3254
+ color: #fff;
3255
+ }
3256
+ .di-plugin-live-card-copy span,
3257
+ .di-plugin-live-card p,
3258
+ .di-plugin-live-base {
3259
+ color: #64748b;
3260
+ font-size: 11px;
429
3261
  font-weight: 700;
3262
+ line-height: 1.2;
3263
+ }
3264
+ .di-plugin-live-preview--emphasis .di-plugin-live-card-copy span,
3265
+ .di-plugin-live-preview--emphasis .di-plugin-live-card p {
3266
+ color: #cbd5e1;
3267
+ }
3268
+ .di-plugin-live-card p {
3269
+ grid-column: 1 / -1;
3270
+ margin: 0;
3271
+ overflow: hidden;
3272
+ text-overflow: ellipsis;
3273
+ white-space: nowrap;
3274
+ }
3275
+ .di-plugin-live-base strong {
3276
+ min-width: 0;
430
3277
  color: #111827;
431
- margin-bottom: var(--di-section-title-gap);
3278
+ overflow: hidden;
3279
+ text-overflow: ellipsis;
3280
+ white-space: nowrap;
432
3281
  }
433
- .di-section-title-row {
434
- display: flex;
3282
+ .di-plugin-sandbox-controls {
3283
+ display: grid;
3284
+ gap: 6px;
3285
+ min-width: 0;
3286
+ }
3287
+ .di-plugin-sandbox-controls--single .di-plugin-sandbox-row {
435
3288
  align-items: center;
436
- gap: var(--di-control-gap-x);
437
- margin-bottom: var(--di-section-title-gap);
438
3289
  }
439
- .di-section-title-row--action {
440
- justify-content: space-between;
441
- min-height: 24px;
3290
+ .di-plugin-sandbox-controls--single .di-plugin-sandbox-option {
3291
+ min-width: 54px;
442
3292
  }
443
- .di-section-title-row--empty {
444
- margin-bottom: 0;
3293
+ .di-plugin-selected-variants {
3294
+ align-items: start;
445
3295
  }
446
- .di-section-title-row .di-section-title {
447
- margin-bottom: 0;
3296
+ .di-plugin-selected-chip {
3297
+ color: #7c3aed;
448
3298
  }
449
- .di-section-title-group {
450
- display: inline-flex;
451
- align-items: center;
3299
+ .di-plugin-selected-variants .di-plugin-variant-tools {
3300
+ grid-column: 2;
3301
+ justify-content: flex-start;
3302
+ }
3303
+ .di-plugin-actions {
3304
+ display: flex;
3305
+ flex-wrap: wrap;
452
3306
  gap: 6px;
453
- min-width: 0;
3307
+ align-items: center;
454
3308
  }
455
- .di-section-icon-action {
456
- width: 24px;
457
- height: 24px;
3309
+ .di-plugin-action {
3310
+ justify-self: start;
3311
+ height: 28px;
458
3312
  border: 1px solid #e5e7eb;
459
- border-radius: 7px;
3313
+ border-radius: 8px;
460
3314
  background: #fff;
461
- color: #64748b;
462
- display: inline-flex;
463
- align-items: center;
464
- justify-content: center;
465
- padding: 0;
3315
+ color: #334155;
3316
+ padding: 0 10px;
3317
+ font-family: inherit;
3318
+ font-size: 12px;
3319
+ font-weight: 700;
466
3320
  cursor: pointer;
467
3321
  transition:
468
3322
  background 0.12s,
469
3323
  border-color 0.12s,
470
- color 0.12s,
471
- box-shadow 0.12s;
3324
+ color 0.12s;
472
3325
  }
473
- .di-section-icon-action:hover,
474
- .di-section-icon-action:focus-visible {
3326
+ .di-plugin-action:hover:not(:disabled),
3327
+ .di-plugin-action:focus-visible:not(:disabled) {
475
3328
  background: #faf5ff;
476
3329
  border-color: #c4b5fd;
477
3330
  color: #7c3aed;
478
3331
  outline: none;
479
- box-shadow: 0 1px 3px rgba(124, 58, 237, 0.12);
480
3332
  }
481
- .di-section-icon-action svg {
482
- width: 14px;
483
- height: 14px;
3333
+ .di-plugin-action:disabled {
3334
+ color: #cbd5e1;
3335
+ cursor: not-allowed;
484
3336
  }
485
- .di-section-icon-action--reset {
3337
+ .di-plugin-action--secondary {
486
3338
  color: #64748b;
487
3339
  }
488
3340
  .di-source-action {
@@ -1424,6 +4276,33 @@
1424
4276
  grid-template-columns: repeat(3, minmax(0, 1fr));
1425
4277
  row-gap: 6px;
1426
4278
  }
4279
+ .di-appearance-toolbar.di-container-toolbar--custom {
4280
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4281
+ gap: var(--di-control-gap-y) var(--di-control-gap-x);
4282
+ }
4283
+ .di-appearance-field {
4284
+ display: grid;
4285
+ grid-template-columns: max-content minmax(0, 1fr);
4286
+ align-items: center;
4287
+ gap: var(--di-field-label-gap);
4288
+ min-width: 0;
4289
+ }
4290
+ .di-appearance-field-label {
4291
+ align-self: center;
4292
+ color: #9ca3af;
4293
+ font-size: 10px;
4294
+ font-weight: 800;
4295
+ line-height: 1.2;
4296
+ white-space: nowrap;
4297
+ }
4298
+ .di-appearance-field .di-custom-select {
4299
+ min-width: 0;
4300
+ }
4301
+ .di-appearance-field .di-typography-control-wrap,
4302
+ .di-appearance-field .di-color-select,
4303
+ .di-appearance-field .di-typography-control {
4304
+ min-width: 0;
4305
+ }
1427
4306
  .di-border-control--width,
1428
4307
  .di-border-control--line,
1429
4308
  .di-border-control--radius {
@@ -1946,11 +4825,40 @@
1946
4825
  color: #6b7280;
1947
4826
  }
1948
4827
  .di-custom-bottom {
4828
+ --di-custom-color-control-height: 28px;
1949
4829
  border-top: 1px solid #f3f4f6;
1950
- padding: 8px 12px;
4830
+ margin: 0 -12px;
4831
+ padding: 12px;
4832
+ min-height: 52px;
1951
4833
  display: flex;
1952
4834
  align-items: center;
1953
4835
  gap: 6px;
4836
+ flex: 0 0 auto;
4837
+ box-sizing: border-box;
4838
+ }
4839
+ .di-custom-bottom .di-custom-color-trigger {
4840
+ box-sizing: border-box;
4841
+ width: var(--di-custom-color-control-height);
4842
+ height: var(--di-custom-color-control-height);
4843
+ border-radius: 6px;
4844
+ padding: 0;
4845
+ appearance: none;
4846
+ display: block;
4847
+ }
4848
+ .di-custom-bottom .di-custom-color-trigger:hover {
4849
+ transform: none;
4850
+ }
4851
+ .di-custom-color-input {
4852
+ position: absolute;
4853
+ width: 1px;
4854
+ height: 1px;
4855
+ opacity: 0;
4856
+ pointer-events: none;
4857
+ }
4858
+ .di-custom-bottom .di-field-wrap {
4859
+ box-sizing: border-box;
4860
+ height: var(--di-custom-color-control-height);
4861
+ border-radius: 6px;
1954
4862
  }
1955
4863
  .di-field-wrap {
1956
4864
  display: flex;
@@ -2084,15 +4992,24 @@
2084
4992
  border: 1px solid #e5e7eb;
2085
4993
  border-radius: 12px;
2086
4994
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
2087
- padding: 10px 12px 4px;
4995
+ padding: 12px 12px 0;
2088
4996
  min-width: 200px;
2089
4997
  max-width: 240px;
2090
4998
  max-height: 280px;
4999
+ display: flex;
5000
+ flex-direction: column;
5001
+ overflow: hidden;
5002
+ }
5003
+ .di-palette-scroll {
5004
+ min-height: 0;
2091
5005
  overflow-y: auto;
2092
5006
  }
2093
5007
  .di-palette-group {
2094
5008
  margin-bottom: 8px;
2095
5009
  }
5010
+ .di-palette-group--last {
5011
+ margin-bottom: 12px;
5012
+ }
2096
5013
  .di-palette-group-label {
2097
5014
  font-size: 10px;
2098
5015
  font-weight: 700;
@@ -2107,17 +5024,30 @@
2107
5024
  gap: 5px;
2108
5025
  }
2109
5026
  .di-palette-swatch {
2110
- width: 22px;
2111
- height: 22px;
2112
- border-radius: 5px;
2113
- border: 1px solid rgba(0, 0, 0, 0.15);
5027
+ box-sizing: border-box;
5028
+ width: 26px;
5029
+ height: 26px;
5030
+ border-radius: 7px;
5031
+ border: 0;
5032
+ background: transparent;
2114
5033
  cursor: pointer;
2115
- transition: transform 0.1s, box-shadow 0.1s;
5034
+ padding: 0;
5035
+ display: flex;
5036
+ align-items: center;
5037
+ justify-content: center;
5038
+ transition: box-shadow 0.1s, background 0.1s;
2116
5039
  flex-shrink: 0;
2117
5040
  }
2118
5041
  .di-palette-swatch:hover {
2119
- transform: scale(1.15);
2120
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
5042
+ background: #f8fafc;
5043
+ }
5044
+ .di-palette-swatch-fill {
5045
+ box-sizing: border-box;
5046
+ width: 22px;
5047
+ height: 22px;
5048
+ border-radius: 5px;
5049
+ border: 1px solid rgba(0, 0, 0, 0.15);
5050
+ flex: 0 0 auto;
2121
5051
  }
2122
5052
  .di-palette-none {
2123
5053
  width: 22px;
@@ -2143,8 +5073,11 @@
2143
5073
  transform-origin: center;
2144
5074
  }
2145
5075
  .di-palette-swatch--on {
2146
- outline: 2px solid #7c3aed;
2147
- outline-offset: 1px;
5076
+ box-shadow: inset 0 0 0 2px #7c3aed;
5077
+ }
5078
+ .di-palette-swatch--on:hover {
5079
+ background: transparent;
5080
+ box-shadow: inset 0 0 0 2px #7c3aed;
2148
5081
  }
2149
5082
  .di-layout-grid {
2150
5083
  display: grid;
@@ -3088,14 +6021,24 @@
3088
6021
  }
3089
6022
  .di-foot {
3090
6023
  display: flex;
6024
+ align-items: center;
3091
6025
  gap: 8px;
3092
6026
  padding: 8px 14px;
3093
6027
  border-top: 1px solid #f3f4f6;
3094
6028
  flex-shrink: 0;
3095
6029
  }
6030
+ .di-foot-secondary-actions {
6031
+ display: flex;
6032
+ align-items: center;
6033
+ flex: 0 0 auto;
6034
+ gap: 8px;
6035
+ min-width: 0;
6036
+ }
3096
6037
  .di-btn-cancel {
3097
- flex: 1;
3098
- padding: 7px 0;
6038
+ flex: 0 0 auto;
6039
+ min-width: 70px;
6040
+ height: 42px;
6041
+ padding: 0 10px;
3099
6042
  border-radius: 8px;
3100
6043
  border: 1px solid #e5e7eb;
3101
6044
  background: #fff;
@@ -3109,6 +6052,16 @@
3109
6052
  .di-btn-cancel:hover {
3110
6053
  background: #f9fafb;
3111
6054
  }
6055
+ .di-btn-maker {
6056
+ flex: 0 0 auto;
6057
+ color: #7c3aed;
6058
+ border-color: #c4b5fd;
6059
+ background: #faf5ff;
6060
+ white-space: nowrap;
6061
+ }
6062
+ .di-btn-maker:hover {
6063
+ background: #f3e8ff;
6064
+ }
3112
6065
  .di-btn-submit {
3113
6066
  flex: 1.3;
3114
6067
  padding: 7px 0;
@@ -3151,8 +6104,10 @@
3151
6104
  background: #ede9fe;
3152
6105
  }
3153
6106
  .di-btn-save {
3154
- flex: 1.6;
3155
- padding: 7px 12px;
6107
+ flex: 1 1 auto;
6108
+ min-width: 112px;
6109
+ height: 42px;
6110
+ padding: 0 16px;
3156
6111
  border-radius: 8px;
3157
6112
  border: none;
3158
6113
  background: #7c3aed;
@@ -3165,6 +6120,18 @@
3165
6120
  transition: background 0.12s;
3166
6121
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
3167
6122
  }
6123
+ .di-foot > .di-btn-save {
6124
+ flex: 0 0 102px;
6125
+ width: 102px;
6126
+ min-width: 102px;
6127
+ padding: 0 12px;
6128
+ }
6129
+ .di-foot--without-maker > .di-btn-save {
6130
+ flex: 1 1 auto;
6131
+ width: auto;
6132
+ min-width: 112px;
6133
+ padding: 0 16px;
6134
+ }
3168
6135
  .di-btn-save:hover {
3169
6136
  background: #6d28d9;
3170
6137
  }