File size: 90,054 Bytes
af1bee9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 | /* Older app styles (shell, run views, tables). Every value comes from tokens.css; the Fluent token blocks that used to open
this file were retired (tokens.css section 3 keeps the old names as aliases). Loaded before apple*.css, which win on conflicts. */
html, body, #root { height: 100%; }
body { background: var(--fpt-surface); color: var(--fpt-text); font-family: var(--fpt-font); font-size: var(--fs-base); line-height: var(--lh-base); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.fpt-rail { width: 56px; flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-right: 1px solid var(--fpt-border); }
.fpt-rail-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--fpt-dim); border: 0; background: transparent; cursor: pointer; text-decoration: none; }
.fpt-rail-btn:hover { background: var(--fpt-surface-2); color: var(--fpt-text); }
.fpt-rail-btn[data-active='true'] { background: var(--fpt-ink); color: var(--fpt-ink-text); }
.fpt-rail-badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--fpt-radius-card); background: var(--fpt-status-waiting); color: #fff; font-size: var(--fs-xs); line-height: 16px; text-align: center; font-weight: var(--fw-semibold); }
.fpt-mark { width: 34px; height: 34px; border-radius: var(--fpt-radius-card); background: var(--fpt-ink); color: var(--fpt-ink-text); display: grid; place-items: center; font-weight: var(--fw-semibold); font-size: var(--fs-base); margin-bottom: 10px; }
.fpt-tree { width: 216px; flex: 0 0 216px; border-right: 1px solid var(--fpt-border); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.fpt-tree-title { font-size: var(--fs-xs); color: var(--fpt-dim); text-transform: none; margin: 0 6px 8px; }
.fpt-tree-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--fpt-radius-card); font-size: var(--fs-xs); text-decoration: none; color: var(--fpt-text); border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; }
.fpt-tree-item:hover, .fpt-tree-item[data-active='true'] { background: var(--fpt-surface-2); }
.fpt-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.fpt-tree-children { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--fpt-line); display: flex; flex-direction: column; }
.fpt-tree-child { position: relative; padding: 4px 8px; font-size: var(--fs-xs); color: var(--fpt-dim); text-decoration: none; border-radius: var(--fpt-radius-control); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-tree-child::before { content: ''; position: absolute; left: -10px; top: 50%; width: 8px; border-top: 1px solid var(--fpt-line); }
.fpt-tree-child:hover, .fpt-tree-child[data-active='true'] { color: var(--fpt-text); background: var(--fpt-surface-2); }
.fpt-mock { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--pill-amber-bg); color: var(--pill-amber-fg); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.02em; text-align: center; }
.fpt-iconbtn { width: 28px; height: 28px; border-radius: var(--fpt-radius-card); border: 1px solid var(--fpt-border); background: var(--fpt-surface); color: var(--fpt-text); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.fpt-iconbtn:hover { background: var(--fpt-surface-2); }
.fpt-card { background: var(--fpt-surface); border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); }
.fpt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 18px; white-space: nowrap; background: var(--pill-neutral-bg); color: var(--pill-neutral-fg); }
.fpt-pill[data-tone='mint'] { background: var(--pill-mint-bg); color: var(--pill-mint-fg); }
.fpt-pill[data-tone='lav'] { background: var(--pill-lav-bg); color: var(--pill-lav-fg); }
.fpt-pill[data-tone='amber'] { background: var(--pill-amber-bg); color: var(--pill-amber-fg); }
.fpt-pill[data-tone='red'] { background: var(--pill-red-bg); color: var(--pill-red-fg); }
.fpt-pill[data-tone='green'] { background: var(--pill-green-bg); color: var(--pill-green-fg); }
.fpt-pill[data-tone='ink'] { background: var(--pill-ink-bg); color: var(--pill-ink-fg); }
.fpt-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-decoration: none; color: var(--fpt-text); }
.fpt-row:hover { background: var(--fpt-surface-2); }
.fpt-tile { display: flex; align-items: center; gap: 10px; padding: 12px 16px; text-decoration: none; color: var(--fpt-text); flex: 1 1 180px; }
.fpt-tile:hover, .fpt-tile:focus-visible { border-color: var(--fpt-ink); }
.fpt-feature { border-radius: var(--fpt-radius-card); padding: 24px 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; flex: 1 1 320px; border: 1px solid var(--fpt-border); }
.fpt-feature > .fpt-pill { align-self: flex-start; }
.fpt-feature[data-tone='mint'] { background: var(--fpt-mint-card); }
.fpt-feature[data-tone='lav'] { background: var(--fpt-lav-card); }
.fpt-step { position: relative; padding: 10px 12px; }
.fpt-step + .fpt-step { margin-top: 16px; }
.fpt-step + .fpt-step::before { content: ''; position: absolute; left: 22px; top: -15px; height: 14px; border-left: 1px dashed var(--fpt-line); }
.fpt-feed-item { padding: 12px 16px; }
.fpt-feed-meta { font-size: var(--fs-xs); color: var(--fpt-dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fpt-cols { display: flex; gap: 16px; align-items: flex-start; }
.fpt-side { flex: 0 0 280px; width: 280px; display: flex; flex-direction: column; gap: 12px; }
.fpt-hide-narrow { display: block; }
.fpt-only-narrow { display: none; }
@media (max-width: 1100px) {
.fpt-cols { flex-direction: column; }
.fpt-side { width: 100%; flex: 1 1 auto; }
}
@media (max-width: 860px) {
.fpt-app { padding: 0; }
.fpt-frame { border-radius: 0; border: 0; min-height: 100vh; }
.fpt-tree { display: none; }
.fpt-tree[data-open='true'] { display: flex; position: fixed; z-index: 200; left: 56px; top: 0; bottom: 0; background: var(--fpt-surface); box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18); }
.fpt-main { padding: 10px 10px 20px; }
.fpt-hide-narrow { display: none; }
.fpt-only-narrow { display: grid; }
}
.fpt-tree[data-collapsed='true'] { display: none; }
@keyframes fpt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.fpt-live { animation: fpt-pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
:focus-visible { outline: 2px solid var(--fpt-focus); outline-offset: 2px; }
/* scenario review: one-line rows inside step groups, sticky submit bar */
.fpt-srows { display: flex; flex-direction: column; }
.fpt-srow { padding: 6px 4px; border-top: 1px solid var(--fpt-border); }
.fpt-srow:first-child { border-top: 0; }
.fpt-sticky-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--fpt-surface); border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08); }
.fpt-idpill { font-family: var(--fpt-mono); font-size: var(--fs-xs); cursor: pointer; border: 0; }
/* live view ("Watch the test") */
.fpt-now { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.fpt-live-frame { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #0d1211; border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); overflow: hidden; display: grid; place-items: center; }
.fpt-live-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fpt-live-frame[data-dim='true'] img { opacity: 0.35; }
.fpt-live-frame:fullscreen { border-radius: 0; border: 0; }
.fpt-live-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 80%; text-align: center; padding: 10px 16px; border-radius: var(--fpt-radius-card); background: var(--pill-amber-bg); color: var(--pill-amber-fg); }
.fpt-live-overlay[data-kind='paused'] { background: var(--fpt-surface); color: var(--fpt-text); border: 1px solid var(--fpt-border); }
.fpt-failed-frame { display: block; width: 100%; padding: 0; margin: 0 0 4px; border: 2px solid #c92a2a; border-radius: var(--fpt-radius-card); overflow: hidden; background: var(--fpt-surface); color: var(--fpt-text); cursor: pointer; }
.fpt-failed-frame img { width: 100%; display: block; }
/* chat dock ("Ask the co-worker"): a fourth column that pushes the page; a drawer below 1024px */
.fpt-chat { width: 380px; flex: 0 0 380px; border-left: 1px solid var(--fpt-border); display: flex; min-width: 0; }
.fpt-chat[hidden] { display: none; }
.fpt-chat-panel { display: flex; flex-direction: column; width: 100%; height: 100%; max-height: 100dvh; background: var(--fpt-surface); color: var(--fpt-text); }
.mantine-Drawer-body .fpt-chat-panel { max-height: 100vh; height: 100vh; }
.fpt-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; }
.fpt-chat-mock { display: flex; align-items: center; gap: 6px; margin: 0 12px; padding: 4px 10px; border-radius: var(--fpt-radius-card); font-size: var(--fs-xs); background: var(--pill-amber-bg); color: var(--pill-amber-fg); }
.fpt-chat-log { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.fpt-chat-empty { margin-top: 8px; }
.fpt-chat-msg { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.fpt-chat-msg[data-role='user'] { align-self: flex-end; max-width: 88%; padding: 8px 12px; border-radius: var(--fpt-radius-card) 12px 2px 12px; background: var(--fpt-ink); color: var(--fpt-ink-text); }
.fpt-chat-card { padding: 10px; font-size: var(--fs-xs); }
.fpt-chat-confirm { padding: 10px 12px; border: 1px solid var(--fpt-line); background: var(--fpt-surface-2); }
.fpt-chat-list { margin: 4px 0 0; padding-left: 16px; font-size: var(--fs-xs); max-height: 180px; overflow-y: auto; }
.fpt-chat-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: var(--fs-xs); }
.fpt-chat-dl dt { color: var(--fpt-dim); }
.fpt-chat-dl dd { margin: 0; }
.fpt-chat-foot { border-top: 1px solid var(--fpt-border); padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.fpt-chat-chip { display: flex; align-items: center; gap: 4px; min-width: 0; }
.fpt-chat-chip .fpt-pill { overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block; }
.fpt-chat-chip-x { border: 0; background: transparent; color: var(--fpt-dim); cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.fpt-chat-chip-x:hover { background: var(--fpt-surface-2); color: var(--fpt-text); }
.fpt-chat-input { display: flex; align-items: flex-end; gap: 6px; }
.fpt-chat-card { overflow: hidden; }
.fpt-chat-card .fpt-pill { white-space: normal; text-align: left; border-radius: var(--fpt-radius-card); }
/* ---- single labelled menu (replaces the icon rail + business-area tree) ---- */
.fpt-nav-item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: var(--fpt-radius-card); font-size: var(--fs-base); color: var(--fpt-text); text-decoration: none; border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.fpt-nav-item:hover { background: var(--fpt-surface-2); }
.fpt-nav-item[data-active='true'] { background: var(--fpt-ink); color: var(--fpt-ink-text); }
.fpt-nav-badge { min-width: 18px; height: 18px; padding: 0 6px; border-radius: var(--fpt-radius-card); background: var(--pill-amber-bg); color: var(--pill-amber-fg); font-size: var(--fs-xs); line-height: 18px; text-align: center; font-weight: var(--fw-semibold); }
.fpt-nav-sep { height: 1px; background: var(--fpt-border); margin: 8px 6px; }
.fpt-kbd { white-space: nowrap; font: inherit; font-size: var(--fs-xs); line-height: 1; color: var(--fpt-dim); border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-control); padding: 2px 4px; background: var(--fpt-surface); }
.fpt-nav-item[data-active='true'] .fpt-kbd { color: inherit; background: transparent; }
.fpt-nav-user { display: flex; align-items: center; gap: 6px; padding: 8px 6px 0; border-top: 1px solid var(--fpt-border); font-size: var(--fs-xs); color: var(--fpt-dim); }
/* ---- run guide ---- */
@keyframes fpt-spin { to { transform: rotate(360deg); } }
.fpt-spin { animation: fpt-spin 1.1s linear infinite; color: var(--pill-ink-fg); }
.fpt-choice { padding: 10px 12px; width: 100%; cursor: pointer; }
.fpt-choice:hover { background: var(--fpt-surface-2); }
.fpt-choice[data-active='true'] { border-color: var(--fpt-ink); background: var(--fpt-surface-2); }
.fpt-choice-dot { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 1.5px solid var(--fpt-line); display: grid; place-items: center; }
.fpt-choice[data-active='true'] .fpt-choice-dot { background: var(--fpt-ink); border-color: var(--fpt-ink); color: var(--fpt-ink-text); }
/* a page shown inside a Settings tab: its own top bar would repeat the Settings title */
.fpt-embedded .fpt-topbar { display: none; }
/* ---- chat page: a fixed panel with its own scrolling thread and a composer that stays in view ---- */
.fpt-chatpage { height: calc(100dvh - 70px); min-height: 420px; display: flex; flex-direction: column; border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); overflow: hidden; background: var(--fpt-surface); position: relative; }
.fpt-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--fpt-border); background: var(--fpt-band); flex: 0 0 auto; }
.fpt-chat-head-title { font-weight: var(--fw-semibold); font-size: var(--fs-base); line-height: 1.25; }
.fpt-chat-status { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa5a1; flex: 0 0 8px; }
.fpt-chat-status[data-tone='work'] i { background: #2f9e44; animation: fpt-pulse 1.4s ease-in-out infinite; }
.fpt-chat-status[data-tone='you'] i { background: #f08c00; }
.fpt-chat-status[data-tone='done'] i { background: #636366; }
.fpt-chat-status[data-tone='stop'] i { background: #c92a2a; }
.fpt-chat-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; background: var(--fpt-page); }
.fpt-chat-thread { max-width: 980px; margin: 0 auto; padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 16px; }
@keyframes fpt-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fpt-msg { display: flex; gap: 10px; align-items: flex-end; animation: fpt-msg-in 0.24s ease-out; }
.fpt-msg[data-who='you'] { justify-content: flex-end; }
.fpt-msg-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--fpt-ink); color: var(--fpt-ink-text); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: var(--fw-semibold); align-self: flex-start; }
.fpt-bubble { padding: 10px 16px; border-radius: var(--fpt-radius-card); max-width: min(660px, 84%); min-width: 0; font-size: var(--fs-base); line-height: 1.5; background: var(--fpt-surface); border: 1px solid var(--fpt-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); overflow-wrap: anywhere; }
.fpt-msg[data-who='bot'] .fpt-bubble { border-top-left-radius: 5px; }
.fpt-msg[data-who='you'] .fpt-bubble { background: var(--fpt-ink); color: var(--fpt-ink-text); border-color: transparent; border-bottom-right-radius: 5px; }
.fpt-bubble[data-wide='true'] { max-width: none; flex: 1 1 auto; padding: 16px 20px; }
.fpt-chat-phase { align-self: center; font-size: var(--fs-xs); text-transform: none; color: var(--fpt-dim); display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0; }
.fpt-chat-phase::before, .fpt-chat-phase::after { content: ''; flex: 1; border-top: 1px solid var(--fpt-border); }
.fpt-chat-steps { display: grid; grid-template-columns: 18px auto 1fr; gap: 8px 10px; align-items: center; font-size: var(--fs-base); }
.fpt-chat-steps b { font-weight: var(--fw-semibold); white-space: nowrap; }
.fpt-chat-steps span { color: var(--fpt-dim); }
.fpt-typing { display: inline-flex; gap: 4px; align-items: center; height: 20px; }
.fpt-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fpt-dim); animation: fpt-typing 1.2s ease-in-out infinite; }
.fpt-typing i:nth-child(2) { animation-delay: 0.15s; }
.fpt-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes fpt-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.35; } 30% { transform: translateY(-4px); opacity: 1; } }
.fpt-chat-jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 5; border: 1px solid var(--fpt-border); background: var(--fpt-surface); color: var(--fpt-text); border-radius: var(--r-pill); padding: 6px 16px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); display: inline-flex; align-items: center; gap: 6px; }
.fpt-chat-compose { flex: 0 0 auto; border-top: 1px solid var(--fpt-border); background: var(--fpt-surface); padding: 10px 20px 16px; }
.fpt-chat-compose-inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.fpt-chat-suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.fpt-chat-suggest button { border: 1px solid var(--fpt-border); background: var(--fpt-surface-2); color: var(--fpt-text); border-radius: var(--r-pill); padding: 4px 12px; font-size: var(--fs-xs); cursor: pointer; }
.fpt-chat-suggest button:hover { border-color: var(--fpt-ink); }
@media (max-width: 899px) { .fpt-chatpage { height: calc(100dvh - 70px); border-radius: var(--fpt-radius-card); } .fpt-chat-thread { padding: 16px 10px 8px; } .fpt-bubble { max-width: 92%; } }
@media (prefers-reduced-motion: reduce) { .fpt-msg, .fpt-typing i { animation: none; } .fpt-chat-scroll { scroll-behavior: auto; } }
/* ---- sign-in and create-account pages ---- */
.fpt-auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--fpt-surface); }
.fpt-auth-brand { background: linear-gradient(160deg, #0d2b26 0%, #123b35 55%, #1c5a4f 100%); color: #eef6f3; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.fpt-auth-logo { display: flex; align-items: center; gap: 10px; font-weight: var(--fw-semibold); font-size: var(--fs-lg); }
.fpt-auth-mark { width: 36px; height: 36px; border-radius: var(--fpt-radius-card); background: #eef6f3; color: #0d2b26; display: grid; place-items: center; font-weight: var(--fw-semibold); font-size: var(--fs-base); }
.fpt-auth-brand h1 { font-size: var(--fs-3xl); line-height: 1.15; font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 0 0 16px; max-width: 480px; }
.fpt-auth-brand p { color: #b9d2cc; font-size: var(--fs-lg); line-height: 1.55; max-width: 440px; margin: 0; }
.fpt-auth-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; max-width: 460px; }
.fpt-auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-base); line-height: 1.5; color: #c9ddd8; }
.fpt-auth-points li b { color: #ffffff; font-weight: var(--fw-semibold); font-size: var(--fs-base); }
.fpt-auth-points svg { flex: 0 0 20px; margin-top: 2px; color: #7fd6c2; }
.fpt-auth-foot { font-size: var(--fs-xs); color: #9dbab3; min-height: 16px; }
.fpt-auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.fpt-auth-card { width: 100%; max-width: 400px; }
.fpt-auth-card h2 { font-size: var(--fs-2xl); font-weight: var(--fw-semibold); letter-spacing: -0.01em; margin: 0; }
@media (max-width: 899px) {
.fpt-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.fpt-auth-brand { padding: 20px 24px; gap: 0; }
.fpt-auth-brand h1, .fpt-auth-brand p, .fpt-auth-points, .fpt-auth-foot { display: none; }
.fpt-auth-form { align-items: flex-start; padding: 28px 20px; }
}
/* ---- workflow of a test run: phases left to right ---- */
.fpt-flow { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.fpt-flow-arrow { flex: 0 0 20px; align-self: center; color: var(--fpt-dim); }
.fpt-flow-phase { flex: 1 1 0; min-width: 148px; border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); background: var(--fpt-surface); padding: 12px; display: flex; flex-direction: column; gap: 8px; border-top-width: 3px; }
.fpt-flow-phase[data-state='done'] { border-top-color: #2f9e44; }
.fpt-flow-phase[data-state='running'] { border-top-color: #636366; box-shadow: 0 0 0 3px rgba(60, 60, 67, 0.14); }
.fpt-flow-phase[data-state='waiting'] { border-top-color: #f08c00; box-shadow: 0 0 0 3px rgba(240, 140, 0, 0.14); }
.fpt-flow-phase[data-state='error'] { border-top-color: #c92a2a; }
.fpt-flow-phase > header { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); margin-bottom: 2px; }
.fpt-flow-num { width: 20px; height: 20px; border-radius: 50%; background: var(--fpt-ink); color: var(--fpt-ink-text); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.fpt-flow-node { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--fpt-radius-card); background: var(--fpt-surface-2); font-size: var(--fs-xs); line-height: 1.35; }
.fpt-flow-node svg { flex: 0 0 16px; margin-top: 1px; }
.fpt-flow-node b { display: block; font-weight: var(--fw-semibold); }
.fpt-flow-node span { color: var(--fpt-dim); font-size: var(--fs-xs); }
.fpt-flow-node[data-state='pending'], .fpt-flow-node[data-state='skipped'] { background: transparent; box-shadow: inset 0 0 0 1px var(--sep-strong); }
.fpt-flow-node[data-state='waiting'] { background: var(--pill-amber-bg); }
.fpt-flow-node[data-state='running'] { background: var(--pill-ink-bg); }
.fpt-flow-you { margin-left: 6px; font-size: var(--fs-xs) !important; font-weight: var(--fw-semibold); text-transform: none; padding: 1px 6px; border-radius: var(--r-pill); background: var(--pill-amber-bg); color: var(--pill-amber-fg) !important; }
.fpt-flow-note { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--fpt-dim); margin-top: auto; }
.fpt-flow-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
/* ======================================================================== app shell (full bleed) */
.fpt-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fpt-shell { display: flex; height: 100dvh; overflow: hidden; background: var(--fpt-surface); position: relative; }
.fpt-sidebar { position: relative; z-index: 30; width: 264px; flex: 0 0 264px; background: var(--fpt-sidebar); border-right: 1px solid var(--fpt-border); display: flex; min-height: 0; transition: width var(--fpt-dur-2) var(--fpt-ease), flex-basis var(--fpt-dur-2) var(--fpt-ease); }
.fpt-sidebar[data-mode='rail'] { width: 64px; flex-basis: 64px; }
.fpt-shell[data-size='laptop'] .fpt-sidebar { width: 64px; flex-basis: 64px; }
.fpt-shell[data-size='laptop'] .fpt-sidebar[data-overlay='true'] > .fpt-sb { position: absolute; top: 0; left: 0; bottom: 0; width: 264px; background: var(--fpt-sidebar); box-shadow: var(--fpt-shadow-3); border-right: 1px solid var(--fpt-border); }
.fpt-sidebar-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.2); }
.fpt-main { flex: 1 1 auto; min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 0 20px 28px; position: relative; }
.fpt-main[data-reading='true'] > .mantine-Stack-root > :not(.fpt-topbar) { width: 100%; max-width: 1080px; margin-inline: auto; }
/* sidebar */
.fpt-sb { display: flex; flex-direction: column; width: 100%; min-height: 0; height: 100%; padding: 12px 10px 10px; gap: 8px; box-sizing: border-box; }
.fpt-sb[data-mode='rail'] { padding: 12px 8px 10px; align-items: center; }
.fpt-sb-top { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; width: 100%; }
.fpt-sb[data-mode='rail'] .fpt-sb-top { align-items: center; }
.fpt-sb-brand { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px 6px; font-weight: var(--fw-semibold); font-size: var(--fs-base); line-height: 1.25; }
.fpt-sb-brand .fpt-mark { margin: 0; flex: 0 0 34px; }
.fpt-sb-brand-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fpt-sb-brand-name small { color: var(--fpt-dim); font-weight: var(--fw-regular); font-size: var(--fs-xs); }
.fpt-sb-collapse { flex: 0 0 28px; }
.fpt-sb-expand { margin-bottom: 6px; }
.fpt-sb-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; margin: 2px 0 10px; border-radius: var(--r-pill); background: var(--fpt-ink); color: var(--fpt-ink-text); font-size: var(--fs-base); font-weight: var(--fw-semibold); text-decoration: none; }
.fpt-sb-new:hover { opacity: 0.9; }
.fpt-sb-new[data-rail='true'] { width: 40px; height: 40px; padding: 0; }
.fpt-sb-nav { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.fpt-sb[data-mode='rail'] .fpt-sb-nav { align-items: center; }
.fpt-sb[data-mode='rail'] .fpt-nav-item { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
.fpt-nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-nav-whoami { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpt-sb-runs { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--fpt-border); padding-top: 8px; width: 100%; }
.fpt-sb[data-mode='rail'] .fpt-sb-runs { align-items: center; gap: 6px; overflow-y: auto; }
.fpt-sb-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 4px 10px; font-size: var(--fs-xs); text-transform: none; color: var(--fpt-dim); font-weight: var(--fw-semibold); }
.fpt-iconbtn-sm { width: 24px; height: 24px; border-radius: var(--fpt-radius-control); }
.fpt-iconbtn[data-active='true'] { background: var(--fpt-ink); color: var(--fpt-ink-text); border-color: var(--fpt-ink); }
.fpt-sb-runs-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 2px; }
.fpt-sb-group { font-size: var(--fs-xs); text-transform: none; color: var(--fpt-dim); padding: 8px 10px 4px; }
.fpt-sb-group[data-key='needs'] { color: var(--pill-amber-fg); font-weight: var(--fw-semibold); }
.fpt-sb-empty { font-size: var(--fs-xs); color: var(--fpt-dim); padding: 6px 10px; }
.fpt-sb-all { font-size: var(--fs-xs); color: var(--fpt-dim); padding: 8px 10px; text-decoration: none; }
.fpt-sb-all:hover { color: var(--fpt-text); text-decoration: underline; }
.fpt-runitem { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px 4px 10px; border-radius: var(--fpt-radius-card); text-decoration: none; color: var(--fpt-text); }
.fpt-runitem:hover { background: var(--fpt-surface-2); }
.fpt-runitem[aria-current='page'] { background: var(--fpt-surface); box-shadow: inset 0 0 0 1px var(--fpt-border); }
.fpt-runitem[data-compact='true'] { min-height: 36px; width: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.fpt-runitem-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fpt-runitem-title { font-size: var(--fs-base); font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-runitem-sub { font-size: var(--fs-xs); color: var(--fpt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-sb-foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.fpt-sb[data-mode='rail'] .fpt-sb-foot { align-items: center; }
/* status dots */
.fpt-sdot { display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--fpt-status-idle); box-sizing: border-box; }
.fpt-sdot[data-state='queued'], .fpt-sdot[data-state='running'] { background: var(--fpt-status-running); }
.fpt-sdot[data-state='waiting'] { background: var(--fpt-status-waiting); box-shadow: 0 0 0 2px var(--fpt-sidebar), 0 0 0 3.5px var(--fpt-status-waiting); }
.fpt-sdot[data-state='done-ready'], .fpt-sdot[data-state='done'] { background: var(--fpt-status-done); }
.fpt-sdot[data-state='done-notready'], .fpt-sdot[data-state='failed'] { background: var(--fpt-status-failed); }
.fpt-sdot[data-state='done-held'], .fpt-sdot[data-state='paused'] { background: var(--fpt-status-waiting); }
.fpt-sdot[data-state='stopped'], .fpt-sdot[data-state='idle'] { background: var(--fpt-status-idle); }
.fpt-sdot[data-pulse='true'] { animation: fpt-pulse 1.2s ease-in-out infinite; }
/* environment switcher (sidebar footer) and badge */
.fpt-env { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: var(--fpt-radius-card); text-align: left; font-size: var(--fs-xs); line-height: 1.35;
background: var(--fpt-env-practice-bg); color: var(--fpt-env-practice-fg); }
.fpt-env[data-kind='fusion'] { background: var(--fpt-env-fusion-bg); color: var(--fpt-env-fusion-fg); }
.fpt-env > svg:first-child { flex: 0 0 auto; }
.fpt-env[data-compact='true'] { width: 40px; height: 40px; padding: 0; justify-content: center; }
.fpt-env-label { display: flex; flex-direction: column; min-width: 0; }
.fpt-env-label > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpt-env-label b { font-weight: var(--fw-semibold); }
.fpt-envbadge[data-size='sm'] { font-size: var(--fs-xs); }
.fpt-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fpt-surface); border: 1px solid var(--fpt-border); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--fpt-text); }
/* top bar */
.fpt-topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 20px; margin: 0 -20px; background: var(--fpt-surface); border-bottom: 1px solid var(--fpt-border); box-sizing: border-box; }
.fpt-topbar-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fpt-title { font-family: var(--fpt-font-display); font-size: var(--fs-xl); font-weight: var(--fw-semibold); margin: 0; line-height: var(--lh-xl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpt-topbar-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--fpt-dim); margin-top: 1px; min-width: 0; }
.fpt-topbar-sub .fpt-pill { font-size: var(--fs-xs); line-height: 16px; }
.fpt-topbar-dotsep { color: var(--fpt-dim); }
.fpt-topbar-cue { display: inline-flex; align-items: center; gap: 6px; color: var(--pill-amber-fg); }
.fpt-crumb { font-size: var(--fs-xs); color: var(--fpt-dim); display: inline-flex; gap: 6px; align-items: center; }
.fpt-crumb a { color: inherit; text-decoration: none; }
.fpt-crumb a:hover { text-decoration: underline; color: var(--fpt-text); }
.fpt-topbar-mid { flex: 0 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.fpt-topbar-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fpt-topbar-menu { flex: 0 0 32px; width: 32px; height: 32px; }
/* phone bottom bar */
.fpt-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
background: var(--fpt-surface); border-top: 1px solid var(--fpt-border); box-sizing: border-box; }
.fpt-bb-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; border: 0; background: transparent; color: var(--fpt-dim); font: inherit; font-size: var(--fs-xs); text-decoration: none; cursor: pointer; }
.fpt-bb-item.active, .fpt-bb-item[data-active='true'] { color: var(--fpt-text); font-weight: var(--fw-semibold); }
.fpt-bb-item .fpt-rail-badge { top: -4px; right: -10px; }
@media (max-width: 1023px) {
.fpt-main { padding: 0 16px 24px; }
.fpt-topbar { margin: 0 -16px; padding: 6px 16px; }
}
@media (max-width: 767px) {
.fpt-main { padding: 0 12px calc(72px + env(safe-area-inset-bottom)); }
.fpt-topbar { margin: 0 -12px; padding: 4px 12px; min-height: 48px; gap: 8px; }
.fpt-topbar { flex-wrap: wrap; row-gap: 4px; }
.fpt-topbar-left { flex: 1 1 55%; }
.fpt-topbar-sub { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.fpt-topbar-sub .fpt-crumb, .fpt-topbar-dotsep { display: none; }
.fpt-topbar-sub:has(.fpt-topbar-cue) { flex-wrap: wrap; }
.fpt-topbar-cue { order: -1; flex: 1 1 100%; }
.fpt-topbar-actions { flex: 0 1 auto; max-width: 100%; margin-left: auto; padding-bottom: 2px; }
.fpt-sticky-bar { bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .fpt-sidebar { transition: none; } }
.fpt-num { font-variant-numeric: tabular-nums; }
/* ======================================================================== run workspace (conversation + context panel) */
.fpt-main:has(> .fpt-ws) { padding: 0; overflow: hidden; }
.fpt-ws { display: flex; height: 100%; min-height: 0; position: relative; }
.fpt-ws-center { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
.fpt-ws .fpt-topbar { margin: 0; position: relative; flex: 0 0 auto; }
.fpt-ws-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; background: var(--fpt-surface); }
.fpt-ws-scroll:focus-visible { outline-offset: -2px; }
.fpt-ws-detail { padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.fpt-detail-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; padding: 4px 16px; background: var(--fpt-surface); border-bottom: 1px solid var(--fpt-border); }
.fpt-detail-title { white-space: nowrap; }
.fpt-detail-switch { margin-left: auto; }
.fpt-detail-switch .mantine-Tabs-list { flex-wrap: nowrap; overflow-x: auto; }
.fpt-statechip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap; background: var(--fpt-surface-2); color: var(--fpt-text); border: 1px solid var(--fpt-border); }
.fpt-statechip[data-state='waiting'] { background: var(--pill-amber-bg); color: var(--pill-amber-fg); border-color: transparent; }
.fpt-statechip[data-state='waiting'] .fpt-sdot { box-shadow: none; }
.fpt-statechip[data-state='running'], .fpt-statechip[data-state='queued'] { background: var(--pill-ink-bg); color: var(--pill-ink-fg); border-color: transparent; }
.fpt-statechip[data-state='failed'] { background: var(--pill-red-bg); color: var(--pill-red-fg); border-color: transparent; }
.fpt-topbar-mock { color: var(--pill-amber-fg); }
.fpt-iconbtn-md { width: 32px; height: 32px; }
/* the thread */
.fpt-ws .fpt-chat-thread { max-width: 920px; }
.fpt-bubble[data-wide='true'] { padding: 0; border: 0; background: transparent; box-shadow: none; }
.fpt-chat-compose { flex: 0 0 auto; }
.fpt-compose-row { display: flex; align-items: center; gap: 8px; }
.fpt-ws .fpt-chat-jump { bottom: 120px; }
/* stage card = the guide */
.fpt-stage { border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); padding: 16px 20px 20px; background: var(--fpt-surface); box-shadow: var(--fpt-shadow-1); }
.fpt-stage[data-stage='approve'], .fpt-stage[data-stage='judge'] { border-left: 3px solid var(--fpt-status-waiting); }
.fpt-stage[data-stage='stopped'] { border-left: 3px solid var(--fpt-status-failed); }
.fpt-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fpt-stage-kicker { font-size: var(--fs-xs); text-transform: none; color: var(--fpt-dim); font-weight: var(--fw-semibold); }
.fpt-stage[data-stage='approve'] .fpt-stage-kicker, .fpt-stage[data-stage='judge'] .fpt-stage-kicker { color: var(--pill-amber-fg); }
.fpt-stage-progress { display: flex; gap: 4px; flex: 0 1 220px; min-width: 120px; }
.fpt-stage-progress span { flex: 1; height: 5px; border-radius: var(--r-pill); background: var(--fpt-border); }
.fpt-stage-progress span[data-state='done'] { background: var(--fpt-status-done); }
.fpt-stage-progress span[data-state='now'] { background: var(--fpt-status-running); }
.fpt-stage-progress span[data-state='you'] { background: var(--fpt-status-waiting); }
/* team strip */
.fpt-team { border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); padding: 10px 12px; background: var(--fpt-surface-2); }
.fpt-team-line { display: flex; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
.fpt-team-label { font-size: var(--fs-xs); text-transform: none; color: var(--fpt-dim); font-weight: var(--fw-semibold); margin-right: 2px; }
.fpt-team-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); background: var(--fpt-surface); border: 1px solid var(--fpt-border); }
.fpt-team-chip[data-kind='done'] svg { color: var(--fpt-status-done); }
.fpt-team-chip[data-kind='running'] { background: var(--pill-ink-bg); color: var(--pill-ink-fg); border-color: transparent; }
.fpt-team-chip[data-kind='waiting'] { background: var(--pill-amber-bg); color: var(--pill-amber-fg); border-color: transparent; font-weight: var(--fw-semibold); }
.fpt-team-chip[data-kind='error'] { background: var(--pill-red-bg); color: var(--pill-red-fg); border-color: transparent; }
.fpt-team-sum { font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-team-link { font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.fpt-team-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: var(--fs-xs); color: var(--fpt-dim); }
/* context panel */
.fpt-panel { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; min-height: 0; background: var(--fpt-surface); border-left: 1px solid var(--fpt-border); }
.fpt-panel-handle { position: absolute; left: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 5; touch-action: none; }
.fpt-panel-handle:hover, .fpt-panel-handle:focus-visible { background: var(--fpt-focus); opacity: 0.5; outline: none; }
.fpt-panel-tabs { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.fpt-panel-head { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px 0 4px; border-bottom: 1px solid var(--fpt-border); flex: 0 0 auto; }
.fpt-panel-tablist { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.fpt-panel-tablist::before { display: none; }
.fpt-panel-tablist .mantine-Tabs-tab { font-size: var(--fs-base); padding: 10px 10px; white-space: nowrap; }
.fpt-panel-tablabel { display: inline-flex; align-items: center; gap: 6px; }
.fpt-panel-count { font-size: var(--fs-xs); padding: 0 6px; border-radius: var(--r-pill); background: var(--pill-neutral-bg); color: var(--pill-neutral-fg); line-height: 16px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.fpt-panel-livedot { width: 8px; height: 8px; flex-basis: 8px; }
.fpt-panel-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; }
.fpt-panel-strip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; }
.fpt-panel-stripbtn { position: relative; width: 34px; height: 34px; border-radius: var(--fpt-radius-card); border: 0; background: transparent; color: var(--fpt-dim); display: grid; place-items: center; cursor: pointer; }
.fpt-panel-stripbtn:hover { background: var(--fpt-surface-2); color: var(--fpt-text); }
.fpt-panel-stripbtn[data-active='true'] { color: var(--fpt-text); }
.fpt-panel-stripbadge { position: absolute; top: 1px; right: 1px; display: flex; }
.fpt-panel-stripbadge .fpt-panel-count { display: none; }
.fpt-grab { width: 40px; height: 4px; border-radius: var(--fpt-radius-control); background: var(--fpt-line); margin: 8px auto 2px; flex: 0 0 auto; }
.fpt-panel-tabs[data-sheet='true'] { height: 100%; }
.fpt-cols[data-compact='true'] { flex-direction: column; }
.fpt-cols[data-compact='true'] .fpt-side { width: 100%; flex: 1 1 auto; }
.fpt-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: var(--fs-base); }
.fpt-kv dt { color: var(--fpt-dim); }
.fpt-kv dd { margin: 0; font-weight: var(--fw-semibold); }
/* empty state */
@media (max-width: 1023px) {
.fpt-ws-detail { padding: 12px 16px 24px; }
}
@media (max-width: 767px) {
.fpt-main:has(> .fpt-ws) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.fpt-ws .fpt-topbar { padding: 4px 12px; }
.fpt-ws-detail { padding: 10px 12px 20px; }
.fpt-ws .fpt-chat-thread { padding: 12px 10px 8px; }
.fpt-chat-compose { padding: 8px 10px 10px; }
.fpt-chat-suggest { flex-wrap: nowrap; overflow-x: auto; }
.fpt-chat-suggest button { flex: 0 0 auto; }
.fpt-compose-row { flex-wrap: wrap; }
.fpt-stage { padding: 16px 16px 16px; }
.fpt-stage [data-testid='guide-approve-all'] { width: 100%; }
.fpt-topbar-mid .fpt-statechip { font-size: var(--fs-xs); }
}
.fpt-topbar-mid { overflow: hidden; }
.fpt-statechip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fpt-panel-tablist .mantine-Tabs-tab { border-radius: 0; }
@media (max-width: 767px) {
/* phone run top bar: two rows, max 76px (title + Panel + More; then chip, honesty pill, ref) */
.fpt-ws .fpt-topbar { flex-wrap: nowrap; max-height: 76px; min-height: 0; padding: 4px 12px 4px; align-items: flex-start; }
.fpt-ws .fpt-topbar-left { flex: 1 1 auto; }
.fpt-ws .fpt-title { font-size: var(--fs-lg); line-height: 36px; }
.fpt-ws .fpt-topbar-sub { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; height: 28px; margin-top: 0; scrollbar-width: none; }
.fpt-ws .fpt-topbar-sub::-webkit-scrollbar { display: none; }
.fpt-ws .fpt-topbar-sub > * { flex: 0 0 auto; }
.fpt-ws .fpt-topbar-actions { gap: 6px; flex-wrap: nowrap; margin-left: 0; padding-bottom: 0; }
}
.fpt-ws[data-size='phone'] .fpt-iconbtn-md { width: 36px; height: 36px; }
/* ---- review 1 ---- */
/* S1: run top bar = 2 rows: title + state chip (+ actions on the right), then the sub-line on one line */
.fpt-topbar-row1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fpt-topbar-row1 .fpt-title { flex: 0 1 auto; min-width: 0; }
.fpt-topbar-row1 .fpt-topbar-mid { flex: 0 1 auto; }
@media (min-width: 768px) {
.fpt-ws .fpt-topbar { align-items: flex-start; max-height: 64px; padding-top: 6px; padding-bottom: 6px; }
.fpt-ws .fpt-title { line-height: 28px; }
.fpt-ws .fpt-topbar-sub { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.fpt-ws .fpt-topbar-sub > * { flex: 0 0 auto; }
.fpt-ws .fpt-topbar-sub > .fpt-topbar-trunc { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fpt-ws .fpt-topbar-actions { flex-wrap: nowrap; min-height: 28px; }
}
@media (min-width: 768px) and (max-width: 1279px) { .fpt-ws .fpt-topbar { max-height: 68px; } }
/* S2: detail sub-header in one row */
.fpt-detail-head { flex-wrap: nowrap; }
.fpt-detail-switch { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.fpt-detail-switch::-webkit-scrollbar { display: none; }
/* S3: Mantine's focus ring uses our focus colour */
.mantine-focus-auto:focus-visible, .mantine-focus-always:focus { outline: 2px solid var(--fpt-focus); outline-offset: 2px; }
.fpt-linkbtn { border: 0; padding: 0; background: none; color: inherit; font: inherit; font-weight: var(--fw-semibold); text-decoration: underline; cursor: pointer; }
.fpt-topbar-row1 .fpt-topbar-mid { display: flex; align-items: center; gap: 6px; }
.fpt-topbar-row1 .fpt-topbar-mid > :not(.fpt-statechip) { flex: 0 0 auto; }
.fpt-topbar-row1 .fpt-topbar-mid > .fpt-statechip { flex: 0 1 auto; }
.fpt-topbar-row1 .fpt-title { min-width: 120px; }
/* ======================================================================== team board (step 3) */
.fpt-teamboard { display: flex; flex-direction: column; gap: 12px; container-type: inline-size; container-name: board; }
.fpt-coord { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--fpt-border); border-left-width: 3px; border-radius: var(--fpt-radius-card); background: var(--fpt-surface); }
.fpt-coord[data-tone='green'] { border-left-color: var(--fpt-status-done); }
.fpt-coord[data-tone='red'] { border-left-color: var(--fpt-status-failed); }
.fpt-coord[data-tone='amber'] { border-left-color: var(--fpt-status-waiting); background: var(--pill-amber-bg); color: var(--pill-amber-fg); }
.fpt-coord[data-tone='ink'] { border-left-color: var(--fpt-status-running); }
/* columns follow the board's own width (R2-M2): 1, 3 (x2 rows) or 6; never a sideways scroll. A column of 172px leaves a 160px card. */
.fpt-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
@container board (min-width: 532px) { .fpt-board { grid-template-columns: repeat(3, minmax(172px, 1fr)); } }
@container board (min-width: 1072px) { .fpt-board { grid-template-columns: repeat(6, minmax(172px, 1fr)); } }
.fpt-board-phase { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 6px; border: 1px solid var(--fpt-border); border-top-width: 3px; border-radius: var(--fpt-radius-card); background: var(--fpt-surface-2); }
.fpt-board-phase[data-state='done'] { border-top-color: var(--fpt-status-done); }
.fpt-board-phase[data-state='running'] { border-top-color: var(--fpt-status-running); }
.fpt-board-phase[data-state='waiting'] { border-top-color: var(--fpt-status-waiting); }
.fpt-board-phase[data-state='error'] { border-top-color: var(--fpt-status-failed); }
.fpt-board-phase > header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0; font-size: var(--fs-xs); text-transform: none; }
.fpt-board-cards { display: flex; flex-direction: column; gap: 8px; }
.fpt-agent { position: relative; border: 1px solid var(--fpt-border); border-radius: var(--fpt-radius-card); background: var(--fpt-surface); transition: box-shadow var(--fpt-dur-1) var(--fpt-ease); }
.fpt-agent:hover { box-shadow: var(--fpt-shadow-1); }
.fpt-agent[data-state='running'] { border-color: var(--fpt-status-running); }
.fpt-agent[data-state='waiting'], .fpt-agent[data-state='silent'] { border-color: var(--fpt-status-waiting); }
.fpt-agent[data-state='error'] { border-top: 3px solid var(--fpt-status-failed); }
.fpt-agent-btn { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 10px 10px; text-align: left; border-radius: var(--fpt-radius-card); color: var(--fpt-text); }
.fpt-agent-btn[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--fpt-ink); }
.fpt-agent-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fpt-agent-avatar { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: var(--fw-semibold); background: var(--pill-neutral-bg); color: var(--pill-neutral-fg); }
.fpt-agent-avatar[data-tone='mint'] { background: var(--pill-mint-bg); color: var(--pill-mint-fg); }
.fpt-agent-avatar[data-tone='ink'] { background: var(--pill-ink-bg); color: var(--pill-ink-fg); }
.fpt-agent-avatar[data-tone='lav'] { background: var(--pill-lav-bg); color: var(--pill-lav-fg); }
.fpt-agent-avatar[data-tone='amber'] { background: var(--pill-amber-bg); color: var(--pill-amber-fg); }
/* R2-M3: names wrap only at spaces */
.fpt-agent-name { font-size: var(--fs-base); font-weight: var(--fw-semibold); min-width: 0; line-height: 1.3; word-break: normal; overflow-wrap: normal; hyphens: manual; }
.fpt-agent-top:has(.fpt-agent-you) .fpt-agent-name { padding-right: 32px; }
.fpt-agent-you { position: absolute; top: 8px; right: 8px; margin: 0 !important; }
.fpt-agent { min-width: 160px; }
.fpt-agent-foot-static { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fpt-agent-now { margin-left: auto; text-align: right; color: var(--fpt-text); }
.fpt-agent-line { font-size: var(--fs-xs); line-height: 1.4; color: var(--fpt-text); overflow-wrap: anywhere; }
.fpt-agent-state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.fpt-agent-state[data-state='waiting'], .fpt-agent-state[data-state='silent'] { color: var(--pill-amber-fg); }
.fpt-agent-state[data-state='error'] { color: var(--pill-red-fg); }
.fpt-agent-state[data-state='running'] { color: var(--pill-ink-fg); }
.fpt-agent-foot { font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-agent-action { padding: 0 10px 10px; }
.fpt-agent-pop { font-size: var(--fs-base); }
.fpt-agent-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .fpt-agent { transition: none; } }
/* ---- review 2 should-fixes ---- */
/* R2-S1: the run top bar sizes its chip and actions by its own width */
.fpt-ws .fpt-topbar { container-type: inline-size; container-name: topbar; }
.fpt-topbar-row1 .fpt-title { flex: 0 1 auto; min-width: min(50%, 320px); }
.fpt-chip-short { display: none; }
.fpt-topbar .fpt-narrow-only { display: none; }
@container topbar (max-width: 760px) {
.fpt-chip-long { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fpt-chip-short { display: inline; }
.fpt-topbar .fpt-wide-only { display: none; }
.fpt-topbar .fpt-narrow-only { display: flex; }
}
.fpt-topbar .mantine-Menu-dropdown { z-index: 300; }
/* R2-S2: paused is amber, cancelled grey */
.fpt-agent[data-state='paused'] { border-color: var(--fpt-status-waiting); }
.fpt-agent-state[data-state='paused'] { color: var(--pill-amber-fg); }
.fpt-agent-state[data-state='cancelled'] { color: var(--fpt-dim); }
.fpt-coord[data-tone='neutral'] { border-left-color: var(--fpt-status-idle); }
/* R2-S4: rows that scroll sideways fade at their edges */
.fpt-fade-x, .fpt-panel-tablist, .fpt-ws .fpt-topbar-sub {
-webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.fpt-fade-x .mantine-Tabs-list, .fpt-panel-tablist { padding-inline: 16px; }
@media (min-width: 768px) { .fpt-ws .fpt-topbar-sub { -webkit-mask-image: none; mask-image: none; } }
/* ======================================================================== step 4: approvals and failure decision */
.fpt-filterchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fpt-filterchip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--fpt-border); background: var(--fpt-surface); color: var(--fpt-text); font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.fpt-filterchip:hover:not(:disabled) { border-color: var(--fpt-ink); }
.fpt-filterchip[data-active='true'] { background: var(--fpt-ink); color: var(--fpt-ink-text); border-color: var(--fpt-ink); }
.fpt-filterchip:disabled { opacity: 0.5; cursor: default; }
.fpt-filterchip-count { font-size: var(--fs-xs); padding: 0 6px; border-radius: var(--r-pill); background: var(--pill-neutral-bg); color: var(--pill-neutral-fg); line-height: 16px; }
.fpt-filterchip[data-active='true'] .fpt-filterchip-count { background: transparent; color: inherit; }
@media (max-width: 767px) { .fpt-filterchips { flex-wrap: nowrap; overflow-x: auto; padding-inline: 16px; scrollbar-width: none; } .fpt-filterchip { flex: 0 0 auto; min-height: 36px; } }
.fpt-approval { padding: 16px; border-left: 3px solid var(--pill-lav-fg); }
.fpt-approval[data-decision='approve'] { border-left-color: var(--fpt-status-done); }
.fpt-approval[data-decision='skip'] { border-left-color: var(--fpt-status-idle); }
.fpt-dry[data-result='passed'] svg { color: var(--fpt-status-done); }
.fpt-dry[data-result='failed'] svg { color: var(--fpt-status-failed); }
.fpt-dry[data-result='simulated'] svg { color: var(--fpt-status-idle); }
.fpt-notoffered { display: inline-flex; align-items: center; gap: 6px; }
/* Judge: text left, the failed screen right when the card is wide enough; stacked below otherwise */
.fpt-judge { container-type: inline-size; container-name: judge; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container judge (min-width: 640px) { .fpt-judge:has(.fpt-judge-screen > *) { grid-template-columns: minmax(0, 1.4fr) minmax(200px, 1fr); } }
.fpt-judge-screen:empty { display: none; }
.fpt-failshot { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fpt-failshot[data-kind='none'] { align-items: center; text-align: center; padding: 20px 12px; border: 1px dashed var(--fpt-line); border-radius: var(--fpt-radius-card); color: var(--fpt-dim); }
.fpt-failshot-img { display: block; width: 100%; border: 2px solid var(--fpt-status-failed); border-radius: var(--fpt-radius-card); overflow: hidden; background: var(--fpt-surface-2); }
.fpt-failshot-img img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
/* ---- review 3 ---- */
/* R3-S1: an outlined pill = the designed engine, not connected now */
.fpt-pill[data-outline='true'] { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
/* N1 */
.fpt-nowrap { white-space: nowrap; }
/* R3-S3: one order (Approve, then Skip for this patch); a narrow card shortens the visible Skip label */
.fpt-approval { container-type: inline-size; container-name: approval; }
.fpt-skip-short { display: none; }
@container approval (max-width: 359.98px) { .fpt-skip-long { display: none; } .fpt-skip-short { display: inline; } }
/* R3-S5 + deviation 3: when the Judge card stacks, a quick simulation gets one dim line instead of the dashed box,
and a browser run's screen is capped at 220px; side by side, the column keeps its empty state */
.fpt-judge-noscreen { display: flex; align-items: center; gap: 6px; font-size: var(--fs-base); color: var(--fpt-dim); }
@container judge (max-width: 639.98px) {
.fpt-judge-screen:has(.fpt-failshot[data-kind='none']) { display: none; }
.fpt-judge .fpt-failshot-img img { max-height: 220px; }
}
@container judge (min-width: 640px) { .fpt-judge-noscreen { display: none; } }
/* R3-S6: the raw error stays available under "Technical details" */
.fpt-agent-tech { padding: 0 10px 10px; font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-agent-tech summary { cursor: pointer; }
.fpt-agent-tech code { display: block; margin-top: 4px; font-family: var(--fpt-mono); font-size: var(--fs-xs); line-height: var(--lh-xs); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fpt-text); }
/* ======================================================================== step 5: result, report, readiness cockpit */
.fpt-verdict { font-size: var(--fs-xl); line-height: 1.25; }
.fpt-report { max-width: 880px; }
.fpt-signed { color: var(--pill-green-fg); background: var(--pill-green-bg); padding: 6px 10px; border-radius: var(--fpt-radius-card); }
.fpt-report-honesty { padding: 10px 16px; border-radius: var(--fpt-radius-card); background: var(--fpt-env-practice-bg); color: var(--fpt-env-practice-fg); }
.fpt-report-honesty[data-tone='fusion'] { background: var(--fpt-env-fusion-bg); color: var(--fpt-env-fusion-fg); }
.fpt-release { padding: 12px 16px; border-radius: var(--fpt-radius-card); background: var(--fpt-band); border: 1px solid var(--fpt-border); }
.fpt-release-line { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; font-size: var(--fs-base); }
.fpt-release-kicker { font-size: var(--fs-xs); text-transform: none; font-weight: var(--fw-semibold); }
.fpt-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fpt-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: var(--fpt-radius-card); border: 1px solid var(--fpt-border); border-left: 4px solid var(--fpt-status-idle); background: var(--fpt-surface); color: var(--fpt-text); font: inherit; text-align: left; cursor: pointer; }
.fpt-kpi[data-tone='green'] { border-left-color: var(--fpt-status-done); }
.fpt-kpi[data-tone='red'] { border-left-color: var(--fpt-status-failed); }
.fpt-kpi[data-tone='amber'] { border-left-color: var(--fpt-status-waiting); }
.fpt-kpi[data-tone='ink'] { border-left-color: var(--fpt-status-running); }
.fpt-kpi:hover { box-shadow: var(--fpt-shadow-1); }
.fpt-kpi[aria-pressed='true'] { background: var(--fpt-surface-2); box-shadow: inset 0 0 0 2px var(--fpt-ink); }
.fpt-kpi[data-zero='true'] { opacity: 0.55; }
.fpt-kpi-n { font-size: var(--fs-xl); font-weight: var(--fw-semibold); line-height: 1.1; }
.fpt-kpi-label { font-size: var(--fs-xs); color: var(--fpt-dim); }
@media (max-width: 767px) { .fpt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fpt-needs { padding: 10px 16px; }
.fpt-needs-head, .fpt-section-kicker { font-size: var(--fs-xs); text-transform: none; font-weight: var(--fw-semibold); color: var(--fpt-dim); }
.fpt-needs-head { color: var(--pill-amber-fg); margin-bottom: 4px; }
.fpt-needs-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--fpt-border); }
.fpt-needs-row:first-of-type { border-top: 0; }
.fpt-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; align-items: start; }
/* ======================================================================== UI-SIMPLIFY: calm overrides (shell, run workspace, panel, auth) */
body { background: var(--fpt-surface); }
.fpt-card { box-shadow: none; }
/* shell */
.fpt-sb-brand .fpt-mark { width: 24px; height: 24px; flex: 0 0 24px; border-radius: var(--fpt-radius-control); background: transparent; color: var(--fpt-dim); box-shadow: inset 0 0 0 1px var(--fpt-line); font-size: var(--fs-xs); }
.fpt-sb-new { background: var(--fpt-surface); color: var(--fpt-text); box-shadow: inset 0 0 0 1px var(--fpt-border); border-radius: var(--fpt-radius-card); font-weight: var(--fw-semibold); }
.fpt-sb-new:hover { opacity: 1; background: var(--fpt-surface-2); }
.fpt-nav-item[data-active='true'] { background: var(--fpt-selected); color: var(--fpt-accent); }
.fpt-nav-item[data-active='true'] .fpt-kbd { color: var(--fpt-dim); }
.fpt-nav-badge { background: transparent; color: var(--pill-amber-fg); font-weight: var(--fw-semibold); }
.fpt-rail-badge { background: var(--fpt-status-waiting); }
.fpt-sb-runs { border-top: 1px solid var(--fpt-border); padding-top: 6px; }
.fpt-sb-group { color: var(--fpt-dim); font-weight: var(--fw-semibold); letter-spacing: 0; padding: 10px 10px 4px; }
.fpt-sb-group[data-key='needs'] { color: var(--fpt-text); }
.fpt-runitem { min-height: 42px; padding: 4px 10px; }
.fpt-runitem[aria-current='page'] { background: var(--fpt-selected); box-shadow: none; }
.fpt-runitem-state { display: inline-flex; align-items: center; gap: 6px; }
.fpt-runitem-state[data-state='waiting'] { color: var(--fpt-text); font-weight: var(--fw-semibold); }
.fpt-sb-show { display: flex; align-items: center; gap: 4px; padding: 6px 10px 2px; font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-sb-show button { border: 0; background: transparent; color: var(--fpt-dim); font: inherit; padding: 2px 6px; border-radius: var(--fpt-radius-control); cursor: pointer; }
.fpt-sb-show button[aria-pressed='true'] { color: var(--fpt-accent); background: var(--fpt-selected); font-weight: var(--fw-semibold); }
/* environment cue: amber text (practice) or neutral text (Fusion), no fill */
.fpt-env, .fpt-env[data-kind='fusion'] { background: transparent; padding: 6px 8px; border-radius: var(--fpt-radius-card); }
.fpt-env:hover { background: var(--fpt-surface-2); }
.fpt-env:not([data-kind='fusion']) { color: var(--pill-amber-fg); }
.fpt-env[data-kind='fusion'] { color: var(--fpt-text); }
.fpt-env-label > span { white-space: normal; }
.fpt-env-name { color: var(--fpt-dim); font-size: var(--fs-xs); }
.fpt-envbadge, .fpt-envbadge[data-tone] { background: transparent !important; padding: 0; font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.fpt-envbadge[data-tone='amber'] { color: var(--pill-amber-fg); }
.fpt-mock { background: transparent; color: var(--pill-amber-fg); padding: 0; font-size: var(--fs-xs); }
.fpt-topbar-cue { color: var(--pill-amber-fg); }
.fpt-idpill { background: transparent; color: var(--fpt-dim); font-family: var(--fpt-mono); padding: 0 4px; }
/* status chip and verdict chip: a neutral chip with a dot and a word; verdict words carry the status colour */
.fpt-statechip, .fpt-statechip[data-state] { background: transparent; border: 1px solid var(--fpt-border); color: var(--fpt-text); }
.fpt-statechip[data-state='waiting'], .fpt-statechip[data-state='paused'] { color: var(--pill-amber-fg); border-color: var(--fpt-border); }
.fpt-statechip[data-state='failed'] { color: var(--pill-red-fg); }
.fpt-dchip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid var(--fpt-border); font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap; color: var(--fpt-dim); line-height: 20px; }
.fpt-dchip[data-tone='green'] { color: var(--pill-green-fg); }
.fpt-dchip[data-tone='red'] { color: var(--pill-red-fg); }
.fpt-dchip[data-tone='amber'] { color: var(--pill-amber-fg); }
.fpt-dchip-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 8px; }
.fpt-dchip[data-size='lg'], .fpt-dchip[data-size='xl'] { font-size: var(--fs-base); padding: 4px 12px; }
.fpt-ruleresult { font-size: var(--fs-xs); color: var(--fpt-text); }
.fpt-sdot[data-state='queued'], .fpt-sdot[data-state='running'] { background: var(--fpt-status-running); }
/* next-step: a neutral box with a status edge */
.fpt-nextstep { padding: 10px 16px; border: 1px solid var(--fpt-border); border-left: 3px solid var(--fpt-line); border-radius: var(--fpt-radius-card); background: var(--fpt-surface); color: var(--fpt-text); }
.fpt-nextstep[data-tone='amber'] { border-left-color: var(--fpt-status-waiting); }
.fpt-nextstep[data-tone='red'] { border-left-color: var(--fpt-status-failed); }
.fpt-nextstep[data-tone='green'] { border-left-color: var(--fpt-status-done); }
.fpt-nextstep[data-compact='true'] { border: 0; padding: 0; background: transparent; }
.fpt-nextstep[data-compact='true'][data-tone='amber'] { color: var(--pill-amber-fg); }
/* conversation */
.fpt-chat-scroll, .fpt-ws-scroll { background: var(--fpt-surface); }
.fpt-msg-avatar { background: var(--fpt-surface-2); color: var(--fpt-dim); box-shadow: inset 0 0 0 1px var(--fpt-border); width: 26px; height: 26px; flex-basis: 26px; font-size: var(--fs-xs); }
.fpt-msg[data-who='bot'] + .fpt-msg[data-who='bot'] .fpt-msg-avatar { visibility: hidden; }
.fpt-bubble { box-shadow: none; }
.fpt-msg[data-who='you'] .fpt-bubble { background: var(--fpt-surface-2); color: var(--fpt-text); border: 1px solid var(--fpt-border); }
.fpt-chat-phase { color: var(--fpt-dim); font-size: var(--fs-xs); letter-spacing: 0; }
.fpt-stage { box-shadow: none; border-radius: var(--fpt-radius-card); }
.fpt-stage[data-stage='stopped'] { border-left: 1px solid var(--fpt-border); }
.fpt-stage-kicker, .fpt-stage[data-stage='approve'] .fpt-stage-kicker, .fpt-stage[data-stage='judge'] .fpt-stage-kicker { color: var(--fpt-dim); font-size: var(--fs-xs); font-weight: var(--fw-regular); letter-spacing: 0; }
.fpt-stage-progress span[data-state='done'] { background: var(--fpt-text); opacity: 0.4; }
.fpt-stage-progress span[data-state='now'], .fpt-stage-progress span[data-state='you'] { background: var(--fpt-accent); opacity: 1; }
.fpt-team { background: transparent; border: 0; padding: 0; }
.fpt-team-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: normal; overflow: visible; font-size: var(--fs-base); }
.fpt-team-icon { color: var(--fpt-dim); flex: 0 0 auto; }
.fpt-team-icon[data-kind='waiting'] { color: var(--fpt-status-waiting); }
.fpt-team-icon[data-kind='error'] { color: var(--fpt-status-failed); }
.fpt-team-sum { color: var(--fpt-text); font-size: var(--fs-base); }
.fpt-chat-suggest button { background: transparent; border: 0; color: var(--fpt-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fpt-line); padding: 2px 6px; }
.fpt-chat-suggest button:hover { text-decoration-color: var(--fpt-text); }
.fpt-result { padding: 0; background: transparent; }
.fpt-result[data-tone='green'] .fpt-verdict { color: var(--pill-green-fg); }
.fpt-result[data-tone='red'] .fpt-verdict { color: var(--pill-red-fg); }
.fpt-result[data-tone='amber'] .fpt-verdict { color: var(--pill-amber-fg); }
.fpt-result-facts [data-fail='true'] { color: var(--pill-red-fg); }
.fpt-pill { border-radius: var(--fpt-radius-control); }
/* side panel: the active tab is an accent underline */
.fpt-panel-tablist .mantine-Tabs-tab[data-active] { color: var(--fpt-accent); border-bottom-color: var(--fpt-accent); }
.mantine-Tabs-tab[data-active] { --tab-border-color: var(--fpt-accent); }
/* pills tabs (detail switcher): the selected view uses the selected background, not a filled pill */
.mantine-Tabs-tab[data-variant='pills'][data-active] { background: var(--fpt-selected); color: var(--fpt-accent); }
:root[data-mantine-color-scheme='dark'] .mantine-Tabs-tab[data-variant='pills'][data-active] { color: var(--fpt-accent); }
/* sign-in pages: a quiet panel instead of the dark gradient */
.fpt-auth-brand { background: var(--fpt-surface-2); color: var(--fpt-text); border-right: 1px solid var(--fpt-border); }
.fpt-auth-brand p, .fpt-auth-points li { color: var(--fpt-dim); }
.fpt-auth-points li b { color: var(--fpt-text); }
.fpt-auth-points svg { color: var(--fpt-dim); }
.fpt-auth-mark { background: transparent; color: var(--fpt-dim); box-shadow: inset 0 0 0 1px var(--fpt-line); }
.fpt-auth-foot { color: var(--fpt-dim); }
/* tertiary (subtle) buttons use the text colour; the accent stays for the primary action */
.mantine-Button-root[data-variant='subtle'][style*='--mantine-color-accent'] { --button-color: var(--fpt-text) !important; }
.fpt-runitem-state .fpt-sdot { box-shadow: none; }
/* ======================================================================== UI-SIMPLIFY: team board (3.4) */
.fpt-agent-avatar, .fpt-agent-avatar[data-tone] { background: var(--fpt-surface-2); color: var(--fpt-dim); box-shadow: inset 0 0 0 1px var(--fpt-border); }
.fpt-board-phase, .fpt-board-phase[data-state] { border-top-width: 1px; border-top-color: var(--fpt-border); background: var(--fpt-surface-2); }
.fpt-board-phase > header { justify-content: space-between; font-size: var(--fs-base); }
.fpt-board-phase-done { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--fpt-dim); font-weight: var(--fw-regular); }
.fpt-board-phase[data-state='done'] .fpt-agent-state[data-state='done'] { display: none; }
.fpt-agent, .fpt-agent[data-state] { border: 1px solid var(--fpt-border); }
.fpt-agent[data-state='waiting'], .fpt-agent[data-state='silent'], .fpt-agent[data-state='paused'] { border-left: 3px solid var(--fpt-status-waiting); }
.fpt-agent[data-state='error'] { border-left: 3px solid var(--fpt-status-failed); }
.fpt-agent-state[data-state='running'], .fpt-agent-state[data-state='done'] { color: var(--fpt-text); }
.fpt-agent-state[data-state='done'] svg { color: var(--fpt-dim); }
.fpt-agent-you { position: absolute; top: 9px; right: 10px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--fpt-text); }
.fpt-agent-foot { display: flex; flex-direction: column; gap: 1px; }
.fpt-agent-btn[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--fpt-accent); }
.fpt-coord, .fpt-coord[data-tone] { background: var(--fpt-surface); color: var(--fpt-text); border-left-width: 1px; border-left-color: var(--fpt-border); }
.fpt-coord[data-tone='amber'] { border-left: 3px solid var(--fpt-status-waiting); }
.fpt-coord[data-tone='red'] { border-left: 3px solid var(--fpt-status-failed); }
.fpt-flow-legend svg { color: var(--fpt-dim); }
/* ======================================================================== UI-SIMPLIFY: pills and approvals (3.5) */
/* a pill is a neutral outlined chip; a status tone is a dot and a coloured word, never a fill */
.fpt-pill, .fpt-pill[data-tone] { background: transparent; box-shadow: inset 0 0 0 1px var(--fpt-border); color: var(--fpt-dim); font-weight: var(--fw-regular); }
.fpt-pill[data-tone='green'], .fpt-pill[data-tone='red'], .fpt-pill[data-tone='amber'] { font-weight: var(--fw-semibold); }
.fpt-pill[data-tone='green'] { color: var(--pill-green-fg); }
.fpt-pill[data-tone='red'] { color: var(--pill-red-fg); }
.fpt-pill[data-tone='amber'] { color: var(--pill-amber-fg); }
.fpt-pill[data-tone='green']:not(:has(svg))::before, .fpt-pill[data-tone='red']:not(:has(svg))::before, .fpt-pill[data-tone='amber']:not(:has(svg))::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.fpt-aitext { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--fpt-dim); white-space: nowrap; }
.fpt-prio { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--fpt-text); white-space: nowrap; }
.fpt-dimtext { font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-statustext { font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap; }
.fpt-statustext[data-tone='red'] { color: var(--pill-red-fg); }
.fpt-statustext[data-tone='green'] { color: var(--pill-green-fg); }
.fpt-statustext[data-tone='amber'] { color: var(--pill-amber-fg); }
.fpt-dryok { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--fpt-text); white-space: nowrap; }
.fpt-dryok svg { color: var(--fpt-status-done); }
.fpt-approval, .fpt-approval[data-decision] { border-left: 1px solid var(--fpt-border); }
.fpt-filterchip { border-radius: var(--fpt-radius-card); }
.fpt-filterchip:hover:not(:disabled) { border-color: var(--fpt-line); }
.fpt-filterchip[data-active='true'] { background: var(--fpt-selected); color: var(--fpt-accent); border-color: var(--fpt-accent); font-weight: var(--fw-semibold); }
.fpt-filterchip-count, .fpt-filterchip[data-active='true'] .fpt-filterchip-count { background: transparent; color: var(--fpt-dim); padding: 0; }
/* ======================================================================== UI-SIMPLIFY: report (3.7) */
.fpt-signed { color: var(--fpt-text); background: transparent; padding: 0; }
.fpt-signed svg { color: var(--fpt-status-done); }
.fpt-nocov { font-style: italic; color: var(--fpt-dim); white-space: nowrap; }
.fpt-report .mantine-Table-thead { background: var(--fpt-surface-2); }
.fpt-report .mantine-Table-th { font-weight: var(--fw-semibold); }
/* ======================================================================== UI-SIMPLIFY: patch readiness (3.8) */
.fpt-release-line { display: inline; font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-area { padding: 20px; }
.fpt-verdictword { font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--fpt-dim); white-space: nowrap; }
.fpt-verdictword[data-tone='green'] { color: var(--pill-green-fg); }
.fpt-verdictword[data-tone='red'] { color: var(--pill-red-fg); }
.fpt-verdictword[data-tone='amber'] { color: var(--pill-amber-fg); }
.fpt-area-newer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: var(--fpt-text); }
.fpt-area-newer svg { color: var(--fpt-dim); flex: 0 0 auto; }
.fpt-area-newer[data-waiting] { color: var(--pill-amber-fg); }
.fpt-area-newer[data-waiting] svg { color: var(--fpt-status-waiting); }
.fpt-textlink { color: var(--fpt-text); text-decoration: underline; text-decoration-color: var(--fpt-line); text-underline-offset: 3px; background: none; border: 0; padding: 0 4px; font: inherit; font-size: var(--fs-base); cursor: pointer; }
.fpt-textlink:hover { text-decoration-color: var(--fpt-text); }
/* process steps: neutral text chips; only a failing step is red, a gap is dim italic */
.fpt-pill[data-state] { color: var(--fpt-text); font-weight: var(--fw-regular); }
.fpt-pill[data-state] svg { color: var(--fpt-dim); }
.fpt-pill[data-state]::before { display: none; }
.fpt-pill[data-state='failing'] { color: var(--pill-red-fg); font-weight: var(--fw-semibold); }
.fpt-pill[data-state='failing'] svg { color: var(--pill-red-fg); }
.fpt-pill[data-state='gap'] { color: var(--fpt-dim); font-style: italic; box-shadow: inset 0 0 0 1px var(--fpt-border); }
.fpt-pill[data-state='not_affected'] { color: var(--fpt-dim); }
/* ======================================================================== UI-SIMPLIFY: test runs list (3.9) and step 6-7 pages */
.fpt-pagedesc { font-size: var(--fs-xs); color: var(--fpt-dim); }
.fpt-pagedesc a { color: var(--fpt-text); }
.fpt-runrow { flex-wrap: wrap; align-items: center; }
.fpt-runrow-top { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.fpt-runrow-title { text-decoration: none; color: var(--fpt-text); font-weight: var(--fw-semibold); font-size: var(--fs-base); }
.fpt-runrow-title:hover { text-decoration: underline; }
.fpt-runrow .fpt-runitem-state { font-size: var(--fs-xs); }
.fpt-runrow-sub { margin-top: 2px; }
.fpt-runrow-sub[data-env='mock'] .fpt-runrow-env { color: var(--pill-amber-fg); }
.fpt-dotword { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--fpt-text); white-space: nowrap; }
.fpt-dotword::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--fpt-status-idle); flex: 0 0 8px; }
.fpt-dotword[data-tone='green']::before { background: var(--fpt-status-done); }
.fpt-dotword[data-tone='red'] { color: var(--pill-red-fg); font-weight: var(--fw-semibold); }
.fpt-dotword[data-tone='red']::before { background: var(--fpt-status-failed); }
.fpt-dotword[data-tone='amber'] { color: var(--pill-amber-fg); }
.fpt-dotword[data-tone='amber']::before { background: var(--fpt-status-waiting); }
.fpt-table thead { background: var(--fpt-surface-2); }
.fpt-table th { font-weight: var(--fw-semibold); }
/* scenarios library: a filter column on wide screens, the steps beside the list */
.fpt-lib { display: flex; flex-direction: column; gap: 12px; }
.fpt-lib[data-wide] { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
/* with the steps open, the filters become a bar above the list so the table keeps its width */
.fpt-lib[data-wide][data-open] { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
.fpt-lib[data-wide][data-open] .fpt-libfilters { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-end; position: static; }
.fpt-lib[data-wide][data-open] .fpt-libfilters > * { width: 210px; }
.fpt-libfilters { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 8px; }
.fpt-libfilterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.fpt-libro[data-selected] { background: var(--fpt-selected); }
.fpt-libtitle { font-size: var(--fs-base); color: var(--fpt-text); text-align: left; }
.fpt-libtitle:hover { text-decoration: underline; }
.fpt-libro[data-selected] .fpt-libtitle { color: var(--fpt-accent); font-weight: var(--fw-semibold); }
.fpt-libpanel { padding: 16px; position: sticky; top: 8px; max-height: calc(100dvh - 120px); overflow-y: auto; }
.fpt-reportrow { flex-wrap: wrap; }
.fpt-reportverdicts { display: inline-flex; gap: 10px; flex-wrap: wrap; }
/* test environments */
.fpt-podcard { padding: 16px; }
.fpt-podcard-cue { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--fpt-text); }
.fpt-podcard[data-kind='mock'] .fpt-podcard-cue { color: var(--pill-amber-fg); }
.fpt-podcard-cue svg { flex: 0 0 auto; }
.fpt-podtest { display: flex; align-items: flex-start; gap: 6px; }
.fpt-podtest[data-ok='true'] svg { color: var(--fpt-status-done); flex: 0 0 auto; margin-top: 2px; }
.fpt-podtest[data-ok='false'] { color: var(--pill-red-fg); }
.fpt-podtest[data-ok='false'] svg { flex: 0 0 auto; margin-top: 2px; }
.fpt-podhelp summary { cursor: pointer; font-size: var(--fs-base); color: var(--fpt-text); width: fit-content; }
/* settings: vertical tabs on wide screens */
.fpt-settings-tabs[data-orientation='vertical'] > .mantine-Tabs-list { width: 200px; flex: 0 0 200px; gap: 2px; align-self: flex-start; position: sticky; top: 8px; }
.fpt-settings-tabs[data-orientation='vertical'] > .mantine-Tabs-panel { padding-top: 0 !important; padding-left: 24px; min-width: 0; max-width: 1000px; }
.fpt-settings-tabs .mantine-Tabs-tab { border-radius: var(--fpt-radius-card); justify-content: flex-start; color: var(--fpt-text); }
.fpt-settings-tabs .mantine-Tabs-tab:hover:not([data-active]) { background: var(--fpt-surface-2); }
/* scheduled runs, emergency stop */
.fpt-embedded-only { display: none; }
.fpt-embedded .fpt-embedded-only { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fpt-plainsection { padding-bottom: 16px; border-bottom: 1px solid var(--fpt-border); }
.fpt-danger { padding: 16px; border-color: var(--fpt-status-failed); }
/* phone run header: the practice cue keeps "Mock app, not Oracle Fusion" in view (the shield says it is the practice environment) */
@media (max-width: 767px) { .fpt-ws .fpt-topbar-sub .fpt-env-long { display: none; } }
/* phone top bar: title and actions on row 1, the sub-line (honesty cue first) across the full width on row 2, so the cue is never cut */
@media (max-width: 767px) {
.fpt-topbar, .fpt-ws .fpt-topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; align-items: center; max-height: none; }
.fpt-topbar .fpt-topbar-left { display: contents; }
.fpt-topbar .fpt-topbar-row1 { grid-column: 1; grid-row: 1; min-width: 0; }
.fpt-topbar .fpt-topbar-actions { grid-column: 2; grid-row: 1; margin-left: 0; padding-bottom: 0; }
.fpt-topbar .fpt-topbar-sub { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; white-space: normal; overflow: visible; height: auto; }
.fpt-ws .fpt-topbar .fpt-topbar-sub { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; height: 28px; }
}
/* ======================================================================== Fluent 2 controls (values from @fluentui/tokens; Mantine kept) */
body { background: var(--fpt-surface); font-family: var(--fpt-font); }
h1, h2, h3, h4, .fpt-title { font-family: var(--fpt-font-display); }
code, kbd, pre, samp, .fpt-idpill { font-family: var(--fpt-mono); }
/* focus: Fluent's 2px stroke (strokeFocus2), never a glow */
:focus-visible, .mantine-focus-auto:focus-visible, .mantine-focus-always:focus { outline: 2px solid var(--fpt-focus); outline-offset: 1px; border-radius: var(--fpt-radius-control); }
/* buttons: 14/20 semibold (12/16 when small), 4px corners */
.mantine-Button-root { --button-fz: var(--fs-base) !important; font-weight: var(--fw-semibold); border-radius: var(--fpt-radius-control); }
.mantine-Button-root[style*='compact'] { --button-fz: var(--fs-xs) !important; }
.mantine-Button-root[data-variant='default'] { --button-hover: var(--fpt-hover); color: var(--fpt-text); border-color: var(--fpt-line); }
.mantine-Button-root[data-variant='default']:active:not(:disabled) { background: var(--fpt-selected); }
.mantine-Button-root[style*='--mantine-color-accent-filled']:active:not(:disabled) { background: var(--fpt-accent-pressed) !important; }
.mantine-Button-root[data-variant='subtle'][style*='--mantine-color-accent'] { --button-hover: var(--fpt-hover) !important; }
.mantine-Button-root:disabled, .mantine-Button-root[data-disabled] { color: var(--fpt-disabled); }
.mantine-ActionIcon-root { border-radius: var(--fpt-radius-control); }
.mantine-ActionIcon-root[data-variant='subtle'] { --ai-hover: var(--fpt-hover); }
.fpt-iconbtn { width: 32px; height: 32px; border-radius: var(--fpt-radius-control); border-color: var(--fpt-line); }
.fpt-iconbtn:hover { background: var(--fpt-hover); }
.fpt-iconbtn-md { width: 32px; height: 32px; }
/* inputs: 32px, neutral stroke with the stronger bottom stroke; focus = brand bottom stroke */
.mantine-Input-input { font-size: var(--fs-base) !important; border-radius: var(--fpt-radius-control); border-color: var(--fpt-line); border-bottom-color: var(--fpt-dim); }
.mantine-Input-input:focus, .mantine-Input-input:focus-within, .mantine-Input-input[data-expanded] { border-color: var(--fpt-line); border-bottom-color: var(--fpt-accent); box-shadow: inset 0 -1px 0 var(--fpt-accent); outline: none; }
.mantine-Input-input[data-error] { border-bottom-color: var(--fpt-status-failed); }
.mantine-Input-input::placeholder { color: var(--fpt-dim); }
.mantine-InputWrapper-label { font-size: var(--fs-base); line-height: var(--lh-base); font-weight: var(--fw-semibold); margin-bottom: 4px; }
.mantine-InputWrapper-description { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--fpt-dim); }
.mantine-InputWrapper-error { font-size: var(--fs-xs); }
.mantine-Checkbox-input { border-radius: 2px; border-color: var(--fpt-dim); }
.mantine-Radio-radio { border-color: var(--fpt-dim); }
.mantine-Switch-track { border-color: var(--fpt-dim); }
.mantine-Checkbox-label, .mantine-Radio-label, .mantine-Switch-label { font-size: var(--fs-base); }
.mantine-SegmentedControl-root { border-radius: var(--fpt-radius-control); background: var(--fpt-surface-2); border: 1px solid var(--fpt-border); }
.mantine-SegmentedControl-indicator { border-radius: var(--fpt-radius-control); box-shadow: none; border: 1px solid var(--fpt-line); }
.mantine-SegmentedControl-label { font-size: var(--fs-base); font-weight: var(--fw-regular); }
.mantine-SegmentedControl-label[data-active] { font-weight: var(--fw-semibold); }
.mantine-Badge-root { text-transform: none; font-weight: var(--fw-semibold); border-radius: var(--fpt-radius-control); letter-spacing: 0; }
.mantine-Menu-dropdown, .mantine-Popover-dropdown, .mantine-Combobox-dropdown { border-radius: var(--fpt-radius-card); border-color: var(--fpt-border); }
.mantine-Menu-item { font-size: var(--fs-base); min-height: 32px; border-radius: var(--fpt-radius-control); }
.mantine-Menu-item:hover, .mantine-Menu-item[data-hovered] { background: var(--fpt-hover); }
.mantine-Modal-content, .mantine-Drawer-content { border-radius: var(--fpt-radius-card); }
.mantine-Modal-title, .mantine-Drawer-title { font-family: var(--fpt-font-display); font-size: var(--fs-xl); line-height: var(--lh-xl); font-weight: var(--fw-semibold); }
.mantine-Tooltip-tooltip { font-size: var(--fs-xs); line-height: var(--lh-xs); border-radius: var(--fpt-radius-control); }
.mantine-Accordion-item { border-radius: var(--fpt-radius-card); }
.mantine-Accordion-label { font-size: var(--fs-base); }
.mantine-Alert-root { border-radius: var(--fpt-radius-card); }
.mantine-Anchor-root { color: var(--fpt-accent); }
/* tabs: neutral text, the selected tab in semibold with Fluent's 3px brand indicator */
.mantine-Tabs-tab { font-size: var(--fs-base); font-weight: var(--fw-regular); color: var(--fpt-dim); border-radius: var(--fpt-radius-control); background: transparent; }
.mantine-Tabs-tab:hover:not([data-active]) { background: var(--fpt-hover); color: var(--fpt-text); }
.mantine-Tabs-tab[data-active], .mantine-Tabs-tab[data-variant='pills'][data-active], .fpt-panel-tablist .mantine-Tabs-tab[data-active] {
color: var(--fpt-text); font-weight: var(--fw-semibold); background: transparent; border-color: transparent; --tab-border-color: transparent; box-shadow: inset 0 -3px 0 var(--fpt-accent);
}
:root[data-mantine-color-scheme='dark'] .mantine-Tabs-tab[data-variant='pills'][data-active] { color: var(--fpt-text); }
.mantine-Tabs-list[data-orientation='vertical'] .mantine-Tabs-tab, .fpt-settings-tabs[data-orientation='vertical'] .mantine-Tabs-tab { min-height: 40px; justify-content: flex-start; }
.mantine-Tabs-list[data-orientation='vertical'] .mantine-Tabs-tab[data-active], .fpt-settings-tabs[data-orientation='vertical'] .mantine-Tabs-tab[data-active] {
background: var(--fpt-selected); box-shadow: inset 3px 0 0 var(--fpt-accent);
}
/* left nav (Azure-portal-like): 40px items, selected = neutral selected fill and a 3px brand indicator bar */
.fpt-nav-item { min-height: 40px; border-radius: var(--fpt-radius-control); font-size: var(--fs-base); }
.fpt-nav-item:hover { background: var(--fpt-hover); }
.fpt-nav-item[data-active='true'] { background: var(--fpt-selected); color: var(--fpt-text); font-weight: var(--fw-semibold); }
.fpt-nav-item[data-active='true']::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 20px; margin-top: -10px; border-radius: 2px; background: var(--fpt-accent); }
.fpt-nav-item[data-active='true'] svg { color: var(--fpt-accent); }
.fpt-sb[data-mode='rail'] .fpt-nav-item { width: 40px; height: 40px; }
.fpt-runitem { border-radius: var(--fpt-radius-control); position: relative; }
.fpt-runitem:hover { background: var(--fpt-hover); }
.fpt-runitem[aria-current='page'] { background: var(--fpt-selected); }
.fpt-runitem[aria-current='page']::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 20px; margin-top: -10px; border-radius: 2px; background: var(--fpt-accent); }
.fpt-sb-new { height: 32px; border-radius: var(--fpt-radius-control); box-shadow: inset 0 0 0 1px var(--fpt-line); }
.fpt-sb-new:hover { background: var(--fpt-hover); }
.fpt-env, .fpt-sb-show button { border-radius: var(--fpt-radius-control); }
.fpt-sb, .fpt-rail { background: var(--fpt-sidebar); }
.fpt-bb-item.active, .fpt-bb-item[data-active='true'] { color: var(--fpt-accent); }
/* tables: 40px rows, semibold secondary header text, no zebra, 1px dividers */
.mantine-Table-table { --table-border-color: var(--fpt-border); --table-highlight-on-hover-color: var(--fpt-hover); --table-striped-color: transparent; font-size: var(--fs-base); }
.mantine-Table-tr { height: 40px; }
.mantine-Table-th { color: var(--fpt-dim); font-weight: var(--fw-semibold); font-size: var(--fs-base); background: transparent; }
.mantine-Table-thead { border-bottom: 1px solid var(--fpt-line); }
.fpt-table thead, .fpt-report .mantine-Table-thead { background: transparent; }
/* cards are flat with a 1px stroke; filter toggles are 4px controls */
.fpt-card { border-radius: var(--fpt-radius-card); box-shadow: none; }
.fpt-filterchip { border-radius: var(--fpt-radius-control); min-height: 32px; font-size: var(--fs-base); border-color: var(--fpt-line); }
.fpt-filterchip:hover:not(:disabled) { background: var(--fpt-hover); border-color: var(--fpt-line); }
.fpt-filterchip[data-active='true'] { background: var(--fpt-selected); color: var(--fpt-text); border-color: var(--fpt-accent); box-shadow: inset 0 0 0 1px var(--fpt-accent); }
.fpt-filterchip-count { font-size: var(--fs-xs); }
.fpt-pill { border-radius: var(--fpt-radius-control); font-size: var(--fs-xs); line-height: var(--lh-xs); }
.fpt-dchip { border-radius: var(--fpt-radius-control); }
.fpt-stage, .fpt-bubble { border-radius: var(--fpt-radius-card); }
.fpt-topbar { background: var(--fpt-surface); border-bottom: 1px solid var(--fpt-border); }
.fpt-main, .fpt-shell-main { background: var(--fpt-surface); }
.fpt-textlink, .fpt-linkbtn { color: var(--fpt-accent); text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0ms !important; } }
/* saving to backup storage has stopped (Layout.tsx SavedStateNotice) */
.fpt-savednotice { padding: 8px 16px; background: var(--pill-amber-bg); color: var(--pill-amber-fg); font-size: var(--fs-sm); line-height: 1.4; border-bottom: 1px solid var(--fpt-line, rgba(0,0,0,.12)); }
|