File size: 35,506 Bytes
e9a4c3e e88a3a3 e9a4c3e e88a3a3 e9a4c3e e13472e e9a4c3e e88a3a3 e9a4c3e e88a3a3 e9a4c3e e88a3a3 e9a4c3e e88a3a3 e9a4c3e e88a3a3 e9a4c3e e88a3a3 e9a4c3e e13472e e9a4c3e c72f0a1 e9a4c3e c72f0a1 e9a4c3e c72f0a1 e9a4c3e c72f0a1 e9a4c3e c72f0a1 e9a4c3e c72f0a1 e9a4c3e c72f0a1 e9a4c3e c72f0a1 e9a4c3e e88a3a3 e9a4c3e 85f794d e9a4c3e 85f794d e9a4c3e e13472e e9a4c3e e13472e e9a4c3e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 | /* ---------------------------------------------------------------------------
styles/wave49/connectors.css β W49-T12, ruling R26, contract C4.
THE CONNECTOR MODAL'S SURFACE, in a real stylesheet.
β IT IS A FILE AND NOT AN INLINE const CSS = ... STRING, which is what the
ticket's how asks for and what the graph rules below used to be. A rules
string injected through <style> in a component is invisible to the R5 font
scan (verify_ui.font_literals walks every stylesheet under src), so a literal
font size could ride into the tree unseen, and it re-injects itself on every
mount of the component that owns it.
ββ AND THERE ARE NO BACKTICKS AND NO GLOB IN THIS FILE'S COMMENTS, WHICH IS
NOT A STYLE CHOICE. The first draft wrote a glob for "every stylesheet under
src" the way the rest of the repo does, and that glob spells a comment
TERMINATOR in the middle of a sentence: the header closed nine lines early,
the prose after it became declarations, and lightningcss failed the
production build. That is the exact hazard verify_build's section A is named
for, found by running it.
ββ TRAP 1 β A PORTALLED OVERLAY PAINTS ITS OWN BACKGROUND
([[a-portal-overlay-carries-its-own-surface]]). The wave-48 date editor
rendered TRANSPARENT over the canvas because its class chain missed the one
class that carried a surface. .conn-modal-backdrop therefore carries its own
scrim and .conn-modal its own background; neither inherits one from the
page it was opened from, because it is a direct child of <body>.
ββ TRAP 2 β Z-LAYERING IS A THREE-WAY ORDER
([[z-layering-is-a-three-way-order]]). The stack is DIALOG (--cg-z-record)
under PORTAL STEP (--cg-z-overlay), so a menu opened INSIDE this modal still
paints above it. Tokens only, never a literal number: raising one modal above
one panel is how the step under it got broken last time.
β Tokens only for colour and type as well (DESIGN.md Β§5). Where the record
modal next door writes rgba(25, 34, 46, 0.34), this file derives the same
effect from --lp-ink with color-mix, the idiom --cg-primary-hover
already uses.
--------------------------------------------------------------------------- */
.conn-modal-backdrop {
position: fixed;
inset: 0;
z-index: var(--cg-z-record);
display: grid;
place-items: center;
padding: 24px;
background: color-mix(in srgb, var(--lp-ink) 34%, transparent);
}
/* ββ W52-T03 β WIDENED, owner instruction 23 verbatim: "the connector popup width needs to be
longer." 760px is the OLD number; the fallback calc stays so a narrow viewport still fits with
its 24px margin either side. Nothing inside the panel is a fixed pixel width that would break
wider (the row grid, the field table and the relationship stage are all fluid or scroll their
own overflow), so no other rule in this block needed to move. */
.conn-modal {
width: min(960px, calc(100vw - 48px));
max-height: min(720px, calc(100vh - 48px));
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid color-mix(in srgb, var(--lp-line) 82%, var(--lp-muted));
border-radius: var(--lp-r-lg);
background: var(--lp-surface);
box-shadow:
0 30px 80px color-mix(in srgb, var(--lp-ink) 22%, transparent),
0 4px 18px color-mix(in srgb, var(--lp-ink) 12%, transparent);
color: var(--lp-ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: var(--lp-fs-sm);
/* 150 ms ease-out on opacity and transform only (DESIGN.md Β§4). */
animation: conn-modal-open 150ms cubic-bezier(0.2, 0, 0, 1);
}
.conn-modal:focus {
outline: none;
}
@keyframes conn-modal-open {
from {
opacity: 0;
transform: translateY(6px) scale(0.992);
}
to {
opacity: 1;
transform: none;
}
}
@media (prefers-reduced-motion: reduce) {
.conn-modal {
animation: none;
}
}
.conn-modal-head {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 10px;
padding: 14px 16px;
border-bottom: 1px solid var(--lp-line);
}
.conn-modal-save-actions {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 10px;
}
.conn-modal-save-actions .conn-db-link {
margin-top: 0;
}
.conn-modal-save-actions button:disabled {
opacity: 0.48;
cursor: default;
text-decoration: none;
}
.conn-modal-close:disabled,
.conn-modal-tab:disabled {
opacity: 0.48;
cursor: default;
}
.conn-modal-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
flex: 0 0 34px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface-2);
}
.conn-modal-name {
flex: 1 1 auto;
min-width: 0;
font-size: var(--lp-fs-md);
font-weight: 600;
color: var(--lp-ink);
}
/* The status pill. Blue is the interactive/selected hue, so a STATE reads green
when it is live and neutral otherwise (DESIGN.md Β§3): a connector nobody has
connected is not an error and must not wear red. */
.conn-modal-pill {
flex: 0 0 auto;
padding: 2px 9px;
border-radius: var(--lp-r-pill);
background: var(--lp-surface-2);
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
font-weight: 600;
}
/* The server sends the state lowercase ("connected"), and the CARD pill it sits beside
capitalises it with `.conn-state::first-letter` (index.css). Observation on the running app
caught this rule missing here: the modal read "connected" against the card's "Connected",
one fact spelled two ways on one screen. Sentence case, never `text-transform: uppercase`
(DESIGN.md section 2). */
.conn-modal-pill::first-letter { text-transform: capitalize; }
.conn-modal-pill.is-on {
background: var(--lp-green-tint);
color: var(--lp-green-deep);
}
.conn-modal-pill.is-open {
background: var(--lp-blue-tint);
color: var(--lp-blue-deep);
}
.conn-modal-close {
flex: 0 0 auto;
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border: 1px solid transparent;
border-radius: var(--lp-r-md);
background: transparent;
color: var(--lp-muted);
font: inherit;
cursor: pointer;
}
.conn-modal-close:hover {
background: var(--lp-wash);
color: var(--lp-ink);
}
.conn-modal-close:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 1px;
}
.conn-modal-tabs {
flex: 0 0 auto;
display: flex;
gap: 2px;
padding: 0 10px;
border-bottom: 1px solid var(--lp-line);
}
/* One control shape per rail (DESIGN.md Β§4): every tab is the same quiet button,
selected state carried by ink and an underline rather than by a second shape. */
.conn-modal-tab {
appearance: none;
padding: 9px 12px;
border: 0;
border-bottom: 2px solid transparent;
background: transparent;
color: var(--lp-muted);
font-family: inherit;
font-size: var(--lp-fs-2xs);
font-weight: 600;
cursor: pointer;
}
.conn-modal-tab:hover {
color: var(--lp-ink);
}
.conn-modal-tab[aria-selected="true"] {
color: var(--lp-primary);
border-bottom-color: var(--lp-primary);
}
.conn-modal-tab:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: -2px;
}
.conn-modal-body {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
padding: 16px;
}
.conn-modal-rows {
display: grid;
grid-template-columns: 128px 1fr;
gap: 8px 14px;
margin: 0;
}
.conn-modal-rows dt {
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.conn-modal-rows dd {
margin: 0;
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
}
.conn-modal-creates {
margin: 16px 0 0;
padding: 10px 12px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-wash);
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
}
.conn-modal-note {
margin: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
/* β `.conn-modal-placeholder` STOOD HERE AND IS DELETED BY W49-T14. It painted
the three tabs T13, T14 and T15 replaced, and the last of the three has
landed, so the rule had no element left to reach. A dead rule in a shared
sheet is a rule the next reader restores an element for. */
/* ββ W52-T03 β THE CARD'S SETTINGS DOOR, owner instruction 23: "a long 'setting' button at the
bottom part of the card that spans from left to right of the card." It is a real button so the
keyboard can reach it and so focus has somewhere to RETURN to when the modal closes.
β THIS RULE USED TO SHAPE THE WHOLE-CARD-OPENING HEAD BUTTON (W49-T12, R26) β mark, name and
state chip wrapped in one flex row with `text-align: left`. That affordance is gone (R26 is
superseded on this point by instruction 23: a dedicated bottom button INSTEAD of the whole
card opening on click); the class name stays because `verify_ui.py::_connector_modal_faults`
pins the literal string `className="conn-card-open"` as proof a keyboard can reach the modal,
and renaming it would have meant editing that gate, which is outside this ticket's fence.
ββ THE BLEED IS DELIBERATE. `.conn-card` pads 14px 16px; the negative margins here cancel
exactly that on three sides so the button's own border reaches the card's own edges β "spans
from left to right" is a literal geometry requirement, not a figure of speech, and a button
merely as wide as the padded content box would stop short of the card's own border. */
.conn-card-open {
appearance: none;
align-self: stretch;
/* Push to the BOTTOM of the card. `.conn-card` is `display: flex; flex-direction: column`, and
the grid it sits in stretches every card in a row to the same height (CSS Grid's default
`align-items: stretch`), so a shorter card's button still lands on the true bottom edge. */
margin-top: auto;
margin-right: -16px;
margin-bottom: -14px;
margin-left: -16px;
padding: 10px 16px;
border: 0;
border-top: 1px solid var(--lp-line);
border-radius: 0 0 var(--lp-r-md) var(--lp-r-md);
background: var(--lp-surface-2);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
font-weight: 600;
text-align: center;
cursor: pointer;
}
.conn-card-open:hover {
background: var(--lp-wash);
color: var(--lp-primary);
}
.conn-card-open:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: -2px;
border-radius: 0 0 var(--lp-r-md) var(--lp-r-md);
}
/* ---------------------------------------------------------------------------
W49-T15 / RULING R33 - THE RELATIONSHIP DIAGRAM.
ββ THE RULES THAT USED TO STAND HERE PAINTED `ConnectorRelationshipCanvas`,
and both it and they are DELETED. That canvas drew every card with all of its
fields (16 for vendors, 15 for three more) and put every edge label at the
midpoint of the two CARD CENTRES. Two relationships joining one pair of cards
in opposite directions therefore shared one label point and overprinted:
"Vendor record" over "Bills" is the illegible smear the owner rejected in
`reference/ERROR 19 connector.png`. Restyling that renderer would have kept
the defect, so the geometry is what changed.
β EVERY NUMBER HERE IS PAIRED WITH A CONSTANT IN RelationshipDiagram.tsx and
`verify_ui.py` holds them together:
Β· the header is 31px because the card is border-box and carries a 1px
hairline above it, so its content ends exactly HEADER_H (32) below the
card's top, which is where the layout puts the first row;
Β· a row is ROW_H (22) and the expand control is MORE_H (28), so a port drawn
by the SVG lands on the middle of the row the browser paints;
Β· type sizes are TOKENS, and the layout measures text at the px those tokens
resolve to against the 17px root. A layout measuring 10px while the CSS
paints 11.6875px is a geometry proof over numbers nothing renders.
β NO STACKING ORDER IS NAMED IN THIS BLOCK AT ALL. The edge layer sits under
the cards by DOM order alone, both being positioned children of one stage, so
nothing here can disturb the three-way order the modal above it depends on
([[z-layering-is-a-three-way-order]]).
--------------------------------------------------------------------------- */
.conn-rd {
display: flex;
flex-direction: column;
gap: 10px;
}
.conn-rd-scroll {
overflow: auto;
overscroll-behavior-x: contain;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface-2);
}
.conn-rd-stage {
position: relative;
}
.conn-rd-edges {
position: absolute;
top: 0;
left: 0;
display: block;
}
.conn-rd-line {
fill: none;
stroke: var(--lp-blue-deep);
stroke-width: 1.5;
stroke-linejoin: round;
}
.conn-rd-arrow {
fill: var(--lp-blue-deep);
}
/* The label rides the ink, not the pastel (DESIGN.md section 3), and carries a
halo of the stage colour so a line crossing under it stays legible. */
.conn-rd-label {
fill: var(--lp-ink);
font-family: Inter, sans-serif;
font-size: var(--lp-fs-3xs);
font-weight: 600;
paint-order: stroke fill;
stroke: var(--lp-surface-2);
stroke-width: 3px;
stroke-linejoin: round;
}
.conn-rd-card {
position: absolute;
box-sizing: border-box;
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
}
.conn-rd-card-title {
flex: 0 0 auto;
height: 31px;
margin: 0;
padding: 0 12px;
display: flex;
align-items: center;
border-bottom: 1px solid var(--lp-line);
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
font-weight: 600;
white-space: nowrap;
}
.conn-rd-rows {
flex: 0 0 auto;
margin: 0;
padding: 0;
list-style: none;
}
.conn-rd-row {
position: relative;
height: 22px;
padding: 0 12px;
display: flex;
align-items: center;
gap: 6px;
color: var(--lp-ink);
font-size: var(--lp-fs-3xs);
white-space: nowrap;
}
.conn-rd-row-name {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
}
.conn-rd-row.is-link .conn-rd-row-name {
font-weight: 600;
}
.conn-rd-key {
flex: 0 0 auto;
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
font-weight: 600;
}
/* The port: the exact point an edge attaches to, so a reader can see that a line
leaves THIS field row and not the middle of the card. */
.conn-rd-port {
position: absolute;
top: 50%;
width: 7px;
height: 7px;
margin-top: -4px;
border-radius: var(--lp-r-pill);
background: var(--lp-blue-deep);
}
.conn-rd-port.is-left {
left: 0;
}
.conn-rd-port.is-right {
right: 0;
}
.conn-rd-empty {
height: 22px;
margin: 0;
padding: 0 12px;
display: flex;
align-items: center;
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
}
/* The affordance R33 asks for: a real button that expands the card IN PLACE. It
resets native chrome like every other control in this file (DESIGN.md). */
.conn-rd-more {
flex: 0 0 auto;
appearance: none;
height: 28px;
padding: 0 12px;
border: 0;
border-top: 1px solid var(--lp-line);
background: transparent;
color: var(--lp-primary);
font-family: inherit;
font-size: var(--lp-fs-3xs);
font-weight: 600;
text-align: left;
cursor: pointer;
}
.conn-rd-more:hover {
background: var(--lp-wash);
color: var(--lp-primary-hover);
}
.conn-rd-more:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: -2px;
}
.conn-rd-note {
margin: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
/* ---------------------------------------------------------------------------
W49-T13 β THE KEYCHAIN TAB.
Same rules as the shell above it: tokens only for colour and type, one
control shape for the whole tab, red reserved for the destructive act and
never used as a call to action. No stacking context is created here at all,
which is deliberate: this tab lives INSIDE the dialog step the modal already
owns, so nothing in this block may name a stacking order.
--------------------------------------------------------------------------- */
.conn-kc-list {
margin: 0 0 14px;
padding: 0;
list-style: none;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
}
.conn-kc-row {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 10px 12px;
border-bottom: 1px solid var(--lp-line);
}
.conn-kc-row:last-child {
border-bottom: 0;
}
.conn-kc-main {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.conn-kc-label {
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
font-weight: 600;
}
.conn-kc-meta,
.conn-kc-empty,
.conn-kc-note {
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.conn-kc-empty,
.conn-kc-note {
margin: 0 0 12px;
}
.conn-kc-test {
color: var(--lp-ink);
font-size: var(--lp-fs-3xs);
}
.conn-kc-error {
margin: 0 0 12px;
padding: 8px 10px;
border: 1px solid var(--lp-red);
border-radius: var(--lp-r-sm);
background: var(--lp-red-tint);
color: var(--lp-red-deep);
font-size: var(--lp-fs-2xs);
}
.conn-kc-controls,
.conn-kc-actions {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: 8px;
}
/* Every control in this tab resets native chrome and carries the same shape
(DESIGN.md). The anchor is in the list so an OAuth Connect link reads as the
same control as the button beside it. */
.conn-kc-btn {
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--set-space-2);
min-height: var(--set-control-height);
padding: var(--set-space-1) var(--set-space-3);
border: var(--lp-hairline-width) solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
color: var(--lp-ink);
font-family: inherit;
font-size: var(--lp-fs-xs);
font-weight: var(--lp-fw-semibold);
line-height: var(--lp-lh-tight);
text-decoration: none;
cursor: pointer;
transition: transform var(--lp-motion-feedback-duration) var(--lp-motion-feedback-easing);
}
.conn-kc-btn:active:enabled {
transform: scale(0.97);
}
.conn-kc-btn:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
.conn-kc-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* The call to action carries the primary token. Red is the destructive hue and
is never borrowed for it. */
.conn-kc-btn.is-primary {
border-color: var(--lp-primary);
background: var(--lp-primary);
color: var(--lp-surface);
}
.conn-kc-btn.is-primary:focus-visible {
outline-color: var(--lp-primary);
}
.conn-kc-btn.is-danger {
border-color: var(--lp-red);
background: var(--lp-red-tint);
color: var(--lp-red-deep);
}
@media (hover: hover) and (pointer: fine) {
.conn-kc-btn:hover:enabled,
a.conn-kc-btn:hover {
background: var(--lp-wash);
border-color: var(--lp-blue-deep);
}
.conn-kc-btn.is-primary:hover:enabled,
a.conn-kc-btn.is-primary:hover {
background: var(--lp-primary-hover);
border-color: var(--lp-primary-hover);
}
.conn-kc-btn.is-danger:hover:enabled {
background: var(--lp-red);
border-color: var(--lp-red);
color: var(--lp-red-deep);
}
}
@media (prefers-reduced-motion: reduce) {
.conn-kc-btn {
transition: none;
}
.conn-kc-btn:active:enabled {
transform: none;
}
}
.conn-kc-field {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 12px;
}
.conn-kc-field label {
color: var(--lp-muted);
font-size: var(--lp-fs-3xs);
font-weight: 600;
}
.conn-kc-field input,
.conn-kc-field select {
padding: 7px 9px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font-family: inherit;
font-size: var(--lp-fs-2xs);
}
.conn-kc-field input:focus-visible,
.conn-kc-field select:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 0;
}
/* The link Settings keeps: one row, one sentence, one door. */
.conn-kc-link {
appearance: none;
padding: 0;
border: 0;
background: transparent;
color: var(--lp-primary);
font-family: inherit;
font-size: var(--lp-fs-2xs);
font-weight: 600;
text-align: left;
cursor: pointer;
}
.conn-kc-link:hover {
color: var(--lp-primary-hover);
text-decoration: underline;
}
.conn-kc-link:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
/* W49-T14, O9, ruling R26 - the link the ODOO CARD keeps, where its field-enablement chip row
used to sit. Same treatment as `.conn-kc-link` (T13's door out of Settings) and deliberately
its OWN rule rather than a second selector on that one: the two doors sit in different
surfaces and are owned by different tickets, and a shared declaration would mean either
ticket's restyle silently repainted the other's control. Quiet on purpose - the card's own
"Sync settings" button (W52-T03 renamed it from "Manage keys") is the primary action here and
this is a way out of it, not a rival CTA. */
.conn-db-link {
appearance: none;
padding: 0;
margin-top: 8px;
border: 0;
background: transparent;
color: var(--lp-primary);
font-family: inherit;
font-size: var(--lp-fs-2xs);
font-weight: 600;
text-align: left;
cursor: pointer;
}
.conn-db-link:hover {
color: var(--lp-primary-hover);
text-decoration: underline;
}
.conn-db-link:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
/* ---------------------------------------------------------------------------
W49-T18, ruling R27, contract C4 - the card's filing line. S72 removed the
category rail and its rules.
TOKENS ONLY for colour, type and radius. No literal hex, no literal font
size, and no literal z-index anywhere in this file - the filing line does not
layer, and a bare number here would be read by verify_ui's raw-text scan even inside
a comment.
AND NO GLOB IN THIS COMMENT. A recursive glob spells a comment terminator in
the middle of a sentence and closes the block early, which broke the
production build once already while tsc stayed green.
--------------------------------------------------------------------------- */
/* The card's filing line: the category it sits under, and the catalogue's own
endpoint count. Separated by space rather than by a punctuation character,
which keeps the copy rule out of the layout. */
.conn-card-file {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0;
font-size: var(--lp-fs-3xs);
color: var(--lp-muted);
}
.conn-file-cat {
padding: 1px 7px;
border-radius: var(--lp-r-pill);
background: var(--lp-surface-2);
color: var(--lp-muted);
font-weight: 600;
}
.conn-file-n {
align-self: center;
}
/* ---------------------------------------------------------------------------
W49-T19 - R31 / C5. THE AMAZON REVIEWS PULL: the action on the overview tab
and the dialog that states the price before it spends anything.
z-order, and it is a THREE-WAY order, not two: the connector modal above sits
on the DIALOG step (--cg-z-record) and this dialog opens ON TOP of it, so it
takes the PORTAL step (--cg-z-overlay). Tokens, never a literal
([[z-layering-is-a-three-way-order]]).
The surface paints its OWN background and its own backdrop. A portalled
overlay that inherits neither renders transparent over whatever it covers,
which is exactly how the v59 date editor shipped invisible
([[a-portal-overlay-carries-its-own-surface]]).
--------------------------------------------------------------------------- */
.conn-modal-act {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 8px;
margin-top: 14px;
padding-top: 12px;
border-top: 1px solid var(--lp-line);
}
.conn-modal-go {
appearance: none;
padding: 6px 12px;
border: 1px solid transparent;
border-radius: var(--lp-r-md);
background: var(--lp-primary);
color: var(--lp-surface);
font: inherit;
font-size: var(--lp-fs-xs);
font-weight: 600;
cursor: pointer;
}
.conn-modal-go:hover {
background: var(--lp-primary-hover);
}
.conn-modal-go:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
.conn-modal-act-note {
flex: 1 1 220px;
min-width: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.monid-run-backdrop {
position: fixed;
inset: 0;
z-index: var(--cg-z-overlay);
display: grid;
place-items: center;
padding: 24px;
background: color-mix(in srgb, var(--lp-ink) 34%, transparent);
}
.monid-run {
width: min(520px, calc(100vw - 48px));
max-height: min(640px, calc(100vh - 48px));
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid color-mix(in srgb, var(--lp-line) 82%, var(--lp-muted));
border-radius: var(--lp-r-lg);
background: var(--lp-surface);
box-shadow:
0 30px 80px color-mix(in srgb, var(--lp-ink) 22%, transparent),
0 4px 18px color-mix(in srgb, var(--lp-ink) 12%, transparent);
color: var(--lp-ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: var(--lp-fs-sm);
animation: conn-modal-open 150ms cubic-bezier(0.2, 0, 0, 1);
}
.monid-run:focus {
outline: none;
}
.monid-run-head {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 16px;
border-bottom: 1px solid var(--lp-line);
}
.monid-run-name {
flex: 1 1 auto;
min-width: 0;
font-size: var(--lp-fs-md);
font-weight: 600;
color: var(--lp-ink);
}
.monid-run-close {
flex: 0 0 auto;
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border: 1px solid transparent;
border-radius: var(--lp-r-md);
background: transparent;
color: var(--lp-muted);
font: inherit;
cursor: pointer;
}
.monid-run-close:hover {
background: var(--lp-wash);
color: var(--lp-ink);
}
.monid-run-close:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
.monid-run-body {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
padding: 16px;
}
.monid-run-label {
display: block;
margin-bottom: 6px;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
font-weight: 600;
}
.monid-run-input {
width: 100%;
box-sizing: border-box;
padding: 8px 10px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-sm);
background: var(--lp-surface);
color: var(--lp-ink);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: var(--lp-fs-xs);
resize: vertical;
}
.monid-run-input:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 1px;
}
.monid-run-hint,
.monid-run-note {
margin: 8px 0 0;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
/* The money line. Ink, not muted: it is the sentence the operator is being asked
to agree to, and a greyed price is a price that reads as furniture. Tabular
figures because it is a financial number (DESIGN.md section 2). */
.monid-run-cost {
margin: 12px 0 0;
padding: 10px 12px;
border-radius: var(--lp-r-md);
background: var(--lp-surface-2);
color: var(--lp-ink);
font-size: var(--lp-fs-xs);
font-weight: 600;
font-variant-numeric: tabular-nums;
}
/* Red is negative and destructive, and a refusal is the negative case. It rides
the deep companion on its own tint, never the pastel on white. */
.monid-run-refusal {
margin: 12px 0 0;
padding: 10px 12px;
border-radius: var(--lp-r-md);
background: var(--lp-red-tint);
color: var(--lp-red-deep);
font-size: var(--lp-fs-xs);
}
.monid-run-done {
display: flex;
flex-direction: column;
gap: 6px;
}
.monid-run-line {
margin: 0;
color: var(--lp-ink);
font-size: var(--lp-fs-xs);
}
.monid-run-foot {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid var(--lp-line);
background: var(--lp-wash);
}
.monid-run-btn {
appearance: none;
padding: 7px 14px;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
background: var(--lp-surface);
color: var(--lp-ink);
font: inherit;
font-size: var(--lp-fs-xs);
font-weight: 600;
cursor: pointer;
}
.monid-run-btn:hover {
background: var(--lp-surface-2);
}
.monid-run-btn:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
.monid-run-btn.is-primary {
border-color: transparent;
background: var(--lp-primary);
color: var(--lp-surface);
font-variant-numeric: tabular-nums;
}
.monid-run-btn.is-primary:hover {
background: var(--lp-primary-hover);
}
.monid-run-btn[disabled] {
opacity: 0.5;
cursor: not-allowed;
}
.monid-run-btn.is-primary[disabled]:hover {
background: var(--lp-primary);
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
W49-T14 Β· R21/R22/R23/R24 β THE DATABASES TAB, the onboarding disclosure.
β NO LITERAL COLOUR AND NO LITERAL FONT SIZE, as everywhere else in this
sheet, and no literal z-index: this tab opens no layer of its own, so it
declares no stacking step at all rather than a number that would fight the
two the modal already owns.
β IT IS A TABLE SHAPED SURFACE (DESIGN.md section 4): one control shape per
rail, aligned edges, and tabular numerals on every count so a column of field
counts lines up down the list.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.conn-db {
display: flex;
flex-direction: column;
gap: 12px;
}
.conn-db-desc {
margin: 0;
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
}
.conn-db-note,
.conn-db-basis,
.conn-db-shared {
margin: 0;
color: var(--lp-muted);
font-size: var(--lp-fs-2xs);
}
.conn-db-shared {
padding: 7px 10px;
border-radius: var(--lp-r-sm);
background: var(--lp-wash);
}
.conn-db-basis {
margin-top: 6px;
font-size: var(--lp-fs-3xs);
}
.conn-db-lede {
margin: 0;
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
}
.conn-db-n {
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.conn-db-error {
margin: 0;
padding: 8px 10px;
border: 1px solid var(--lp-red);
border-radius: var(--lp-r-sm);
background: var(--lp-red-tint);
color: var(--lp-red-deep);
font-size: var(--lp-fs-2xs);
}
/* β A REFUSAL IS NOT AN ERROR THE READER CAUSED (DESIGN.md section 4), so it
does not wear the destructive red the error above does. It is an amber
statement of fact: the table stayed on, and here is what uses it. */
.conn-db-refusal {
margin: 0;
padding: 8px 10px;
border-left: 3px solid var(--lp-yellow);
border-radius: var(--lp-r-sm);
background: var(--lp-yellow-tint);
color: var(--lp-ink);
font-size: var(--lp-fs-2xs);
font-variant-numeric: tabular-nums;
}
.conn-db-list {
margin: 0;
padding: 0;
list-style: none;
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-md);
}
.conn-db-item {
padding: 10px 12px;
border-bottom: 1px solid var(--lp-line);
display: flex;
flex-direction: column;
gap: 8px;
}
.conn-db-item:last-child {
border-bottom: 0;
}
.conn-db-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}
/* β W56-T33 β THE POPULATION SIGNAL IS THE WORD IN THE CELL, and these three rules are
reinforcement only. `Not counted yet` and `Empty` are printed in the row itself, so a reader
who cannot see weight or tint still gets the whole answer (DESIGN.md section 4). */
.conn-db-row.is-populated .conn-db-src,
.conn-db-row.is-populated td {
font-weight: 600;
}
.conn-db-row.is-empty td {
color: var(--lp-muted);
}
.conn-db-row.is-uncounted td {
color: inherit;
}
/* The disclosure control. Native chrome reset in the base rule (DESIGN.md
section 4): a class styled button that leaks UA border and background is the
wave-19 item-3 bug. */
.conn-db-more {
appearance: none;
border: 0;
background: none;
font: inherit;
color: inherit;
padding: 0;
flex: 1 1 auto;
min-width: 0;
display: flex;
align-items: baseline;
gap: 8px;
text-align: left;
cursor: pointer;
}
.conn-db-more:hover .conn-db-name {
color: var(--lp-primary);
}
.conn-db-more:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
border-radius: var(--lp-r-sm);
}
.conn-db-name {
font-size: var(--lp-fs-2xs);
font-weight: 600;
color: var(--lp-ink);
}
.conn-db-count {
font-size: var(--lp-fs-3xs);
color: var(--lp-muted);
font-variant-numeric: tabular-nums;
}
.conn-db-state {
font-size: var(--lp-fs-3xs);
color: var(--lp-muted);
font-weight: 600;
}
/* ONE switch shape, used on both rails: the database rail and the field rail.
A second control shape for the same act is what DESIGN.md section 4 calls a
new control shape joining no rhythm. */
.conn-db-switch {
appearance: none;
border: 1px solid var(--lp-line);
background: var(--lp-surface-2);
font: inherit;
color: inherit;
flex: 0 0 auto;
width: 34px;
height: 20px;
padding: 2px;
border-radius: var(--lp-r-pill);
cursor: pointer;
display: inline-flex;
align-items: center;
/* β NO TRANSITION ON THE TRACK. DESIGN.md section 4 allows motion on opacity and transform
only, so the state change is carried by the knob's translate below and the fill simply
swaps. A tweened background is the one animation that rule names. */
}
.conn-db-switch.is-on {
border-color: var(--lp-primary);
background: var(--lp-primary);
}
.conn-db-switch:focus-visible {
outline: 2px solid var(--lp-blue-deep);
outline-offset: 2px;
}
.conn-db-switch:disabled {
opacity: 0.55;
cursor: default;
}
.conn-db-knob {
width: 14px;
height: 14px;
border-radius: var(--lp-r-pill);
background: var(--lp-surface);
transform: translateX(0);
transition: transform 140ms ease-out;
}
.conn-db-switch.is-on .conn-db-knob {
transform: translateX(14px);
}
@media (prefers-reduced-motion: reduce) {
.conn-db-switch,
.conn-db-knob {
transition: none;
}
}
.conn-db-fields {
width: 100%;
border-collapse: collapse;
font-size: var(--lp-fs-3xs);
}
.conn-db-fields th {
text-align: left;
font-weight: 600;
color: var(--lp-muted);
padding: 4px 8px;
border-bottom: 1px solid var(--lp-line);
}
.conn-db-fields td {
padding: 4px 8px;
border-bottom: 1px solid var(--lp-line);
color: var(--lp-ink);
vertical-align: middle;
}
.conn-db-fields tr:last-child td {
border-bottom: 0;
}
.conn-db-src {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
color: var(--lp-muted);
}
.conn-db-type {
color: var(--lp-muted);
}
.conn-db-cell-switch {
width: 44px;
}
.conn-db-sub {
margin: 0 0 6px;
font-size: var(--lp-fs-3xs);
font-weight: 600;
color: var(--lp-muted);
}
.conn-db-excluded {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--lp-line);
}
.conn-db-exlist {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 4px;
}
.conn-db-exlist li {
display: flex;
gap: 8px;
font-size: var(--lp-fs-3xs);
}
.conn-db-reason {
color: var(--lp-muted);
}
|