#groupe .tb-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}#groupe select{background:#102c3d;color:#eaf3fb;border:1px solid #456579;border-radius:9px;padding:10px;max-width:100%}#groupe .tb-board{height:620px;position:relative;overflow:hidden;border:1px solid #35566a;border-radius:16px;background-color:#141B24;background-image:radial-gradient(#39434F 0.8px,transparent 0.8px);background-size:24px 24px;touch-action:none;cursor:grab}#groupe .tb-world{position:absolute;transform-origin:0 0;width:1px;height:1px}#groupe .tb-node{position:absolute;width:176px;min-height:212px;border:1px solid #416378;border-radius:16px;padding:12px;background:linear-gradient(145deg,#1b3b50,#0c2233);text-align:center;box-shadow:0 12px 24px #0005;cursor:grab;user-select:none}#groupe .tb-node.selected{border-color:#e4c58c;box-shadow:0 0 0 2px #e4c58c55}#groupe .tb-node .avatar{width:68px;height:68px;margin:4px auto 10px}#groupe .tb-node button{color:inherit;background:transparent;border:0}#groupe .tb-node .tb-profile{display:block;width:100%;cursor:pointer}#groupe .tb-node strong{display:block;font-size:14px}#groupe .tb-node small{display:block;font-size:11px;color:#afc8d5;margin-top:6px}#groupe .tb-port{border:1px solid #d9b77c!important;border-radius:15px;margin-top:10px;padding:4px 9px;font-size:11px;cursor:crosshair}#groupe .tb-links{position:absolute;overflow:visible;width:1px;height:1px}#groupe .tb-edge{fill:none;stroke:#d9b77c;stroke-width:2.5;pointer-events:stroke;cursor:pointer}#groupe .tb-edge.collaboration{stroke:#7bd9ea;stroke-dasharray:7 5}#groupe .tb-edge.selected{stroke:white;stroke-width:5}#groupe .tb-status{min-height:24px;font-size:13px;color:#bce4d9}#groupe .tb-legend{font-size:12px;color:#aac3d1}#groupe .tb-editor{padding:12px;border:1px solid #345467;border-radius:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}#groupe .tb-editor[hidden]{display:none}#groupe .tb-node:focus-visible,#groupe button:focus-visible{outline:2px solid #e4c58c;outline-offset:3px}@media(max-width:600px){#groupe .tb-board{height:540px}#groupe .btn{padding:9px;font-size:12px}}

/* R160: direct pointer connections; 44px touch target, quiet 12px visual. */
#groupe .tb-node{height:212px;box-sizing:border-box}
#groupe .tb-node .tb-socket{position:absolute;left:calc(50% - 22px);bottom:-22px;width:44px;height:44px;padding:0;z-index:3;touch-action:none;cursor:crosshair;opacity:0;transition:opacity .15s}
#groupe .tb-socket:after{content:"";display:block;width:12px;height:12px;margin:auto;border:2px solid #ffe3ab;background:#d9b77c;border-radius:50%;box-shadow:0 0 0 4px #091b2c}
#groupe .tb-node:hover .tb-socket,#groupe .tb-node:focus-within .tb-socket,#groupe .tb-wiring .tb-socket{opacity:1}
#groupe .tb-port{font-size:10px;opacity:.7;margin-top:6px;padding:2px 7px}
#groupe .tb-target{outline:3px solid #ffe3ab;outline-offset:4px}
#groupe .tb-edge-hit{fill:none;stroke:transparent;stroke-width:22;pointer-events:stroke;cursor:pointer}
#groupe .tb-preview{fill:none;stroke:#ffe3ab;stroke-width:3;stroke-dasharray:6 4;pointer-events:none}
#groupe .tb-edge:focus-visible{outline:none;stroke:white;stroke-width:5}
@media(hover:none),(pointer:coarse){#groupe .tb-node .tb-socket{opacity:1}}

/* R161: discreet accessible controls, catalogue selection and drop feedback. */
#groupe .tb-port{display:none}#groupe .tb-node.selected .tb-socket{opacity:1}
#groupe .tb-socket{transform:scale(var(--tb-port-scale,1))}
#groupe .tb-drop-ready{outline:3px dashed #d9b77c;outline-offset:5px}
.tb-pickbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0;color:#afc8d5;font-size:13px}
#catalog .agent{position:relative}#catalog .tb-pick{position:absolute;top:8px;right:8px;width:22px;height:22px;accent-color:#d9b77c;cursor:pointer}
#catalog .agent.tb-picked{outline:2px solid #d9b77c;outline-offset:2px}
#groupe .tb-toolbar{align-items:center}#groupe .tb-toolbar button:disabled{opacity:.35;cursor:default}
#groupe .tb-node small{line-height:1.35}#groupe .tb-edge,#groupe .tb-edge-hit{vector-effect:non-scaling-stroke}
@media(max-width:600px){#groupe .tb-toolbar select{max-width:100%}#groupe .tb-board{height:65vh;min-height:380px}.tb-pickbar .btn{width:100%}}

/* R163: visual distinction and individually selectable parallel relationships */
#groupe .tb-edge.communication{stroke:#7bdfae;stroke-dasharray:none;stroke-width:2.5}
#groupe .tb-edge.collaboration{stroke:#7bd9ea;stroke-dasharray:7 5}
#groupe .tb-edge-hit{fill:none;stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer}
#groupe .tb-edge.selected{stroke:#fff;stroke-width:4}

/* R166: link actions stay in the viewport, independent of canvas scrolling/zoom. */
#groupe .tb-editor-link{position:fixed;z-index:100;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;margin:0;max-height:40vh;overflow:auto;background:#102c3d;border:2px solid #e4c58c;box-shadow:0 8px 32px #000b}
#groupe .tb-editor-link .tb-delete-link{background:#a32936;color:#fff;border:2px solid #ffb6bb;min-height:44px;min-width:160px;font-weight:700;cursor:pointer;touch-action:manipulation}
#groupe .tb-link-label{overflow-wrap:anywhere}
@media(max-width:600px){#groupe .tb-editor-link{width:calc(100vw - 24px);max-width:calc(100vw - 24px);gap:6px;padding:10px;bottom:max(8px,env(safe-area-inset-bottom))}#groupe .tb-editor-link .tb-delete-link{width:100%;font-size:14px}#groupe .tb-editor-link .tb-link-label{width:100%}#groupe .tb-editor-link select{flex:1;min-width:0}}

#groupe .tb-floating{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:5;display:flex;flex-wrap:wrap;justify-content:center;gap:5px;padding:7px;background:#28313cee;border:1px solid #48525e;border-radius:14px;max-width:95%;width:max-content;box-shadow:0 6px 20px #0005;cursor:default}
#groupe .tb-floating .btn{font-size:12px;padding:7px 10px}
