@bpmn-nova/studio 0.4.0 → 0.4.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.
Files changed (32) hide show
  1. package/README.md +1 -1
  2. package/dist/flow-tree.d.ts +4 -0
  3. package/dist/flow-tree.js +14 -0
  4. package/dist/modules/flow-tree/controller.js +364 -0
  5. package/dist/modules/flow-tree/index.d.ts +248 -0
  6. package/dist/modules/flow-tree/index.js +5 -0
  7. package/dist/modules/flow-tree/operations.js +484 -0
  8. package/dist/modules/flow-tree/sample.js +445 -0
  9. package/dist/modules/flow-tree/schema.js +588 -0
  10. package/dist/modules/flow-tree/validate.js +125 -0
  11. package/dist/modules/flow-tree-bpmn/compiler.js +547 -0
  12. package/dist/modules/flow-tree-bpmn/decompiler.js +524 -0
  13. package/dist/modules/flow-tree-bpmn/expression.js +135 -0
  14. package/dist/modules/flow-tree-bpmn/index.d.ts +53 -0
  15. package/dist/modules/flow-tree-bpmn/index.js +14 -0
  16. package/dist/modules/flow-tree-renderer/canvas.js +1003 -0
  17. package/dist/modules/flow-tree-renderer/export-svg.js +325 -0
  18. package/dist/modules/flow-tree-renderer/index.d.ts +143 -0
  19. package/dist/modules/flow-tree-renderer/index.js +3 -0
  20. package/dist/modules/flow-tree-renderer/shell.js +970 -0
  21. package/dist/modules/i18n/locales/en-US.js +399 -0
  22. package/dist/modules/i18n/locales/zh-CN.js +399 -0
  23. package/dist/modules/icons/index.js +23 -0
  24. package/dist/modules/properties-flow-tree/index.d.ts +56 -0
  25. package/dist/modules/properties-flow-tree/index.js +2 -0
  26. package/dist/modules/properties-flow-tree/panel.js +1136 -0
  27. package/dist/modules/properties-flow-tree/widgets.js +625 -0
  28. package/dist/modules/viewer/index.js +10 -2
  29. package/dist/styles.css +2368 -0
  30. package/llms-full.txt +353 -9
  31. package/llms.txt +3 -2
  32. package/package.json +6 -1
package/dist/styles.css CHANGED
@@ -1510,3 +1510,2371 @@ textarea.property-control { resize: vertical; }
1510
1510
  .nova-studio-body.is-managed-sidebars.is-sidebar-animated, .is-sidebar-animated > .nova-studio-sidebar-toggle { transition: none; }
1511
1511
  }
1512
1512
 
1513
+ /* @bpmn-nova/internal/properties-flow-tree */
1514
+ .nova-ft-properties {
1515
+ min-height: 100%;
1516
+ color: var(--nova-color-text, #1f2430);
1517
+ background: var(--nova-color-surface, #ffffff);
1518
+ font-family: var(--nova-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
1519
+ color-scheme: inherit;
1520
+ }
1521
+
1522
+ .ft-prop-root {
1523
+ display: flex;
1524
+ flex-direction: column;
1525
+ min-height: 100%;
1526
+ }
1527
+
1528
+ .ft-prop-head {
1529
+ position: sticky;
1530
+ top: 0;
1531
+ z-index: 6;
1532
+ padding: 14px 16px 12px;
1533
+ border-bottom: 1px solid var(--nova-color-divider, #e9ecf2);
1534
+ background: color-mix(in srgb, var(--nova-color-surface) 97%, transparent);
1535
+ backdrop-filter: blur(8px);
1536
+ }
1537
+
1538
+ .ft-prop-head-top {
1539
+ display: flex;
1540
+ align-items: center;
1541
+ gap: 10px;
1542
+ }
1543
+
1544
+ .ft-prop-type-badge {
1545
+ flex: none;
1546
+ width: 32px;
1547
+ height: 32px;
1548
+ border-radius: 9px;
1549
+ display: grid;
1550
+ place-items: center;
1551
+ color: var(--nova-tone-primary-foreground);
1552
+ background: var(--nova-tone-primary-background);
1553
+ border: 1px solid var(--nova-tone-primary-border);
1554
+ }
1555
+
1556
+ .ft-prop-type-badge.tone-user-task { color: var(--nova-tone-user-task-foreground); background: var(--nova-tone-user-task-background); border-color: var(--nova-tone-user-task-border); }
1557
+ .ft-prop-type-badge.tone-info { color: var(--nova-tone-info-foreground); background: var(--nova-tone-info-background); border-color: var(--nova-tone-info-border); }
1558
+ .ft-prop-type-badge.tone-message-task { color: var(--nova-tone-message-task-foreground); background: var(--nova-tone-message-task-background); border-color: var(--nova-tone-message-task-border); }
1559
+ .ft-prop-type-badge.tone-success { color: var(--nova-tone-success-foreground); background: var(--nova-tone-success-background); border-color: var(--nova-tone-success-border); }
1560
+ .ft-prop-type-badge.tone-script-task { color: var(--nova-tone-script-task-foreground); background: var(--nova-tone-script-task-background); border-color: var(--nova-tone-script-task-border); }
1561
+ .ft-prop-type-badge.tone-rule-task { color: var(--nova-tone-rule-task-foreground); background: var(--nova-tone-rule-task-background); border-color: var(--nova-tone-rule-task-border); }
1562
+ .ft-prop-type-badge.tone-warning { color: var(--nova-tone-warning-foreground); background: var(--nova-tone-warning-background); border-color: var(--nova-tone-warning-border); }
1563
+ .ft-prop-type-badge.tone-service-task { color: var(--nova-tone-service-task-foreground); background: var(--nova-tone-service-task-background); border-color: var(--nova-tone-service-task-border); }
1564
+ .ft-prop-type-badge.tone-manual-task { color: var(--nova-tone-manual-task-foreground); background: var(--nova-tone-manual-task-background); border-color: var(--nova-tone-manual-task-border); }
1565
+ .ft-prop-type-badge.tone-neutral { color: var(--nova-tone-neutral-foreground); background: var(--nova-tone-neutral-background); border-color: var(--nova-tone-neutral-border); }
1566
+
1567
+ .ft-prop-head-copy {
1568
+ min-width: 0;
1569
+ display: grid;
1570
+ gap: 2px;
1571
+ }
1572
+
1573
+ .ft-prop-head-copy strong {
1574
+ overflow: hidden;
1575
+ text-overflow: ellipsis;
1576
+ white-space: nowrap;
1577
+ font-size: 14px;
1578
+ font-weight: 700;
1579
+ line-height: 20px;
1580
+ color: var(--nova-color-text);
1581
+ }
1582
+
1583
+ .ft-prop-head-copy small {
1584
+ overflow: hidden;
1585
+ text-overflow: ellipsis;
1586
+ white-space: nowrap;
1587
+ font-size: 11px;
1588
+ line-height: 15px;
1589
+ color: var(--nova-color-text-muted);
1590
+ }
1591
+
1592
+ .ft-prop-breadcrumb {
1593
+ margin-top: 8px;
1594
+ border: 1px solid var(--nova-tone-primary-border);
1595
+ border-radius: 7px;
1596
+ padding: 5px 9px;
1597
+ display: inline-flex;
1598
+ align-items: center;
1599
+ gap: 5px;
1600
+ max-width: 100%;
1601
+ color: var(--nova-tone-primary-foreground);
1602
+ background: var(--nova-color-primary-soft);
1603
+ font: inherit;
1604
+ font-size: 11.5px;
1605
+ font-weight: 500;
1606
+ cursor: pointer;
1607
+ transition: background-color .14s ease, border-color .14s ease;
1608
+ }
1609
+
1610
+ .ft-prop-breadcrumb:hover {
1611
+ border-color: var(--nova-color-primary);
1612
+ }
1613
+
1614
+ .ft-prop-breadcrumb span:last-child {
1615
+ overflow: hidden;
1616
+ text-overflow: ellipsis;
1617
+ white-space: nowrap;
1618
+ }
1619
+
1620
+ .ft-prop-tabs {
1621
+ margin-top: 12px;
1622
+ padding: 3px;
1623
+ border-radius: 8px;
1624
+ display: grid;
1625
+ grid-auto-flow: column;
1626
+ grid-auto-columns: minmax(0, 1fr);
1627
+ gap: 2px;
1628
+ background: var(--nova-color-surface-muted);
1629
+ }
1630
+
1631
+ .ft-prop-tab {
1632
+ min-height: 28px;
1633
+ border: 0;
1634
+ border-radius: 6px;
1635
+ padding: 0 6px;
1636
+ color: var(--nova-color-text-muted);
1637
+ background: transparent;
1638
+ font: inherit;
1639
+ font-size: 12px;
1640
+ font-weight: 500;
1641
+ white-space: nowrap;
1642
+ cursor: pointer;
1643
+ transition: color .14s ease, background-color .14s ease, box-shadow .14s ease;
1644
+ }
1645
+
1646
+ .ft-prop-tab.is-active {
1647
+ color: var(--nova-tone-primary-foreground);
1648
+ background: var(--nova-color-surface);
1649
+ font-weight: 600;
1650
+ box-shadow: var(--nova-shadow-sm);
1651
+ }
1652
+
1653
+ .ft-prop-body {
1654
+ padding: 12px 14px 28px;
1655
+ display: grid;
1656
+ gap: 14px;
1657
+ }
1658
+
1659
+ .ft-prop-alert {
1660
+ border-radius: 9px;
1661
+ padding: 9px 11px;
1662
+ display: grid;
1663
+ gap: 6px;
1664
+ font-size: 12px;
1665
+ line-height: 17px;
1666
+ }
1667
+
1668
+ .ft-prop-alert.is-error {
1669
+ color: var(--nova-tone-danger-foreground);
1670
+ background: var(--nova-tone-danger-background);
1671
+ border: 1px solid var(--nova-tone-danger-border);
1672
+ }
1673
+
1674
+ .ft-prop-alert.is-warning {
1675
+ color: var(--nova-tone-warning-foreground);
1676
+ background: var(--nova-tone-warning-background);
1677
+ border: 1px solid var(--nova-tone-warning-border);
1678
+ }
1679
+
1680
+ .ft-prop-alert-item {
1681
+ display: flex;
1682
+ align-items: flex-start;
1683
+ gap: 6px;
1684
+ }
1685
+
1686
+ .ft-prop-alert-item > .nova-icon {
1687
+ flex: none;
1688
+ margin-top: 2px;
1689
+ }
1690
+
1691
+ .ft-prop-section {
1692
+ border-bottom: 1px solid var(--nova-color-divider);
1693
+ padding-bottom: 14px;
1694
+ display: grid;
1695
+ gap: 10px;
1696
+ }
1697
+
1698
+ .ft-prop-section:last-child {
1699
+ border-bottom: 0;
1700
+ padding-bottom: 0;
1701
+ }
1702
+
1703
+ .ft-prop-section-head strong {
1704
+ font-size: 12px;
1705
+ font-weight: 700;
1706
+ line-height: 18px;
1707
+ color: var(--nova-color-text);
1708
+ }
1709
+
1710
+ .nova-ft-properties .ft-prop-section-desc {
1711
+ margin: 0;
1712
+ font-size: 11px;
1713
+ line-height: 16px;
1714
+ color: var(--nova-color-text-muted);
1715
+ }
1716
+
1717
+ .ft-prop-section-body {
1718
+ display: grid;
1719
+ gap: 10px;
1720
+ }
1721
+
1722
+ .ft-prop-field {
1723
+ display: grid;
1724
+ gap: 5px;
1725
+ }
1726
+
1727
+ .ft-prop-label {
1728
+ font-size: 12px;
1729
+ font-weight: 500;
1730
+ line-height: 17px;
1731
+ color: var(--nova-color-text-secondary);
1732
+ }
1733
+
1734
+ .ft-prop-required {
1735
+ color: var(--nova-tone-danger-strong);
1736
+ }
1737
+
1738
+ .ft-prop-note {
1739
+ font-size: 11px;
1740
+ line-height: 15px;
1741
+ color: var(--nova-color-text-muted);
1742
+ }
1743
+
1744
+ .ft-prop-input,
1745
+ .ft-prop-select,
1746
+ .ft-prop-textarea {
1747
+ box-sizing: border-box;
1748
+ width: 100%;
1749
+ min-height: 34px;
1750
+ border: 1px solid var(--nova-color-border);
1751
+ border-radius: 7px;
1752
+ padding: 6px 9px;
1753
+ color: var(--nova-color-text);
1754
+ background: var(--nova-color-surface);
1755
+ font: inherit;
1756
+ font-size: 12px;
1757
+ line-height: 18px;
1758
+ outline: none;
1759
+ }
1760
+
1761
+ .ft-prop-input.is-compact {
1762
+ min-height: 30px;
1763
+ padding: 4px 7px;
1764
+ }
1765
+
1766
+ .ft-prop-input.is-mono,
1767
+ .ft-prop-textarea.is-mono {
1768
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1769
+ font-size: 11.5px;
1770
+ }
1771
+
1772
+ .ft-prop-textarea {
1773
+ resize: vertical;
1774
+ min-height: 68px;
1775
+ }
1776
+
1777
+ .ft-prop-input:focus,
1778
+ .ft-prop-select:focus,
1779
+ .ft-prop-textarea:focus {
1780
+ border-color: var(--nova-tone-primary-border);
1781
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--nova-color-primary) 12%, transparent);
1782
+ }
1783
+
1784
+ .ft-prop-inline-2 {
1785
+ display: grid;
1786
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
1787
+ gap: 8px;
1788
+ }
1789
+
1790
+ .ft-prop-switch {
1791
+ min-height: 30px;
1792
+ border: 0;
1793
+ padding: 2px 0;
1794
+ background: transparent;
1795
+ display: inline-flex;
1796
+ align-items: center;
1797
+ gap: 8px;
1798
+ color: var(--nova-color-text-secondary);
1799
+ font: inherit;
1800
+ font-size: 12px;
1801
+ cursor: pointer;
1802
+ text-align: left;
1803
+ }
1804
+
1805
+ .ft-prop-switch-track {
1806
+ flex: none;
1807
+ width: 30px;
1808
+ height: 17px;
1809
+ border-radius: 999px;
1810
+ background: var(--nova-color-border-strong);
1811
+ position: relative;
1812
+ transition: background-color .15s ease;
1813
+ }
1814
+
1815
+ .ft-prop-switch-track::after {
1816
+ content: '';
1817
+ position: absolute;
1818
+ top: 2px;
1819
+ left: 2px;
1820
+ width: 13px;
1821
+ height: 13px;
1822
+ border-radius: 50%;
1823
+ background: var(--nova-color-surface);
1824
+ transition: transform .15s ease;
1825
+ }
1826
+
1827
+ .ft-prop-switch.is-on .ft-prop-switch-track {
1828
+ background: var(--nova-color-primary);
1829
+ }
1830
+
1831
+ .ft-prop-switch.is-on .ft-prop-switch-track::after {
1832
+ transform: translateX(13px);
1833
+ }
1834
+
1835
+ .ft-prop-switch strong {
1836
+ font-weight: 500;
1837
+ }
1838
+
1839
+ .ft-picker {
1840
+ position: relative;
1841
+ display: grid;
1842
+ gap: 7px;
1843
+ }
1844
+
1845
+ .ft-picker-chips {
1846
+ display: flex;
1847
+ flex-wrap: wrap;
1848
+ gap: 6px;
1849
+ min-height: 28px;
1850
+ padding: 6px 8px;
1851
+ border: 1px solid var(--nova-color-border);
1852
+ border-radius: 8px;
1853
+ background: var(--nova-color-surface-subtle);
1854
+ align-items: center;
1855
+ }
1856
+
1857
+ .ft-picker-empty {
1858
+ font-size: 11px;
1859
+ color: var(--nova-color-text-muted);
1860
+ }
1861
+
1862
+ .ft-picker-chip {
1863
+ display: inline-flex;
1864
+ align-items: center;
1865
+ gap: 4px;
1866
+ max-width: 100%;
1867
+ padding: 2px 6px 2px 8px;
1868
+ border-radius: 6px;
1869
+ font-size: 11px;
1870
+ font-weight: 500;
1871
+ color: var(--nova-tone-primary-foreground);
1872
+ background: var(--nova-color-primary-soft);
1873
+ border: 1px solid var(--nova-tone-primary-border);
1874
+ }
1875
+
1876
+ .ft-picker-chip-remove {
1877
+ width: 16px;
1878
+ height: 16px;
1879
+ border: 0;
1880
+ border-radius: 4px;
1881
+ padding: 0;
1882
+ display: grid;
1883
+ place-items: center;
1884
+ color: inherit;
1885
+ background: transparent;
1886
+ cursor: pointer;
1887
+ }
1888
+
1889
+ .ft-picker-chip-remove:hover {
1890
+ background: color-mix(in srgb, var(--nova-color-primary) 16%, transparent);
1891
+ }
1892
+
1893
+ .ft-picker-controls {
1894
+ display: grid;
1895
+ grid-template-columns: minmax(0, 1fr) auto;
1896
+ gap: 6px;
1897
+ }
1898
+
1899
+ .ft-prop-mini-btn {
1900
+ height: 34px;
1901
+ border: 1px solid var(--nova-color-border);
1902
+ border-radius: 7px;
1903
+ padding: 0 10px;
1904
+ color: var(--nova-color-text-secondary);
1905
+ background: var(--nova-color-surface-subtle);
1906
+ font: inherit;
1907
+ font-size: 12px;
1908
+ font-weight: 500;
1909
+ white-space: nowrap;
1910
+ cursor: pointer;
1911
+ }
1912
+
1913
+ .ft-prop-mini-btn:hover {
1914
+ border-color: var(--nova-tone-primary-border);
1915
+ color: var(--nova-tone-primary-foreground);
1916
+ background: var(--nova-color-primary-soft);
1917
+ }
1918
+
1919
+ .ft-picker-dropdown {
1920
+ position: absolute;
1921
+ top: 100%;
1922
+ left: 0;
1923
+ right: 0;
1924
+ z-index: 20;
1925
+ margin-top: 4px;
1926
+ max-height: 200px;
1927
+ overflow-y: auto;
1928
+ padding: 4px;
1929
+ border: 1px solid var(--nova-color-border);
1930
+ border-radius: 9px;
1931
+ background: var(--nova-color-surface-raised);
1932
+ box-shadow: var(--nova-shadow-md);
1933
+ display: grid;
1934
+ gap: 2px;
1935
+ animation: ft-prop-pop .14s cubic-bezier(0.22, 1, 0.36, 1);
1936
+ }
1937
+
1938
+ @keyframes ft-prop-pop {
1939
+ 0% { opacity: 0; transform: translateY(-3px); }
1940
+ 100% { opacity: 1; transform: translateY(0); }
1941
+ }
1942
+
1943
+ .ft-picker-dropdown[hidden] {
1944
+ display: none;
1945
+ }
1946
+
1947
+ .ft-picker-status {
1948
+ padding: 8px;
1949
+ font-size: 11px;
1950
+ color: var(--nova-color-text-muted);
1951
+ text-align: center;
1952
+ }
1953
+
1954
+ .ft-picker-option {
1955
+ border: 0;
1956
+ border-radius: 6px;
1957
+ padding: 6px 8px;
1958
+ display: flex;
1959
+ align-items: center;
1960
+ justify-content: space-between;
1961
+ gap: 8px;
1962
+ color: var(--nova-color-text);
1963
+ background: transparent;
1964
+ font: inherit;
1965
+ font-size: 12px;
1966
+ text-align: left;
1967
+ cursor: pointer;
1968
+ }
1969
+
1970
+ .ft-picker-option:hover {
1971
+ background: var(--nova-color-primary-soft);
1972
+ color: var(--nova-tone-primary-foreground);
1973
+ }
1974
+
1975
+ .ft-picker-option small {
1976
+ font-size: 10px;
1977
+ color: var(--nova-color-text-muted);
1978
+ }
1979
+
1980
+ .ft-icon-btn {
1981
+ width: 28px;
1982
+ height: 28px;
1983
+ border: 0;
1984
+ border-radius: 6px;
1985
+ padding: 0;
1986
+ display: grid;
1987
+ place-items: center;
1988
+ color: var(--nova-color-text-muted);
1989
+ background: transparent;
1990
+ cursor: pointer;
1991
+ }
1992
+
1993
+ .ft-icon-btn:hover {
1994
+ background: var(--nova-color-surface-muted);
1995
+ color: var(--nova-color-text);
1996
+ }
1997
+
1998
+ .ft-icon-btn.is-danger:hover {
1999
+ color: var(--nova-tone-danger-foreground);
2000
+ background: var(--nova-tone-danger-background);
2001
+ }
2002
+
2003
+ .ft-prop-dashed-btn,
2004
+ .ft-prop-action-btn {
2005
+ width: 100%;
2006
+ min-height: 32px;
2007
+ border-radius: 7px;
2008
+ display: inline-flex;
2009
+ align-items: center;
2010
+ justify-content: center;
2011
+ gap: 5px;
2012
+ font: inherit;
2013
+ font-size: 12px;
2014
+ font-weight: 500;
2015
+ cursor: pointer;
2016
+ }
2017
+
2018
+ .ft-prop-dashed-btn {
2019
+ border: 1px dashed var(--nova-color-border-strong);
2020
+ color: var(--nova-color-text-secondary);
2021
+ background: transparent;
2022
+ }
2023
+
2024
+ .ft-prop-dashed-btn:hover {
2025
+ border-color: var(--nova-tone-primary-border);
2026
+ color: var(--nova-tone-primary-foreground);
2027
+ background: var(--nova-color-primary-soft);
2028
+ }
2029
+
2030
+ .ft-prop-action-btn {
2031
+ border: 1px solid var(--nova-tone-primary-border);
2032
+ color: var(--nova-tone-primary-foreground);
2033
+ background: var(--nova-color-primary-soft);
2034
+ }
2035
+
2036
+ .ft-prop-action-btn:hover {
2037
+ border-color: var(--nova-color-primary);
2038
+ }
2039
+
2040
+ .ft-cond-builder {
2041
+ display: grid;
2042
+ gap: 10px;
2043
+ }
2044
+
2045
+ .ft-cond-hint {
2046
+ font-size: 11px;
2047
+ line-height: 15px;
2048
+ color: var(--nova-color-text-muted);
2049
+ }
2050
+
2051
+ .ft-cond-or-divider {
2052
+ display: flex;
2053
+ align-items: center;
2054
+ gap: 8px;
2055
+ font-size: 10px;
2056
+ font-weight: 700;
2057
+ color: var(--nova-tone-warning-foreground);
2058
+ }
2059
+
2060
+ .ft-cond-or-divider::before,
2061
+ .ft-cond-or-divider::after {
2062
+ content: '';
2063
+ flex: 1;
2064
+ height: 1px;
2065
+ background: var(--nova-color-divider);
2066
+ }
2067
+
2068
+ .ft-cond-group {
2069
+ border: 1px solid var(--nova-color-border);
2070
+ border-radius: 9px;
2071
+ padding: 10px;
2072
+ background: var(--nova-color-surface-subtle);
2073
+ display: grid;
2074
+ gap: 8px;
2075
+ }
2076
+
2077
+ .ft-cond-group-head {
2078
+ display: grid;
2079
+ grid-template-columns: minmax(0, 1fr) auto;
2080
+ gap: 6px;
2081
+ align-items: center;
2082
+ }
2083
+
2084
+ .ft-cond-rules {
2085
+ display: grid;
2086
+ gap: 8px;
2087
+ }
2088
+
2089
+ .ft-cond-rule {
2090
+ padding: 8px;
2091
+ border: 1px solid var(--nova-color-divider);
2092
+ border-radius: 7px;
2093
+ background: var(--nova-color-surface);
2094
+ display: grid;
2095
+ gap: 6px;
2096
+ }
2097
+
2098
+ .ft-cond-rule-top {
2099
+ display: grid;
2100
+ grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) auto;
2101
+ gap: 5px;
2102
+ align-items: center;
2103
+ }
2104
+
2105
+ .ft-cond-rule-value.is-range {
2106
+ display: grid;
2107
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
2108
+ gap: 6px;
2109
+ align-items: center;
2110
+ }
2111
+
2112
+ .ft-cond-range-sep {
2113
+ font-size: 12px;
2114
+ color: var(--nova-color-text-muted);
2115
+ }
2116
+
2117
+ .ft-cond-preview {
2118
+ border: 1px solid var(--nova-color-divider);
2119
+ border-radius: 8px;
2120
+ padding: 8px 10px;
2121
+ background: var(--nova-color-surface-subtle);
2122
+ display: grid;
2123
+ gap: 4px;
2124
+ }
2125
+
2126
+ .ft-cond-preview small {
2127
+ font-size: 10px;
2128
+ color: var(--nova-color-text-muted);
2129
+ }
2130
+
2131
+ .ft-cond-preview code {
2132
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
2133
+ font-size: 11px;
2134
+ line-height: 16px;
2135
+ color: var(--nova-tone-primary-foreground);
2136
+ word-break: break-all;
2137
+ }
2138
+
2139
+ .ft-perm-matrix {
2140
+ display: grid;
2141
+ gap: 10px;
2142
+ }
2143
+
2144
+ .ft-perm-table {
2145
+ border: 1px solid var(--nova-color-border);
2146
+ border-radius: 9px;
2147
+ overflow: hidden;
2148
+ background: var(--nova-color-surface);
2149
+ }
2150
+
2151
+ .ft-perm-head,
2152
+ .ft-perm-row {
2153
+ display: grid;
2154
+ align-items: center;
2155
+ padding: 7px 10px;
2156
+ gap: 6px;
2157
+ }
2158
+
2159
+ .ft-perm-table.cols-3 .ft-perm-head,
2160
+ .ft-perm-table.cols-3 .ft-perm-row {
2161
+ grid-template-columns: minmax(0, 1.4fr) repeat(3, 52px);
2162
+ }
2163
+
2164
+ .ft-perm-table.cols-2 .ft-perm-head,
2165
+ .ft-perm-table.cols-2 .ft-perm-row {
2166
+ grid-template-columns: minmax(0, 1.5fr) repeat(2, 60px);
2167
+ }
2168
+
2169
+ .ft-perm-head {
2170
+ background: var(--nova-color-surface-subtle);
2171
+ border-bottom: 1px solid var(--nova-color-divider);
2172
+ font-size: 11px;
2173
+ font-weight: 600;
2174
+ color: var(--nova-color-text-muted);
2175
+ }
2176
+
2177
+ .ft-perm-col-btn {
2178
+ border: 0;
2179
+ border-radius: 5px;
2180
+ padding: 3px 2px;
2181
+ background: transparent;
2182
+ color: inherit;
2183
+ font: inherit;
2184
+ font-size: 11px;
2185
+ font-weight: 600;
2186
+ cursor: pointer;
2187
+ }
2188
+
2189
+ .ft-perm-col-btn:hover {
2190
+ color: var(--nova-tone-primary-foreground);
2191
+ background: var(--nova-color-primary-soft);
2192
+ }
2193
+
2194
+ .ft-perm-row {
2195
+ border-bottom: 1px solid var(--nova-color-divider);
2196
+ }
2197
+
2198
+ .ft-perm-row:last-child {
2199
+ border-bottom: 0;
2200
+ }
2201
+
2202
+ .ft-perm-field-name {
2203
+ min-width: 0;
2204
+ display: grid;
2205
+ gap: 1px;
2206
+ }
2207
+
2208
+ .ft-perm-field-name strong {
2209
+ overflow: hidden;
2210
+ text-overflow: ellipsis;
2211
+ white-space: nowrap;
2212
+ font-size: 12px;
2213
+ font-weight: 500;
2214
+ }
2215
+
2216
+ .ft-perm-field-name small {
2217
+ overflow: hidden;
2218
+ text-overflow: ellipsis;
2219
+ white-space: nowrap;
2220
+ font-size: 10px;
2221
+ color: var(--nova-color-text-muted);
2222
+ }
2223
+
2224
+ .ft-perm-cell {
2225
+ display: grid;
2226
+ place-items: center;
2227
+ cursor: pointer;
2228
+ }
2229
+
2230
+ .ft-prop-empty-box {
2231
+ padding: 12px 10px;
2232
+ border: 1px dashed var(--nova-color-border);
2233
+ border-radius: 8px;
2234
+ font-size: 11px;
2235
+ line-height: 16px;
2236
+ color: var(--nova-color-text-muted);
2237
+ text-align: center;
2238
+ }
2239
+
2240
+ .ft-kv-table {
2241
+ display: grid;
2242
+ gap: 6px;
2243
+ }
2244
+
2245
+ .ft-kv-head,
2246
+ .ft-kv-row {
2247
+ display: grid;
2248
+ grid-template-columns: repeat(var(--ft-kv-cols, 2), minmax(0, 1fr)) 28px;
2249
+ gap: 5px;
2250
+ align-items: center;
2251
+ }
2252
+
2253
+ .ft-kv-head {
2254
+ font-size: 10px;
2255
+ color: var(--nova-color-text-muted);
2256
+ }
2257
+
2258
+ .ft-embedded-editor {
2259
+ display: grid;
2260
+ gap: 8px;
2261
+ }
2262
+
2263
+ .ft-embedded-list {
2264
+ display: grid;
2265
+ gap: 6px;
2266
+ }
2267
+
2268
+ .ft-embedded-row {
2269
+ display: grid;
2270
+ grid-template-columns: minmax(0, 1fr) auto;
2271
+ gap: 6px;
2272
+ align-items: center;
2273
+ }
2274
+
2275
+ .ft-embedded-select {
2276
+ border: 1px solid var(--nova-color-border);
2277
+ border-radius: 8px;
2278
+ padding: 7px 9px;
2279
+ display: grid;
2280
+ grid-template-columns: 20px minmax(0, 1fr) auto;
2281
+ gap: 8px;
2282
+ align-items: center;
2283
+ background: var(--nova-color-surface-subtle);
2284
+ color: var(--nova-color-text);
2285
+ font: inherit;
2286
+ font-size: 12px;
2287
+ text-align: left;
2288
+ cursor: pointer;
2289
+ }
2290
+
2291
+ .ft-embedded-select:hover {
2292
+ border-color: var(--nova-tone-primary-border);
2293
+ background: var(--nova-color-primary-soft);
2294
+ }
2295
+
2296
+ .ft-embedded-idx {
2297
+ width: 20px;
2298
+ height: 20px;
2299
+ border-radius: 6px;
2300
+ display: grid;
2301
+ place-items: center;
2302
+ font-size: 10px;
2303
+ font-weight: 700;
2304
+ color: var(--nova-tone-primary-foreground);
2305
+ background: var(--nova-color-primary-soft);
2306
+ }
2307
+
2308
+ .ft-embedded-select small {
2309
+ font-size: 10px;
2310
+ color: var(--nova-color-text-muted);
2311
+ }
2312
+
2313
+ .ft-embedded-actions {
2314
+ display: flex;
2315
+ flex-wrap: wrap;
2316
+ gap: 6px;
2317
+ }
2318
+
2319
+ @media (prefers-reduced-motion: reduce) {
2320
+ .ft-prop-switch-track,
2321
+ .ft-prop-switch-track::after,
2322
+ .ft-prop-tab,
2323
+ .ft-prop-breadcrumb {
2324
+ transition: none !important;
2325
+ }
2326
+
2327
+ .ft-picker-dropdown {
2328
+ animation: none !important;
2329
+ }
2330
+ }
2331
+
2332
+ /* @bpmn-nova/internal/flow-tree-renderer */
2333
+ .nova-ft-shell {
2334
+ --ft-right-width: 380px;
2335
+ --ft-header-height: 54px;
2336
+ --ft-line-color: #c2cad6;
2337
+ --ft-arrow-color: #aeb8c7;
2338
+ --ft-card-width: 224px;
2339
+ --ft-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
2340
+ position: relative;
2341
+ isolation: isolate;
2342
+ container-type: inline-size;
2343
+ width: 100%;
2344
+ height: 100%;
2345
+ min-height: 540px;
2346
+ overflow: hidden;
2347
+ display: grid;
2348
+ grid-template-rows: auto minmax(0, 1fr);
2349
+ color: var(--nova-color-text, #1f2430);
2350
+ background: var(--nova-color-canvas, #f5f6f9);
2351
+ font-family: var(--ft-font-family);
2352
+ }
2353
+
2354
+ [data-nova-theme="dark"] .nova-ft-shell,
2355
+ .nova-ft-shell[data-nova-theme="dark"],
2356
+ [data-nova-theme="dark"] .nova-ft-canvas,
2357
+ .nova-ft-canvas[data-nova-theme="dark"] {
2358
+ --ft-line-color: #3f4a5e;
2359
+ --ft-arrow-color: #55627a;
2360
+ }
2361
+
2362
+ .nova-ft-shell.is-header-hidden {
2363
+ grid-template-rows: minmax(0, 1fr);
2364
+ }
2365
+
2366
+ .ft-shell-header {
2367
+ min-width: 0;
2368
+ min-height: var(--ft-header-height);
2369
+ border-bottom: 1px solid var(--nova-color-divider, #e9ecf2);
2370
+ background: var(--nova-color-surface, #ffffff);
2371
+ display: flex;
2372
+ flex-wrap: wrap;
2373
+ align-items: center;
2374
+ justify-content: space-between;
2375
+ gap: 8px 12px;
2376
+ padding: 8px 14px;
2377
+ }
2378
+
2379
+ .ft-shell-header[hidden],
2380
+ .ft-shell-right[hidden],
2381
+ .ft-shell-footer[hidden],
2382
+ .ft-zoom-pill[hidden],
2383
+ .ft-segmented[hidden] {
2384
+ display: none !important;
2385
+ }
2386
+
2387
+ .ft-shell-header-start {
2388
+ min-width: 0;
2389
+ display: flex;
2390
+ align-items: center;
2391
+ gap: 10px;
2392
+ }
2393
+
2394
+ .ft-brand-mark {
2395
+ flex: none;
2396
+ width: 30px;
2397
+ height: 30px;
2398
+ border-radius: 9px;
2399
+ display: grid;
2400
+ place-items: center;
2401
+ color: var(--nova-color-text-inverse, #ffffff);
2402
+ background: var(--nova-color-primary, #635bff);
2403
+ }
2404
+
2405
+ .ft-brand-copy {
2406
+ min-width: 0;
2407
+ display: grid;
2408
+ gap: 1px;
2409
+ }
2410
+
2411
+ .ft-brand-copy strong {
2412
+ font-size: 13px;
2413
+ font-weight: 700;
2414
+ line-height: 18px;
2415
+ color: var(--nova-color-text);
2416
+ white-space: nowrap;
2417
+ }
2418
+
2419
+ .ft-brand-copy span {
2420
+ max-width: 168px;
2421
+ overflow: hidden;
2422
+ text-overflow: ellipsis;
2423
+ white-space: nowrap;
2424
+ font-size: 11px;
2425
+ line-height: 14px;
2426
+ color: var(--nova-color-text-muted);
2427
+ }
2428
+
2429
+ .ft-engine-select {
2430
+ height: 28px;
2431
+ border: 1px solid var(--nova-color-border);
2432
+ border-radius: 7px;
2433
+ padding: 0 8px;
2434
+ color: var(--nova-color-text-secondary);
2435
+ background: var(--nova-color-surface-subtle);
2436
+ font: inherit;
2437
+ font-size: 11px;
2438
+ font-weight: 600;
2439
+ cursor: pointer;
2440
+ }
2441
+
2442
+ .ft-shell-center {
2443
+ display: flex;
2444
+ flex-wrap: wrap;
2445
+ align-items: center;
2446
+ gap: 6px;
2447
+ }
2448
+
2449
+ .ft-segmented {
2450
+ height: 34px;
2451
+ padding: 3px;
2452
+ border: 1px solid var(--nova-color-divider);
2453
+ border-radius: 9px;
2454
+ background: var(--nova-color-surface-muted);
2455
+ display: flex;
2456
+ align-items: center;
2457
+ gap: 2px;
2458
+ }
2459
+
2460
+ .ft-segmented.is-sub {
2461
+ height: 30px;
2462
+ background: var(--nova-color-surface);
2463
+ }
2464
+
2465
+ .ft-seg-btn {
2466
+ height: 26px;
2467
+ border: 0;
2468
+ border-radius: 6px;
2469
+ padding: 0 10px;
2470
+ display: inline-flex;
2471
+ align-items: center;
2472
+ gap: 5px;
2473
+ color: var(--nova-color-text-muted);
2474
+ background: transparent;
2475
+ font: inherit;
2476
+ font-size: 12px;
2477
+ font-weight: 500;
2478
+ white-space: nowrap;
2479
+ cursor: pointer;
2480
+ transition: color .14s ease, background-color .14s ease, box-shadow .14s ease;
2481
+ }
2482
+
2483
+ .ft-segmented.is-sub .ft-seg-btn {
2484
+ height: 22px;
2485
+ padding: 0 8px;
2486
+ font-size: 11px;
2487
+ }
2488
+
2489
+ .ft-seg-btn.is-active {
2490
+ color: var(--nova-tone-primary-foreground);
2491
+ background: var(--nova-color-surface);
2492
+ font-weight: 600;
2493
+ box-shadow: var(--nova-shadow-sm);
2494
+ }
2495
+
2496
+ .ft-segmented.is-sub .ft-seg-btn.is-active {
2497
+ background: var(--nova-color-primary-soft);
2498
+ box-shadow: none;
2499
+ }
2500
+
2501
+ .ft-shell-tools,
2502
+ .ft-shell-header-actions {
2503
+ display: flex;
2504
+ flex-wrap: wrap;
2505
+ align-items: center;
2506
+ justify-content: flex-end;
2507
+ gap: 6px;
2508
+ }
2509
+
2510
+ @container (max-width: 960px) {
2511
+ .ft-brand-copy span {
2512
+ display: none;
2513
+ }
2514
+ .ft-shell-header {
2515
+ padding: 7px 10px;
2516
+ gap: 6px 8px;
2517
+ }
2518
+ .ft-tool-btn {
2519
+ height: 30px;
2520
+ padding: 0 8px;
2521
+ font-size: 11.5px;
2522
+ }
2523
+ .ft-tool-btn.is-icon {
2524
+ width: 30px;
2525
+ }
2526
+ .ft-seg-btn {
2527
+ padding: 0 8px;
2528
+ font-size: 11.5px;
2529
+ }
2530
+ }
2531
+
2532
+ @container (max-width: 760px) {
2533
+ .nova-ft-shell {
2534
+ --ft-right-width: 300px;
2535
+ }
2536
+ }
2537
+
2538
+ .ft-tool-btn {
2539
+ flex: none;
2540
+ height: 32px;
2541
+ border: 1px solid var(--nova-color-border);
2542
+ border-radius: 7px;
2543
+ padding: 0 10px;
2544
+ display: inline-flex;
2545
+ align-items: center;
2546
+ justify-content: center;
2547
+ gap: 5px;
2548
+ color: var(--nova-color-text-secondary);
2549
+ background: var(--nova-color-surface);
2550
+ font: inherit;
2551
+ font-size: 12px;
2552
+ font-weight: 500;
2553
+ white-space: nowrap;
2554
+ cursor: pointer;
2555
+ transition: border-color .14s ease, color .14s ease, background-color .14s ease, transform .12s ease;
2556
+ }
2557
+
2558
+ .ft-tool-btn.is-icon {
2559
+ width: 32px;
2560
+ padding: 0;
2561
+ }
2562
+
2563
+ .ft-tool-btn:hover:not(:disabled) {
2564
+ border-color: var(--nova-tone-primary-border);
2565
+ color: var(--nova-tone-primary-foreground);
2566
+ background: var(--nova-color-primary-soft);
2567
+ }
2568
+
2569
+ .ft-tool-btn.is-primary {
2570
+ border-color: var(--nova-color-primary);
2571
+ color: var(--nova-color-text-inverse);
2572
+ background: var(--nova-color-primary);
2573
+ }
2574
+
2575
+ .ft-tool-btn.is-primary:hover:not(:disabled) {
2576
+ border-color: var(--nova-color-primary-hover);
2577
+ color: var(--nova-color-text-inverse);
2578
+ background: var(--nova-color-primary-hover);
2579
+ }
2580
+
2581
+ .ft-tool-btn:disabled {
2582
+ opacity: 0.4;
2583
+ cursor: default;
2584
+ }
2585
+
2586
+ .ft-tool-badge[hidden] {
2587
+ display: none !important;
2588
+ }
2589
+
2590
+ .ft-tool-badge {
2591
+ min-width: 17px;
2592
+ height: 17px;
2593
+ border-radius: 999px;
2594
+ padding: 0 5px;
2595
+ font-style: normal;
2596
+ font-size: 10px;
2597
+ font-weight: 700;
2598
+ display: inline-grid;
2599
+ place-items: center;
2600
+ color: var(--nova-tone-warning-foreground);
2601
+ background: var(--nova-tone-warning-background);
2602
+ }
2603
+
2604
+ .ft-tool-badge.is-error {
2605
+ color: var(--nova-tone-danger-foreground);
2606
+ background: var(--nova-tone-danger-background);
2607
+ }
2608
+
2609
+ .ft-menu-wrap {
2610
+ position: relative;
2611
+ }
2612
+
2613
+ .ft-dropdown-menu {
2614
+ position: absolute;
2615
+ top: calc(100% + 6px);
2616
+ right: 0;
2617
+ z-index: 60;
2618
+ width: 236px;
2619
+ padding: 5px;
2620
+ border: 1px solid var(--nova-color-border);
2621
+ border-radius: 10px;
2622
+ background: var(--nova-color-surface-raised);
2623
+ box-shadow: var(--nova-shadow-md);
2624
+ display: grid;
2625
+ gap: 2px;
2626
+ transform-origin: top right;
2627
+ animation: ft-pop-in .15s cubic-bezier(0.22, 1, 0.36, 1);
2628
+ }
2629
+
2630
+ .ft-dropdown-menu[hidden] {
2631
+ display: none;
2632
+ }
2633
+
2634
+ .ft-dropdown-option {
2635
+ border: 0;
2636
+ border-radius: 7px;
2637
+ padding: 8px 10px;
2638
+ display: grid;
2639
+ gap: 2px;
2640
+ text-align: left;
2641
+ background: transparent;
2642
+ color: var(--nova-color-text);
2643
+ font: inherit;
2644
+ cursor: pointer;
2645
+ }
2646
+
2647
+ .ft-dropdown-option:hover {
2648
+ background: var(--nova-color-surface-muted);
2649
+ }
2650
+
2651
+ .ft-dropdown-option strong {
2652
+ font-size: 12px;
2653
+ font-weight: 600;
2654
+ }
2655
+
2656
+ .ft-dropdown-option small {
2657
+ font-size: 10px;
2658
+ color: var(--nova-color-text-muted);
2659
+ }
2660
+
2661
+ .ft-validation-popover {
2662
+ position: absolute;
2663
+ top: calc(100% + 6px);
2664
+ right: 0;
2665
+ z-index: 70;
2666
+ width: 320px;
2667
+ max-height: 360px;
2668
+ border: 1px solid var(--nova-color-border);
2669
+ border-radius: 11px;
2670
+ background: var(--nova-color-surface-raised);
2671
+ box-shadow: var(--nova-shadow-lg);
2672
+ overflow: hidden;
2673
+ display: grid;
2674
+ grid-template-rows: auto minmax(0, 1fr);
2675
+ transform-origin: top right;
2676
+ animation: ft-pop-in .16s cubic-bezier(0.22, 1, 0.36, 1);
2677
+ }
2678
+
2679
+ .ft-validation-head {
2680
+ padding: 10px 12px;
2681
+ border-bottom: 1px solid var(--nova-color-divider);
2682
+ font-size: 12px;
2683
+ font-weight: 700;
2684
+ }
2685
+
2686
+ .ft-validation-list {
2687
+ overflow-y: auto;
2688
+ padding: 6px;
2689
+ display: grid;
2690
+ gap: 4px;
2691
+ }
2692
+
2693
+ .ft-validation-empty {
2694
+ padding: 18px 12px;
2695
+ font-size: 12px;
2696
+ color: var(--nova-tone-success-foreground);
2697
+ text-align: center;
2698
+ }
2699
+
2700
+ .ft-validation-row {
2701
+ border: 0;
2702
+ border-radius: 8px;
2703
+ padding: 8px 10px;
2704
+ display: grid;
2705
+ grid-template-columns: auto minmax(0, 1fr) auto;
2706
+ align-items: start;
2707
+ gap: 8px;
2708
+ text-align: left;
2709
+ font: inherit;
2710
+ font-size: 12px;
2711
+ line-height: 17px;
2712
+ cursor: pointer;
2713
+ }
2714
+
2715
+ .ft-validation-row.is-error {
2716
+ color: var(--nova-tone-danger-foreground);
2717
+ background: var(--nova-tone-danger-background);
2718
+ }
2719
+
2720
+ .ft-validation-row.is-warning {
2721
+ color: var(--nova-tone-warning-foreground);
2722
+ background: var(--nova-tone-warning-background);
2723
+ }
2724
+
2725
+ .ft-validation-row em {
2726
+ font-style: normal;
2727
+ font-size: 11px;
2728
+ font-weight: 600;
2729
+ text-decoration: underline;
2730
+ }
2731
+
2732
+ /* Body & Right Sidebar */
2733
+ .ft-shell-body {
2734
+ min-width: 0;
2735
+ min-height: 0;
2736
+ display: grid;
2737
+ grid-template-columns: minmax(0, 1fr) var(--ft-right-width);
2738
+ transition: grid-template-columns .2s ease;
2739
+ }
2740
+
2741
+ .ft-shell-body.is-right-hidden,
2742
+ .ft-shell-body.is-right-collapsed {
2743
+ grid-template-columns: minmax(0, 1fr) 0px;
2744
+ }
2745
+
2746
+ .ft-shell-stage-col {
2747
+ min-width: 0;
2748
+ min-height: 0;
2749
+ display: grid;
2750
+ grid-template-rows: minmax(0, 1fr) 34px;
2751
+ }
2752
+
2753
+ .ft-shell-stage-col.is-footer-hidden {
2754
+ grid-template-rows: minmax(0, 1fr);
2755
+ }
2756
+
2757
+ .ft-shell-stage {
2758
+ position: relative;
2759
+ min-width: 0;
2760
+ min-height: 0;
2761
+ overflow: hidden;
2762
+ }
2763
+
2764
+ .ft-stage-fill {
2765
+ width: 100%;
2766
+ height: 100%;
2767
+ }
2768
+
2769
+ .ft-shell-footer {
2770
+ border-top: 1px solid var(--nova-color-divider);
2771
+ background: var(--nova-color-surface);
2772
+ padding: 0 14px;
2773
+ display: flex;
2774
+ align-items: center;
2775
+ gap: 8px;
2776
+ font-size: 11px;
2777
+ color: var(--nova-color-text-muted);
2778
+ }
2779
+
2780
+ .ft-status-dot {
2781
+ width: 7px;
2782
+ height: 7px;
2783
+ border-radius: 50%;
2784
+ background: var(--nova-tone-success-strong);
2785
+ }
2786
+
2787
+ .ft-status-dot.is-warning { background: var(--nova-tone-warning-strong); }
2788
+ .ft-status-dot.is-error { background: var(--nova-tone-danger-strong); }
2789
+
2790
+ .ft-status-text {
2791
+ flex: 1;
2792
+ overflow: hidden;
2793
+ text-overflow: ellipsis;
2794
+ white-space: nowrap;
2795
+ }
2796
+
2797
+ .ft-status-meta {
2798
+ font-weight: 600;
2799
+ }
2800
+
2801
+ .ft-shell-right {
2802
+ position: relative;
2803
+ min-width: 0;
2804
+ min-height: 0;
2805
+ border-left: 1px solid var(--nova-color-divider);
2806
+ background: var(--nova-color-surface);
2807
+ overflow: visible;
2808
+ }
2809
+
2810
+ .ft-shell-right.is-collapsed {
2811
+ border-left: 0;
2812
+ }
2813
+
2814
+ .ft-shell-right-content {
2815
+ width: var(--ft-right-width);
2816
+ height: 100%;
2817
+ overflow-y: auto;
2818
+ overscroll-behavior: contain;
2819
+ }
2820
+
2821
+ .ft-shell-right.is-collapsed .ft-shell-right-content {
2822
+ visibility: hidden;
2823
+ pointer-events: none;
2824
+ }
2825
+
2826
+ .ft-right-toggle {
2827
+ position: absolute;
2828
+ top: 50%;
2829
+ left: -13px;
2830
+ z-index: 25;
2831
+ width: 24px;
2832
+ height: 44px;
2833
+ transform: translateY(-50%);
2834
+ border: 1px solid var(--nova-color-border);
2835
+ border-radius: 999px;
2836
+ padding: 0;
2837
+ display: grid;
2838
+ place-items: center;
2839
+ color: var(--nova-color-text-muted);
2840
+ background: var(--nova-color-surface);
2841
+ box-shadow: var(--nova-shadow-sm);
2842
+ cursor: pointer;
2843
+ transition: left .2s ease, color .14s ease, border-color .14s ease;
2844
+ }
2845
+
2846
+ .ft-right-toggle .nova-icon {
2847
+ transition: transform .2s ease;
2848
+ }
2849
+
2850
+ .ft-right-toggle:hover {
2851
+ color: var(--nova-tone-primary-foreground);
2852
+ border-color: var(--nova-tone-primary-border);
2853
+ }
2854
+
2855
+ .ft-shell-right.is-collapsed .ft-right-toggle {
2856
+ left: -26px;
2857
+ }
2858
+
2859
+ .ft-shell-right.is-collapsed .ft-right-toggle .nova-icon {
2860
+ transform: rotate(180deg);
2861
+ }
2862
+
2863
+ /* Zoom Pill */
2864
+ .ft-zoom-pill {
2865
+ position: absolute;
2866
+ left: 14px;
2867
+ bottom: 14px;
2868
+ z-index: 22;
2869
+ height: 34px;
2870
+ padding: 3px;
2871
+ border: 1px solid var(--nova-color-border);
2872
+ border-radius: 9px;
2873
+ background: color-mix(in srgb, var(--nova-color-surface) 95%, transparent);
2874
+ box-shadow: var(--nova-shadow-md);
2875
+ display: flex;
2876
+ align-items: center;
2877
+ gap: 2px;
2878
+ }
2879
+
2880
+ .ft-zoom-btn,
2881
+ .ft-zoom-readout {
2882
+ height: 26px;
2883
+ border: 0;
2884
+ border-radius: 6px;
2885
+ background: transparent;
2886
+ color: var(--nova-color-text-secondary);
2887
+ font: inherit;
2888
+ font-size: 11px;
2889
+ font-weight: 600;
2890
+ cursor: pointer;
2891
+ }
2892
+
2893
+ .ft-zoom-btn {
2894
+ width: 26px;
2895
+ padding: 0;
2896
+ display: grid;
2897
+ place-items: center;
2898
+ }
2899
+
2900
+ .ft-zoom-readout {
2901
+ min-width: 44px;
2902
+ padding: 0 6px;
2903
+ }
2904
+
2905
+ .ft-zoom-btn:hover,
2906
+ .ft-zoom-readout:hover {
2907
+ color: var(--nova-tone-primary-foreground);
2908
+ background: var(--nova-color-primary-soft);
2909
+ }
2910
+
2911
+ /* Tree Canvas */
2912
+ .nova-ft-canvas {
2913
+ position: relative;
2914
+ width: 100%;
2915
+ height: 100%;
2916
+ overflow: hidden;
2917
+ outline: none;
2918
+ background-color: var(--nova-color-canvas, #f8f9fb);
2919
+ background-image: radial-gradient(var(--nova-color-grid-dot, rgba(128, 139, 157, 0.22)) 1.15px, transparent 1.15px);
2920
+ background-size: 18px 18px;
2921
+ user-select: none;
2922
+ }
2923
+
2924
+ .ft-viewport {
2925
+ width: 100%;
2926
+ height: 100%;
2927
+ cursor: grab;
2928
+ overflow: hidden;
2929
+ }
2930
+
2931
+ .ft-viewport.is-panning {
2932
+ cursor: grabbing;
2933
+ }
2934
+
2935
+ .ft-stage {
2936
+ position: absolute;
2937
+ top: 0;
2938
+ left: 0;
2939
+ width: max-content;
2940
+ transform-origin: 0 0;
2941
+ will-change: transform;
2942
+ }
2943
+
2944
+ .ft-stage.is-animating {
2945
+ transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1);
2946
+ }
2947
+
2948
+ .ft-tree-host {
2949
+ display: inline-block;
2950
+ width: max-content;
2951
+ padding: 28px 48px 64px;
2952
+ }
2953
+
2954
+ .ft-tree {
2955
+ display: flex;
2956
+ flex-direction: column;
2957
+ align-items: center;
2958
+ }
2959
+
2960
+ .ft-step-wrap,
2961
+ .ft-card-wrap {
2962
+ position: relative;
2963
+ display: flex;
2964
+ flex-direction: column;
2965
+ align-items: center;
2966
+ }
2967
+
2968
+ /* Downward Flow Entry Arrow (DingTalk / Feishu style) */
2969
+ .ft-entry-arrow {
2970
+ width: 0;
2971
+ height: 0;
2972
+ border-left: 5px solid transparent;
2973
+ border-right: 5px solid transparent;
2974
+ border-top: 6px solid var(--ft-arrow-color, #aeb8c7);
2975
+ margin-bottom: -1px;
2976
+ flex: none;
2977
+ z-index: 2;
2978
+ }
2979
+
2980
+ /* Spine & Add Slot */
2981
+ .ft-add-slot {
2982
+ position: relative;
2983
+ display: flex;
2984
+ flex-direction: column;
2985
+ align-items: center;
2986
+ min-height: 60px;
2987
+ }
2988
+
2989
+ .ft-add-slot.is-readonly {
2990
+ min-height: 28px;
2991
+ }
2992
+
2993
+ .ft-spine-line {
2994
+ width: 2px;
2995
+ flex: 1;
2996
+ min-height: 16px;
2997
+ background: var(--ft-line-color, #c2cad6);
2998
+ pointer-events: none;
2999
+ }
3000
+
3001
+ .ft-add-btn {
3002
+ flex: none;
3003
+ width: 26px;
3004
+ height: 26px;
3005
+ border-radius: 50%;
3006
+ border: 0;
3007
+ background: var(--nova-color-primary, #3370ff);
3008
+ color: var(--nova-color-text-inverse, #ffffff);
3009
+ display: grid;
3010
+ place-items: center;
3011
+ padding: 0;
3012
+ cursor: pointer;
3013
+ box-shadow: 0 2px 6px color-mix(in srgb, var(--nova-color-primary, #3370ff) 32%, transparent);
3014
+ transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
3015
+ }
3016
+
3017
+ .ft-add-btn:hover {
3018
+ transform: scale(1.14);
3019
+ background: var(--nova-color-primary-hover, #245bdb);
3020
+ box-shadow: 0 4px 10px color-mix(in srgb, var(--nova-color-primary, #3370ff) 42%, transparent);
3021
+ }
3022
+
3023
+ .ft-drop-hint {
3024
+ display: none;
3025
+ padding: 4px 12px;
3026
+ border: 1.5px dashed var(--nova-color-primary);
3027
+ border-radius: 999px;
3028
+ background: var(--nova-color-primary-soft);
3029
+ color: var(--nova-tone-primary-foreground);
3030
+ font-size: 11px;
3031
+ font-weight: 600;
3032
+ white-space: nowrap;
3033
+ pointer-events: none;
3034
+ transition: transform .14s ease, background-color .14s ease, color .14s ease;
3035
+ }
3036
+
3037
+ .nova-ft-canvas.is-dragging-node .ft-add-slot.is-drop-eligible .ft-add-btn {
3038
+ display: none;
3039
+ }
3040
+
3041
+ .nova-ft-canvas.is-dragging-node .ft-add-slot.is-drop-eligible .ft-drop-hint {
3042
+ display: inline-block;
3043
+ }
3044
+
3045
+ .ft-add-slot.is-drop-active .ft-drop-hint {
3046
+ background: var(--nova-color-primary);
3047
+ color: var(--nova-color-text-inverse);
3048
+ border-style: solid;
3049
+ transform: scale(1.04);
3050
+ }
3051
+
3052
+ /* Node Card — Authentic DingTalk / Feishu visual hierarchy */
3053
+ .ft-card {
3054
+ position: relative;
3055
+ width: var(--ft-card-width, 224px);
3056
+ border: 1px solid var(--nova-color-border, #e2e6ef);
3057
+ border-radius: 8px;
3058
+ background: var(--nova-color-surface, #ffffff);
3059
+ box-shadow: 0 2px 8px rgba(31, 40, 65, 0.06);
3060
+ overflow: hidden;
3061
+ cursor: pointer;
3062
+ transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
3063
+ --ft-header-bg: #576a95;
3064
+ --ft-branch-accent: #12966c;
3065
+ --ft-accent-soft: var(--nova-tone-primary-background, #f0efff);
3066
+ --ft-accent-fg: var(--nova-tone-primary-foreground, #5149e8);
3067
+ }
3068
+
3069
+ /* Action card header colors (Light mode — calibrated DingTalk / Feishu semantic tones) */
3070
+ .ft-card.type-starter { --ft-header-bg: #576a95; }
3071
+ .ft-card.type-approver { --ft-header-bg: #f58220; }
3072
+ .ft-card.type-cc { --ft-header-bg: #3370ff; }
3073
+ .ft-card.type-handler { --ft-header-bg: #0ea687; }
3074
+ .ft-card.type-delay { --ft-header-bg: #d98a16; }
3075
+ .ft-card.type-trigger { --ft-header-bg: #5b5ce6; }
3076
+ .ft-card.type-subFlow { --ft-header-bg: #7a5af8; }
3077
+
3078
+ /* Dark mode refined header colors (no harsh glare) */
3079
+ [data-nova-theme="dark"] .ft-card.type-starter { --ft-header-bg: #3f527d; }
3080
+ [data-nova-theme="dark"] .ft-card.type-approver { --ft-header-bg: #c96a1b; }
3081
+ [data-nova-theme="dark"] .ft-card.type-cc { --ft-header-bg: #295cc7; }
3082
+ [data-nova-theme="dark"] .ft-card.type-handler { --ft-header-bg: #0e826a; }
3083
+ [data-nova-theme="dark"] .ft-card.type-delay { --ft-header-bg: #b07012; }
3084
+ [data-nova-theme="dark"] .ft-card.type-trigger { --ft-header-bg: #4d4ec4; }
3085
+ [data-nova-theme="dark"] .ft-card.type-subFlow { --ft-header-bg: #6548cc; }
3086
+
3087
+ /* Branch card semantic title accents */
3088
+ .ft-card.type-conditionBranch { --ft-branch-accent: #12966c; }
3089
+ .ft-card.type-parallelBranch { --ft-branch-accent: #6652d6; }
3090
+ .ft-card.type-inclusiveBranch { --ft-branch-accent: #8a4fd6; }
3091
+ .ft-card.is-default-branch { --ft-branch-accent: var(--nova-color-text-secondary, #596477); }
3092
+
3093
+ [data-nova-theme="dark"] .ft-card.type-conditionBranch { --ft-branch-accent: #52c99c; }
3094
+ [data-nova-theme="dark"] .ft-card.type-parallelBranch { --ft-branch-accent: #a899ff; }
3095
+ [data-nova-theme="dark"] .ft-card.type-inclusiveBranch { --ft-branch-accent: #c39bff; }
3096
+
3097
+ .ft-card:hover {
3098
+ border-color: color-mix(in srgb, var(--nova-color-primary) 55%, var(--nova-color-border));
3099
+ box-shadow: 0 4px 14px rgba(31, 40, 65, 0.11);
3100
+ }
3101
+
3102
+ .ft-card.is-selected {
3103
+ border-color: var(--nova-color-primary);
3104
+ box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--nova-color-primary) 22%, transparent), 0 4px 14px rgba(31, 40, 65, 0.10);
3105
+ }
3106
+
3107
+ .ft-card.has-error {
3108
+ border-color: var(--nova-tone-danger-strong);
3109
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--nova-tone-danger-strong) 18%, transparent);
3110
+ }
3111
+
3112
+ .ft-card.has-warning {
3113
+ border-color: var(--nova-tone-warning-strong);
3114
+ }
3115
+
3116
+ .ft-card.is-dragging {
3117
+ opacity: 0.42;
3118
+ }
3119
+
3120
+ .ft-card.is-pulsed {
3121
+ animation: ft-card-pulse .65s ease;
3122
+ }
3123
+
3124
+ .ft-card.is-entering {
3125
+ animation: ft-node-enter .22s cubic-bezier(0.22, 1, 0.36, 1);
3126
+ }
3127
+
3128
+ @keyframes ft-card-pulse {
3129
+ 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--nova-color-primary) 45%, transparent); }
3130
+ 100% { box-shadow: 0 0 0 12px transparent; }
3131
+ }
3132
+
3133
+ @keyframes ft-node-enter {
3134
+ 0% { opacity: 0; transform: translateY(-6px) scale(0.96); }
3135
+ 100% { opacity: 1; transform: translateY(0) scale(1); }
3136
+ }
3137
+
3138
+ @keyframes ft-pop-in {
3139
+ 0% { opacity: 0; transform: translateY(-4px) scale(0.98); }
3140
+ 100% { opacity: 1; transform: translateY(0) scale(1); }
3141
+ }
3142
+
3143
+ @keyframes ft-modal-fade {
3144
+ 0% { opacity: 0; }
3145
+ 100% { opacity: 1; }
3146
+ }
3147
+
3148
+ @keyframes ft-modal-pop {
3149
+ 0% { opacity: 0; transform: translateY(8px) scale(0.975); }
3150
+ 100% { opacity: 1; transform: translateY(0) scale(1); }
3151
+ }
3152
+
3153
+ /* Runtime Card Overrides */
3154
+ .ft-card.runtime-completed {
3155
+ border-color: var(--nova-tone-success-strong);
3156
+ }
3157
+ .ft-card.runtime-completed.is-action-card { --ft-header-bg: var(--nova-tone-success-strong, #22a06b); }
3158
+
3159
+ .ft-card.runtime-active {
3160
+ border-color: var(--nova-color-primary);
3161
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--nova-color-primary) 22%, transparent);
3162
+ }
3163
+
3164
+ .ft-card.runtime-rejected,
3165
+ .ft-card.runtime-failed {
3166
+ border-color: var(--nova-tone-danger-strong);
3167
+ }
3168
+ .ft-card.runtime-rejected.is-action-card,
3169
+ .ft-card.runtime-failed.is-action-card { --ft-header-bg: var(--nova-tone-danger-strong, #df4b55); }
3170
+
3171
+ .ft-card.runtime-skipped {
3172
+ opacity: 0.54;
3173
+ }
3174
+
3175
+ /* Action Card Solid Colored Header */
3176
+ .ft-card.is-action-card .ft-card-head {
3177
+ height: 30px;
3178
+ padding: 0 10px;
3179
+ background: var(--ft-header-bg);
3180
+ color: #ffffff;
3181
+ display: flex;
3182
+ align-items: center;
3183
+ justify-content: space-between;
3184
+ gap: 6px;
3185
+ }
3186
+
3187
+ .ft-card.is-action-card .ft-card-icon {
3188
+ flex: none;
3189
+ width: 16px;
3190
+ height: 16px;
3191
+ display: grid;
3192
+ place-items: center;
3193
+ color: rgba(255, 255, 255, 0.94);
3194
+ background: transparent;
3195
+ }
3196
+
3197
+ .ft-card.is-action-card .ft-card-title {
3198
+ color: #ffffff;
3199
+ font-size: 12.5px;
3200
+ font-weight: 600;
3201
+ }
3202
+
3203
+ .ft-card.is-action-card .ft-card-action {
3204
+ color: rgba(255, 255, 255, 0.88);
3205
+ }
3206
+
3207
+ .ft-card.is-action-card .ft-card-action:hover {
3208
+ color: #ffffff;
3209
+ background: rgba(255, 255, 255, 0.18);
3210
+ }
3211
+
3212
+ .ft-card.is-action-card .ft-card-action.is-danger:hover {
3213
+ color: #ffffff;
3214
+ background: rgba(0, 0, 0, 0.22);
3215
+ }
3216
+
3217
+ /* Branch Card Lightweight Header */
3218
+ .ft-card.is-branch-card {
3219
+ border-style: solid;
3220
+ }
3221
+
3222
+ .ft-card.is-branch-card .ft-card-head {
3223
+ height: 34px;
3224
+ box-sizing: border-box;
3225
+ padding: 6px 18px 2px;
3226
+ background: transparent;
3227
+ display: flex;
3228
+ align-items: center;
3229
+ justify-content: space-between;
3230
+ gap: 6px;
3231
+ }
3232
+
3233
+ .ft-card.is-branch-card .ft-card-icon {
3234
+ flex: none;
3235
+ width: 16px;
3236
+ height: 16px;
3237
+ display: grid;
3238
+ place-items: center;
3239
+ color: var(--ft-branch-accent);
3240
+ background: transparent;
3241
+ }
3242
+
3243
+ .ft-card.is-branch-card .ft-card-title {
3244
+ color: var(--ft-branch-accent);
3245
+ font-size: 12.5px;
3246
+ font-weight: 600;
3247
+ }
3248
+
3249
+ .ft-card-title-group {
3250
+ min-width: 0;
3251
+ flex: 1;
3252
+ display: flex;
3253
+ align-items: center;
3254
+ gap: 6px;
3255
+ }
3256
+
3257
+ .ft-card-title {
3258
+ min-width: 0;
3259
+ overflow: hidden;
3260
+ text-overflow: ellipsis;
3261
+ white-space: nowrap;
3262
+ line-height: 18px;
3263
+ }
3264
+
3265
+ .ft-card-head-right {
3266
+ position: relative;
3267
+ flex: none;
3268
+ height: 20px;
3269
+ display: flex;
3270
+ align-items: center;
3271
+ gap: 4px;
3272
+ }
3273
+
3274
+ .ft-card-priority {
3275
+ font-size: 11px;
3276
+ font-weight: 500;
3277
+ color: var(--nova-color-text-muted);
3278
+ white-space: nowrap;
3279
+ }
3280
+
3281
+ .ft-card-pill.is-runtime {
3282
+ padding: 1px 6px;
3283
+ border-radius: 999px;
3284
+ font-size: 10px;
3285
+ font-weight: 600;
3286
+ line-height: 16px;
3287
+ color: #ffffff;
3288
+ background: rgba(255, 255, 255, 0.22);
3289
+ white-space: nowrap;
3290
+ }
3291
+
3292
+ .ft-card.is-branch-card .ft-card-pill.is-runtime {
3293
+ color: var(--nova-runtime-fg, var(--ft-branch-accent));
3294
+ background: var(--nova-runtime-bg, var(--nova-color-surface-muted));
3295
+ }
3296
+
3297
+ .ft-card-actions {
3298
+ display: none;
3299
+ align-items: center;
3300
+ gap: 2px;
3301
+ }
3302
+
3303
+ .ft-card:hover .ft-card-actions,
3304
+ .ft-card.is-selected .ft-card-actions {
3305
+ display: inline-flex;
3306
+ }
3307
+
3308
+ .ft-card:hover .ft-card-priority,
3309
+ .ft-card.is-selected .ft-card-priority {
3310
+ display: none;
3311
+ }
3312
+
3313
+ .ft-card-action {
3314
+ width: 20px;
3315
+ height: 20px;
3316
+ border: 0;
3317
+ border-radius: 4px;
3318
+ padding: 0;
3319
+ display: grid;
3320
+ place-items: center;
3321
+ color: var(--nova-color-text-muted);
3322
+ background: transparent;
3323
+ cursor: pointer;
3324
+ }
3325
+
3326
+ .ft-card-action:hover {
3327
+ color: var(--nova-color-text);
3328
+ background: var(--nova-color-surface-muted);
3329
+ }
3330
+
3331
+ .ft-card-action.is-danger:hover {
3332
+ color: var(--nova-tone-danger-foreground);
3333
+ background: var(--nova-tone-danger-background);
3334
+ }
3335
+
3336
+ /* DingTalk-style Left/Right Priority Shift Handles on Branch Cards */
3337
+ .ft-branch-shift {
3338
+ position: absolute;
3339
+ top: 0;
3340
+ bottom: 0;
3341
+ z-index: 4;
3342
+ width: 16px;
3343
+ border: 0;
3344
+ padding: 0;
3345
+ display: grid;
3346
+ place-items: center;
3347
+ color: var(--nova-color-text-muted);
3348
+ background: color-mix(in srgb, var(--nova-color-surface-muted) 92%, transparent);
3349
+ opacity: 0;
3350
+ pointer-events: none;
3351
+ cursor: pointer;
3352
+ transition: opacity .14s ease, background-color .14s ease, color .14s ease;
3353
+ }
3354
+
3355
+ .ft-branch-shift.is-left {
3356
+ left: 0;
3357
+ border-right: 1px solid var(--nova-color-divider);
3358
+ }
3359
+
3360
+ .ft-branch-shift.is-right {
3361
+ right: 0;
3362
+ border-left: 1px solid var(--nova-color-divider);
3363
+ }
3364
+
3365
+ .ft-card.is-branch-card:hover .ft-branch-shift {
3366
+ opacity: 1;
3367
+ pointer-events: auto;
3368
+ }
3369
+
3370
+ .ft-branch-shift:hover {
3371
+ color: var(--nova-tone-primary-foreground);
3372
+ background: var(--nova-color-primary-soft);
3373
+ }
3374
+
3375
+ .ft-card-body {
3376
+ min-height: 44px;
3377
+ padding: 9px 12px;
3378
+ display: grid;
3379
+ grid-template-columns: minmax(0, 1fr) auto;
3380
+ align-items: center;
3381
+ gap: 6px;
3382
+ }
3383
+
3384
+ .ft-card.is-branch-card .ft-card-body {
3385
+ min-height: 38px;
3386
+ padding: 4px 18px 10px;
3387
+ }
3388
+
3389
+ .nova-ft-canvas .ft-card-summary {
3390
+ margin: 0;
3391
+ font-size: 12px;
3392
+ line-height: 18px;
3393
+ color: var(--nova-color-text);
3394
+ display: -webkit-box;
3395
+ -webkit-line-clamp: 2;
3396
+ -webkit-box-orient: vertical;
3397
+ overflow: hidden;
3398
+ word-break: break-word;
3399
+ }
3400
+
3401
+ .ft-card-summary.is-placeholder {
3402
+ color: var(--nova-color-text-muted);
3403
+ }
3404
+
3405
+ .ft-card-chevron {
3406
+ color: var(--nova-color-text-muted);
3407
+ opacity: 0.65;
3408
+ }
3409
+
3410
+ .ft-card-issue {
3411
+ padding: 5px 10px;
3412
+ border-top: 1px solid var(--nova-color-divider);
3413
+ display: flex;
3414
+ align-items: center;
3415
+ gap: 5px;
3416
+ font-size: 11px;
3417
+ line-height: 15px;
3418
+ }
3419
+
3420
+ .ft-card-issue.is-error {
3421
+ color: var(--nova-tone-danger-foreground);
3422
+ background: var(--nova-tone-danger-background);
3423
+ }
3424
+
3425
+ .ft-card-issue.is-warning {
3426
+ color: var(--nova-tone-warning-foreground);
3427
+ background: var(--nova-tone-warning-background);
3428
+ }
3429
+
3430
+ .ft-card-issue span {
3431
+ overflow: hidden;
3432
+ text-overflow: ellipsis;
3433
+ white-space: nowrap;
3434
+ }
3435
+
3436
+ /* Route Container & Smooth Rounded Branch Rails (Feishu / Modern DingTalk style) */
3437
+ .ft-route-block {
3438
+ position: relative;
3439
+ display: flex;
3440
+ flex-direction: column;
3441
+ align-items: center;
3442
+ }
3443
+
3444
+ .ft-add-branch-btn {
3445
+ position: relative;
3446
+ z-index: 5;
3447
+ height: 28px;
3448
+ margin-bottom: -14px;
3449
+ border: 1px solid var(--nova-color-border);
3450
+ border-radius: 999px;
3451
+ padding: 0 13px;
3452
+ display: inline-flex;
3453
+ align-items: center;
3454
+ gap: 4px;
3455
+ color: var(--nova-tone-primary-foreground);
3456
+ background: var(--nova-color-surface);
3457
+ font: inherit;
3458
+ font-size: 11.5px;
3459
+ font-weight: 600;
3460
+ box-shadow: 0 2px 6px rgba(31, 40, 65, 0.08);
3461
+ cursor: pointer;
3462
+ transition: border-color .14s ease, background-color .14s ease, transform .14s ease;
3463
+ }
3464
+
3465
+ .ft-add-branch-btn:hover {
3466
+ border-color: var(--nova-color-primary);
3467
+ background: var(--nova-color-primary-soft);
3468
+ transform: translateY(-1px);
3469
+ }
3470
+
3471
+ .ft-branch-row {
3472
+ position: relative;
3473
+ display: flex;
3474
+ align-items: stretch;
3475
+ justify-content: center;
3476
+ }
3477
+
3478
+ .ft-branch-col {
3479
+ position: relative;
3480
+ display: flex;
3481
+ flex-direction: column;
3482
+ align-items: center;
3483
+ padding: 32px 24px 22px;
3484
+ }
3485
+
3486
+ /* Top horizontal rail + rounded outer corners */
3487
+ .ft-branch-col::before {
3488
+ content: '';
3489
+ position: absolute;
3490
+ top: 0;
3491
+ left: 0;
3492
+ right: 0;
3493
+ height: 2px;
3494
+ background: var(--ft-line-color, #c2cad6);
3495
+ pointer-events: none;
3496
+ }
3497
+
3498
+ .ft-branch-col.is-first::before {
3499
+ left: calc(50% - 1px);
3500
+ right: 0;
3501
+ height: 24px;
3502
+ background: transparent;
3503
+ border-top: 2px solid var(--ft-line-color, #c2cad6);
3504
+ border-left: 2px solid var(--ft-line-color, #c2cad6);
3505
+ border-top-left-radius: 12px;
3506
+ box-sizing: border-box;
3507
+ }
3508
+
3509
+ .ft-branch-col.is-last::before {
3510
+ left: 0;
3511
+ right: calc(50% - 1px);
3512
+ height: 24px;
3513
+ background: transparent;
3514
+ border-top: 2px solid var(--ft-line-color, #c2cad6);
3515
+ border-right: 2px solid var(--ft-line-color, #c2cad6);
3516
+ border-top-right-radius: 12px;
3517
+ box-sizing: border-box;
3518
+ }
3519
+
3520
+ /* Bottom merge rail + rounded outer corners */
3521
+ .ft-branch-col::after {
3522
+ content: '';
3523
+ position: absolute;
3524
+ bottom: 0;
3525
+ left: 0;
3526
+ right: 0;
3527
+ height: 2px;
3528
+ background: var(--ft-line-color, #c2cad6);
3529
+ pointer-events: none;
3530
+ }
3531
+
3532
+ .ft-branch-col.is-first::after {
3533
+ left: calc(50% - 1px);
3534
+ right: 0;
3535
+ height: 22px;
3536
+ background: transparent;
3537
+ border-bottom: 2px solid var(--ft-line-color, #c2cad6);
3538
+ border-left: 2px solid var(--ft-line-color, #c2cad6);
3539
+ border-bottom-left-radius: 12px;
3540
+ box-sizing: border-box;
3541
+ }
3542
+
3543
+ .ft-branch-col.is-last::after {
3544
+ left: 0;
3545
+ right: calc(50% - 1px);
3546
+ height: 22px;
3547
+ background: transparent;
3548
+ border-bottom: 2px solid var(--ft-line-color, #c2cad6);
3549
+ border-right: 2px solid var(--ft-line-color, #c2cad6);
3550
+ border-bottom-right-radius: 12px;
3551
+ box-sizing: border-box;
3552
+ }
3553
+
3554
+ .ft-branch-top-stem {
3555
+ position: absolute;
3556
+ top: 0;
3557
+ left: 50%;
3558
+ width: 2px;
3559
+ height: 32px;
3560
+ transform: translateX(-50%);
3561
+ background: var(--ft-line-color, #c2cad6);
3562
+ pointer-events: none;
3563
+ }
3564
+
3565
+ .ft-branch-col.is-first .ft-branch-top-stem,
3566
+ .ft-branch-col.is-last .ft-branch-top-stem {
3567
+ top: 22px;
3568
+ height: 10px;
3569
+ }
3570
+
3571
+ .ft-branch-body {
3572
+ display: flex;
3573
+ flex-direction: column;
3574
+ align-items: center;
3575
+ }
3576
+
3577
+ .ft-branch-bottom-filler {
3578
+ flex: 1;
3579
+ width: 2px;
3580
+ min-height: 4px;
3581
+ background: var(--ft-line-color, #c2cad6);
3582
+ }
3583
+
3584
+ .ft-branch-col:not(.is-first):not(.is-last) .ft-branch-bottom-filler {
3585
+ margin-bottom: -22px;
3586
+ }
3587
+
3588
+ .ft-branch-collapsed-pill {
3589
+ border: 1px solid var(--nova-color-border-strong);
3590
+ border-radius: 999px;
3591
+ padding: 5px 12px;
3592
+ background: var(--nova-color-surface);
3593
+ color: var(--nova-color-text-secondary);
3594
+ font: inherit;
3595
+ font-size: 11px;
3596
+ font-weight: 600;
3597
+ cursor: pointer;
3598
+ box-shadow: var(--nova-shadow-sm);
3599
+ }
3600
+
3601
+ .ft-branch-collapsed-pill:hover {
3602
+ border-color: var(--nova-tone-primary-border);
3603
+ color: var(--nova-tone-primary-foreground);
3604
+ background: var(--nova-color-primary-soft);
3605
+ }
3606
+
3607
+ /* End Node (DingTalk / Feishu style minimal dot + caption) */
3608
+ .ft-end-node {
3609
+ display: flex;
3610
+ flex-direction: column;
3611
+ align-items: center;
3612
+ gap: 5px;
3613
+ padding: 0 12px 6px;
3614
+ border-radius: 10px;
3615
+ cursor: pointer;
3616
+ }
3617
+
3618
+ .ft-end-dot {
3619
+ width: 12px;
3620
+ height: 12px;
3621
+ border-radius: 50%;
3622
+ background: var(--ft-arrow-color, #aeb8c7);
3623
+ border: 2px solid var(--nova-color-surface, #ffffff);
3624
+ box-shadow: 0 0 0 1.5px var(--ft-line-color, #c2cad6);
3625
+ transition: background-color .15s ease, box-shadow .15s ease;
3626
+ }
3627
+
3628
+ .ft-end-label {
3629
+ font-size: 12px;
3630
+ font-weight: 500;
3631
+ color: var(--nova-color-text-muted);
3632
+ }
3633
+
3634
+ .ft-end-node:hover .ft-end-dot,
3635
+ .ft-end-node.is-selected .ft-end-dot {
3636
+ background: var(--nova-color-primary);
3637
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--nova-color-primary) 24%, transparent);
3638
+ }
3639
+
3640
+ .ft-end-node.is-selected .ft-end-label {
3641
+ color: var(--nova-tone-primary-foreground);
3642
+ font-weight: 600;
3643
+ }
3644
+
3645
+ .ft-end-node.runtime-completed .ft-end-dot {
3646
+ background: var(--nova-tone-success-strong, #22a06b);
3647
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--nova-tone-success-strong, #22a06b) 24%, transparent);
3648
+ }
3649
+
3650
+ /* Add Node Popover */
3651
+ .ft-overlay-host {
3652
+ position: absolute;
3653
+ inset: 0;
3654
+ pointer-events: none;
3655
+ z-index: 40;
3656
+ }
3657
+
3658
+ .ft-add-menu {
3659
+ position: absolute;
3660
+ pointer-events: auto;
3661
+ width: 464px;
3662
+ max-width: calc(100% - 24px);
3663
+ max-height: calc(100% - 24px);
3664
+ overflow-y: auto;
3665
+ border: 1px solid var(--nova-color-border);
3666
+ border-radius: 12px;
3667
+ background: var(--nova-color-surface-raised);
3668
+ box-shadow: var(--nova-shadow-lg);
3669
+ padding: 10px 12px;
3670
+ display: grid;
3671
+ gap: 8px;
3672
+ transform-origin: top center;
3673
+ animation: ft-pop-in .16s cubic-bezier(0.22, 1, 0.36, 1);
3674
+ }
3675
+
3676
+ .ft-add-menu-head {
3677
+ display: flex;
3678
+ align-items: center;
3679
+ justify-content: space-between;
3680
+ font-size: 12.5px;
3681
+ font-weight: 700;
3682
+ }
3683
+
3684
+ .ft-add-menu-wrap {
3685
+ display: flex;
3686
+ align-items: center;
3687
+ gap: 7px;
3688
+ padding: 5px 9px;
3689
+ border-radius: 7px;
3690
+ background: var(--nova-color-surface-subtle);
3691
+ border: 1px solid var(--nova-color-divider);
3692
+ font-size: 11px;
3693
+ color: var(--nova-color-text-secondary);
3694
+ cursor: pointer;
3695
+ }
3696
+
3697
+ .ft-add-menu-group {
3698
+ display: grid;
3699
+ gap: 5px;
3700
+ }
3701
+
3702
+ .ft-add-menu-group-title {
3703
+ font-size: 10.5px;
3704
+ font-weight: 600;
3705
+ color: var(--nova-color-text-muted);
3706
+ }
3707
+
3708
+ .ft-add-menu-grid {
3709
+ display: grid;
3710
+ grid-template-columns: repeat(2, minmax(0, 1fr));
3711
+ gap: 5px;
3712
+ }
3713
+
3714
+ .ft-add-menu-item {
3715
+ border: 1px solid var(--nova-color-divider);
3716
+ border-radius: 8px;
3717
+ padding: 6px 8px;
3718
+ display: grid;
3719
+ grid-template-columns: 26px minmax(0, 1fr);
3720
+ align-items: center;
3721
+ gap: 8px;
3722
+ text-align: left;
3723
+ background: var(--nova-color-surface);
3724
+ color: var(--nova-color-text);
3725
+ font: inherit;
3726
+ cursor: pointer;
3727
+ transition: border-color .14s ease, background-color .14s ease, transform .12s ease;
3728
+ }
3729
+
3730
+ .ft-add-menu-item:hover {
3731
+ border-color: var(--nova-tone-primary-border);
3732
+ background: var(--nova-color-primary-soft);
3733
+ }
3734
+
3735
+ .ft-add-menu-icon {
3736
+ width: 26px;
3737
+ height: 26px;
3738
+ border-radius: 7px;
3739
+ display: grid;
3740
+ place-items: center;
3741
+ color: var(--nova-tone-primary-foreground);
3742
+ background: var(--nova-tone-primary-background);
3743
+ }
3744
+
3745
+ .ft-add-menu-icon.tone-user-task { color: var(--nova-tone-user-task-foreground); background: var(--nova-tone-user-task-background); }
3746
+ .ft-add-menu-icon.tone-info { color: var(--nova-tone-info-foreground); background: var(--nova-tone-info-background); }
3747
+ .ft-add-menu-icon.tone-message-task { color: var(--nova-tone-message-task-foreground); background: var(--nova-tone-message-task-background); }
3748
+ .ft-add-menu-icon.tone-success { color: var(--nova-tone-success-foreground); background: var(--nova-tone-success-background); }
3749
+ .ft-add-menu-icon.tone-script-task { color: var(--nova-tone-script-task-foreground); background: var(--nova-tone-script-task-background); }
3750
+ .ft-add-menu-icon.tone-rule-task { color: var(--nova-tone-rule-task-foreground); background: var(--nova-tone-rule-task-background); }
3751
+ .ft-add-menu-icon.tone-warning { color: var(--nova-tone-warning-foreground); background: var(--nova-tone-warning-background); }
3752
+ .ft-add-menu-icon.tone-service-task { color: var(--nova-tone-service-task-foreground); background: var(--nova-tone-service-task-background); }
3753
+ .ft-add-menu-icon.tone-manual-task { color: var(--nova-tone-manual-task-foreground); background: var(--nova-tone-manual-task-background); }
3754
+
3755
+ .ft-add-menu-copy {
3756
+ min-width: 0;
3757
+ display: grid;
3758
+ gap: 2px;
3759
+ }
3760
+
3761
+ .ft-add-menu-copy strong {
3762
+ font-size: 12px;
3763
+ font-weight: 600;
3764
+ line-height: 16px;
3765
+ }
3766
+
3767
+ .ft-add-menu-copy small {
3768
+ font-size: 10.5px;
3769
+ line-height: 14px;
3770
+ color: var(--nova-color-text-muted);
3771
+ }
3772
+
3773
+ .ft-runtime-details-wrap {
3774
+ position: absolute;
3775
+ top: 14px;
3776
+ right: 14px;
3777
+ z-index: 45;
3778
+ pointer-events: none;
3779
+ width: min(352px, calc(100% - 28px));
3780
+ max-height: calc(100% - 28px);
3781
+ }
3782
+
3783
+ .ft-runtime-details-wrap .mb-runtime-details-popover {
3784
+ position: relative;
3785
+ inset: auto;
3786
+ width: 100%;
3787
+ min-width: 0;
3788
+ max-width: 100%;
3789
+ max-height: min(440px, calc(100% - 0px));
3790
+ pointer-events: auto;
3791
+ transform-origin: top right;
3792
+ animation: ft-pop-in .18s cubic-bezier(0.22, 1, 0.36, 1);
3793
+ }
3794
+
3795
+ /* XML Preview Modal */
3796
+ .ft-modal-backdrop {
3797
+ position: absolute;
3798
+ inset: 0;
3799
+ z-index: 90;
3800
+ background: var(--nova-color-backdrop, rgba(20, 26, 39, 0.38));
3801
+ display: grid;
3802
+ place-items: center;
3803
+ padding: 20px;
3804
+ animation: ft-modal-fade .16s ease;
3805
+ }
3806
+
3807
+ .ft-xml-modal {
3808
+ width: min(820px, 100%);
3809
+ max-height: min(640px, 90%);
3810
+ border: 1px solid var(--nova-color-border);
3811
+ border-radius: 13px;
3812
+ background: var(--nova-color-surface);
3813
+ box-shadow: var(--nova-shadow-lg);
3814
+ overflow: hidden;
3815
+ display: grid;
3816
+ grid-template-rows: auto minmax(0, 1fr);
3817
+ animation: ft-modal-pop .18s cubic-bezier(0.22, 1, 0.36, 1);
3818
+ }
3819
+
3820
+ .ft-xml-modal-head {
3821
+ padding: 12px 16px;
3822
+ border-bottom: 1px solid var(--nova-color-divider);
3823
+ display: flex;
3824
+ align-items: center;
3825
+ justify-content: space-between;
3826
+ gap: 12px;
3827
+ }
3828
+
3829
+ .ft-xml-modal-head strong {
3830
+ font-size: 14px;
3831
+ font-weight: 700;
3832
+ }
3833
+
3834
+ .ft-xml-modal-actions {
3835
+ display: flex;
3836
+ align-items: center;
3837
+ gap: 8px;
3838
+ }
3839
+
3840
+ .ft-xml-pre {
3841
+ margin: 0;
3842
+ padding: 14px 16px;
3843
+ overflow: auto;
3844
+ background: var(--nova-color-surface-subtle);
3845
+ color: var(--nova-color-text);
3846
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
3847
+ font-size: 12px;
3848
+ line-height: 18px;
3849
+ user-select: text;
3850
+ }
3851
+
3852
+ @media (prefers-reduced-motion: reduce) {
3853
+ .ft-shell-body,
3854
+ .ft-stage.is-animating,
3855
+ .ft-right-toggle,
3856
+ .ft-right-toggle .nova-icon,
3857
+ .ft-seg-btn,
3858
+ .ft-tool-btn,
3859
+ .ft-add-btn,
3860
+ .ft-card,
3861
+ .ft-branch-shift,
3862
+ .ft-add-branch-btn,
3863
+ .ft-add-menu-item,
3864
+ .ft-end-dot,
3865
+ .ft-drop-hint {
3866
+ transition: none !important;
3867
+ }
3868
+
3869
+ .ft-card.is-entering,
3870
+ .ft-card.is-pulsed,
3871
+ .ft-add-menu,
3872
+ .ft-dropdown-menu,
3873
+ .ft-validation-popover,
3874
+ .ft-runtime-details-wrap .mb-runtime-details-popover,
3875
+ .ft-modal-backdrop,
3876
+ .ft-xml-modal {
3877
+ animation: none !important;
3878
+ }
3879
+ }
3880
+