.route-page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.route-page-heading h1{font-size:28px;letter-spacing:-.7px;margin:9px 0}.route-page-heading p{font-size:14px;color:#7b899e}.route-eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#6c89af}.route-button{border:1px solid #dce4ef;border-radius:7px;padding:8px 12px;background:white;color:#61718a;font-size:12px;cursor:pointer}.route-button:hover{border-color:#6e9be4;color:#2473e5}.route-statusbar{display:flex;align-items:center;gap:9px;padding:14px 0 19px;font-size:12px;color:#718198;border-top:1px solid #e3e9f2}.route-live-dot{width:7px;height:7px;border-radius:50%;background:#65a98d}.route-status-right{margin-left:auto;color:#95a0b1}.route-library{border:1px solid #dce5f0;border-radius:12px;background:#fff;margin-bottom:20px;padding:16px 19px}.route-library summary{cursor:pointer;font-size:13px;font-weight:600;color:#4e617c}.route-library summary span{font-weight:400;font-size:12px;margin-left:12px;color:#93a0b3}.route-library-groups{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;margin-top:18px}.route-library-groups>div{display:flex;gap:7px;flex-wrap:wrap;align-content:start;max-height:180px;overflow:auto}.route-library-groups small{display:block;flex-basis:100%;font-size:11px;color:#94a1b3;margin-bottom:3px}.route-library-groups p{font-size:12px;color:#a4afbe;padding:8px 0}.route-library-groups button{display:flex;align-items:center;gap:7px;max-width:100%;overflow:hidden;overflow-wrap:anywhere;border:1px solid #e3e9f2;padding:8px 10px;border-radius:6px;background:#f8fafd;color:#5c6c84;font-size:12px;cursor:grab}.route-library-groups button:hover{border-color:#91b2ea;background:#edf4ff}.route-library-groups svg{width:14px;height:14px;flex-shrink:0}.route-library-groups button span{color:#9eacc1;margin-left:5px}.route-canvas-scroll{overflow:auto;border-radius:16px;background:#0f1928;border:1px solid #1c2b40;box-shadow:0 10px 25px #182b4210}.route-canvas{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start;gap:60px;min-width:960px;position:relative;padding:26px 22px;min-height:470px;background:radial-gradient(ellipse at 50% 30%,#20253d55,transparent 70%),radial-gradient(#40516c35 .7px,transparent .7px);background-size:auto,16px 16px}.route-wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible}.route-wires path{fill:none;stroke-width:2.3;pointer-events:stroke;cursor:pointer;opacity:.85;transition:opacity .15s}.route-wires path:hover,.route-wires path:focus{stroke-width:5;opacity:1;outline:none}.route-wires .route-wire-preview{pointer-events:none}.route-lane{--route-accent:#83baff;background:linear-gradient(160deg,#19314cbb,#152335bb);border:1px solid #2c5279a0;border-radius:13px;min-width:0;position:relative;transition:border-color .15s}.route-lane.rule{--route-accent:#b8a1fb;background:linear-gradient(160deg,#352655aa,#251e3aaa);border-color:#6e4e9b77}.route-lane.outbound{--route-accent:#89eab8;background:linear-gradient(160deg,#17483dbb,#172b2fbb);border-color:#2a6b5b77}.route-lane.drag-over{border-color:var(--route-accent);box-shadow:0 0 0 3px #93b4ff30}.route-lane header{display:flex;gap:8px;align-items:center;padding:16px 13px;border-bottom:1px solid #ffffff0c;background:#ffffff04;border-radius:13px 13px 0 0}.route-lane header>svg{width:19px;height:19px;flex-shrink:0;color:var(--route-accent)}.route-lane h2{font-size:14px;color:#ebf0fa;font-weight:600;flex:1;white-space:nowrap}.route-lane h2 small{display:block;font-size:10px;font-weight:400;letter-spacing:.5px;color:var(--route-accent);opacity:.65;margin-top:3px}.route-lane header .route-button{border-color:#ffffff18;background:#ffffff0b;color:var(--route-accent);font-size:11px;padding:6px 8px;white-space:nowrap}.route-lane-body{padding:14px 12px 0}.route-node{position:relative;display:flex;align-items:center;gap:10px;padding:16px 11px;min-height:96px;margin-bottom:14px;border:1px solid #ffffff10;border-radius:10px;background:linear-gradient(120deg,#b5d6ff12,#a0b2d108);box-shadow:0 3px 12px #00000010;cursor:grab}.route-node:hover{border-color:#ffffff33;background-color:#ffffff04}.route-node.inactive{opacity:.53}.route-node-icon{color:var(--route-accent);flex-shrink:0}.route-node-icon svg{width:23px;height:23px}.route-node-copy{min-width:0;flex:1;text-align:left}.route-node h3{font-size:14px;color:#edf1ff;font-weight:600;margin-bottom:7px;overflow-wrap:anywhere}.route-node p{font-size:10px;color:#b7c4d8;line-height:1.6;overflow-wrap:anywhere;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.route-node small{display:block;color:var(--route-accent);opacity:.65;font-size:9px;margin-top:5px;overflow-wrap:anywhere}.route-node>.route-button{padding:1px 3px;border:none;background:none;color:#ffffff44;align-self:flex-start;font-size:17px;cursor:pointer}.route-node>.route-button:hover{color:#ffacac}.route-rule-edit{background:none;border:0;padding:0;cursor:pointer}.route-priority{padding:7px 8px;background:#9061e23d;border:1px solid #a87be32b;border-radius:6px;color:#e6d5ff;font-size:12px;font-weight:600}.route-port{position:absolute;top:50%;transform:translateY(-50%);width:12px;height:12px;border:2px solid #142034;background:var(--route-accent);border-radius:50%;padding:0;z-index:5;cursor:crosshair;touch-action:none;box-shadow:0 0 0 5px transparent}.route-port:before{content:'';position:absolute;inset:-8px}.route-port.left{left:-19px}.route-port.right{right:-19px}.route-port:hover,.route-port:focus,.route-port.selected{box-shadow:0 0 0 5px #ffffff28;outline:0;background:white}.route-drop-hint{text-align:center;color:#73819b;font-size:11px;line-height:1.9;padding:10px 4px 22px;opacity:.7}.route-drop-hint small{font-size:10px;color:#637188}.route-footnote{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#8996a8;padding:17px 2px}.route-runtime-note{font-size:12px!important;line-height:1.9}.route-picker{display:flex;flex-direction:column;gap:10px;padding-top:20px}.route-picker .route-button{text-align:left;padding:13px}.route-rule-form fieldset{border:1px solid #e1e7f0;border-radius:8px;padding:12px;margin:20px 0 0}.route-rule-form legend{font-size:12px;color:#7b899b;padding:0 5px}.route-rule-form .route-check{display:inline-flex;align-items:center;gap:8px;margin:7px 12px 7px 0;font-size:12px}.route-rule-form .route-check input{width:15px;height:15px;margin:0;accent-color:#8a62da}.route-rule-form textarea{min-height:65px}.route-rule-form>label{display:block}dialog:has(.route-rule-form){width:min(650px,94vw)}.route-page-heading .button-row{flex-shrink:0}
@media(min-width:1500px){.route-canvas{gap:80px;padding:30px}.route-lane h2 small{display:inline;margin-left:4px}.route-node{padding:18px 14px}.route-node h3{font-size:15px}.route-node p{font-size:11px}}
@media(max-width:850px){.route-page-heading{align-items:flex-start;flex-direction:column}.route-library-groups{gap:12px}.route-footnote{flex-direction:column;line-height:1.8}.route-status-right{display:none}.route-library summary span{font-size:10px}.route-canvas{min-width:940px}.route-page-heading h1{font-size:25px}}

.route-drag-ghost{position:fixed;pointer-events:none;z-index:1000;border:1px solid #829fe5;background:#263c62ed;border-radius:8px;padding:10px 15px;max-width:260px;color:#ecf3ff;font-size:12px;box-shadow:0 6px 25px #0004}.route-node,.route-library-groups button{touch-action:none;user-select:none}
@media(max-width:480px){.route-library-groups{grid-template-columns:1fr}.route-library-groups>div{max-height:130px}}

/* Inbound focus changes visibility only; the saved routing graph stays untouched. */
.route-inbound-select{background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit}
.route-node.route-inbound-focused{border-color:#83baff;background-color:#4a91e622;box-shadow:0 0 0 2px #83baff30}
.route-focusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin-bottom:12px;border:1px solid #cfe0fa;border-radius:8px;background:#edf4ff;color:#52729c;font-size:12px}
.route-focusbar[hidden]{display:none}.route-focusbar .route-button{flex-shrink:0}
