.routing-settings{display:grid;gap:20px;min-width:0}
.routing-page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.routing-page-title h2{font-size:17px;line-height:1.4}
.routing-page-title p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:6px;max-width:480px}
.routing-page-title>.pill{margin-top:3px;flex-shrink:0}
#routing-global-form{display:grid;gap:18px}
.routing-section{padding:23px;min-width:0}
.routing-section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}
.routing-section-title>span,.routing-user-summary>span:first-child{display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--muted-strong)}
.routing-section-title>span>.icon{width:16px;height:16px}
.routing-section-title>div{flex:1;min-width:0}
.routing-section-title h3{font-size:12px;font-weight:600;line-height:1.5}
.routing-section-title p{font-size:10px;line-height:1.8;color:var(--muted);margin-top:4px}
.routing-section-title>.btn{flex-shrink:0}
.routing-form-grid{display:grid;gap:17px;min-width:0}
.routing-scope-picker[hidden]{display:none!important}
.routing-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.routing-entry-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;min-width:0;overflow:hidden}
.routing-entry-head{display:flex;align-items:center;gap:8px;padding:13px 14px;background:var(--surface-2);border-bottom:1px solid var(--border)}
.routing-entry-head>.icon{width:14px;height:14px;color:var(--muted-strong);flex-shrink:0}
.routing-entry-head>strong{font-size:11px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.routing-entry-head>span{margin-left:auto;font-size:9px;white-space:nowrap;color:var(--muted)}
.routing-entry-options{display:grid;gap:13px;padding:15px}
.routing-entry-options .check-label,.routing-collection-options .check-label{display:flex;align-items:flex-start;justify-content:flex-start;gap:9px;line-height:1.6;min-width:0;cursor:pointer}
.routing-entry-options input,.routing-collection-options input{flex-shrink:0}
.routing-entry-options strong,.routing-collection-options strong{display:block;font-size:10px;font-weight:500;overflow-wrap:anywhere}
.routing-entry-options small,.routing-collection-options small{display:block;font-size:9px;color:var(--muted);margin-top:3px;line-height:1.7;overflow-wrap:anywhere}
.routing-entry-options input:disabled+span{opacity:.5}
.routing-muted{font-size:10px;color:var(--muted);line-height:1.8}
.routing-rule-list{display:grid;gap:12px}
.routing-rule{padding:17px;border:1px solid var(--border);border-radius:10px;min-width:0;background:var(--surface)}
.routing-rule.is-disabled{background:var(--surface-2)}
.routing-rule.is-disabled .routing-rule-title,.routing-rule.is-disabled .routing-chips,.routing-rule.is-disabled .routing-destination{opacity:.55}
.routing-rule-top{display:flex;align-items:center;gap:10px}
.routing-order{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:var(--surface-2);border:1px solid var(--border);font-size:9px;color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0}
.routing-rule-title{flex:1;min-width:0}
.routing-rule-title>strong{display:block;font-size:11px;font-weight:550;overflow-wrap:anywhere}
.routing-rule-title>small{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.routing-toggle{border:1px solid var(--border);border-radius:5px;padding:4px 7px;font-size:9px;line-height:1.5;color:var(--muted);background:var(--surface-2);white-space:nowrap;flex-shrink:0}
.routing-toggle[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent-border,var(--border))}
.routing-chips{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:15px;min-width:0}
.routing-chip{display:inline-flex;gap:4px;align-items:center;max-width:100%;padding:4px 7px;border:1px solid var(--border);border-radius:5px;font-size:9px;line-height:1.5;color:var(--muted-strong);background:var(--surface-2);overflow-wrap:anywhere}
.routing-chip:not(.is-set){font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.routing-chip.is-set{color:var(--accent);border-color:var(--accent-border,var(--border));background:var(--accent-soft)}
.routing-chip>.icon{width:11px;height:11px;flex-shrink:0}
.routing-more{font-size:9px;color:var(--muted);padding-left:3px}
.routing-rule-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border);margin-top:15px;padding-top:11px}
.routing-destination{display:flex;align-items:center;gap:7px;min-width:0;color:var(--muted-strong)}
.routing-destination>.icon{width:12px;height:12px;flex-shrink:0;color:var(--muted)}
.routing-destination>strong{font-size:10px;font-weight:500;overflow-wrap:anywhere}
.routing-rule-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}
.routing-rule-actions>.btn-icon{width:26px;height:26px}
.routing-rule-actions>.btn-icon>.icon{width:12px;height:12px}
.routing-empty{padding:27px 14px;display:flex;align-items:center;flex-direction:column;text-align:center;border:1px dashed var(--border);border-radius:9px;background:var(--surface-2)}
.routing-empty>span{color:var(--muted);margin-bottom:8px}
.routing-empty>span>.icon{width:21px;height:21px}
.routing-empty>strong{font-size:11px;font-weight:500}
.routing-empty>p{font-size:10px;line-height:1.8;color:var(--muted);margin-top:5px;max-width:320px}
.routing-save-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:3px 0 0}
.routing-save-row>p{font-size:10px;color:var(--muted);line-height:1.8;max-width:430px}
.routing-save-row>.btn{flex-shrink:0}
.routing-set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.routing-set-card{padding:20px;display:flex;flex-direction:column;min-width:0}
.routing-set-head{display:flex;gap:11px;align-items:center}
.routing-set-head>span{width:33px;height:33px;border:1px solid var(--border);background:var(--surface-2);display:grid;place-items:center;border-radius:9px;flex-shrink:0;color:var(--muted-strong)}
.routing-set-head>span>.icon{width:16px;height:16px}
.routing-set-head>div{flex:1;min-width:0}
.routing-set-head h3{font-size:12px;overflow-wrap:anywhere}
.routing-set-head p{color:var(--muted);font-size:9px;margin-top:4px}
.routing-set-card>.routing-chips{flex:1;align-content:flex-start;margin-bottom:16px;min-height:54px}
.routing-set-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border);padding-top:11px;color:var(--muted);font-size:9px}
.routing-footnote{display:flex;align-items:flex-start;gap:8px;font-size:10px;line-height:1.8;color:var(--muted);padding-top:4px}
.routing-footnote>.icon{height:13px;width:13px;flex-shrink:0;margin-top:3px}
.routing-user-summary{display:flex;gap:11px;align-items:center;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--border)}
.routing-user-summary>div{flex:1;min-width:0}
.routing-user-summary strong{font-size:12px;font-weight:550;overflow-wrap:anywhere}
.routing-user-summary p{font-size:10px;color:var(--muted);margin-top:4px}
.routing-user-section{padding:0;margin-bottom:22px}
.routing-inherited{padding:18px;border:1px solid var(--border);background:var(--surface-2);border-radius:10px;margin-bottom:22px}
.routing-inherited-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.routing-inherited-head h3{font-size:11px}
.routing-inherited-head p{font-size:9px;line-height:1.8;color:var(--muted);margin-top:4px}
.routing-inherited .routing-rule{padding:14px}
.routing-inherited .routing-empty{background:var(--surface);padding:20px 10px}
.routing-inherited .routing-rule-bottom{padding-top:11px}
.routing-fallback{font-size:10px;line-height:1.8;color:var(--muted);padding:14px 1px 0}
.routing-fallback>strong{font-weight:500;color:var(--muted-strong);overflow-wrap:anywhere}
.routing-collection-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:15px;border:1px solid var(--border);background:var(--surface-2);border-radius:8px;max-height:210px;overflow:auto}
.routing-check-stack{gap:13px;justify-content:center}
.routing-template-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid var(--border)}
.routing-template-row>span{font-size:10px;color:var(--muted)}
.routing-template-row>div{display:flex;gap:6px;flex-wrap:wrap}
.routing-legacy-list{display:grid;gap:13px}
.routing-legacy-list>div{display:flex;align-items:center;justify-content:space-between;gap:13px;padding-top:13px;border-top:1px solid var(--border)}
.routing-legacy-list>div:first-child{padding-top:0;border-top:0}
.routing-legacy-list strong{font-size:11px;font-weight:500;display:block}
.routing-legacy-list small{font-size:9px;color:var(--muted);display:block;margin-top:4px}
.routing-migration .routing-section-title>span{background:var(--surface)}
.nc-routing-note{margin-top:18px}
.nc-routing-note>.cli-hint{margin:12px 0}
.nc-routing-note>.btn{margin-top:7px}
@media(max-width:1100px){.routing-set-grid{grid-template-columns:1fr}.routing-entry-grid{grid-template-columns:1fr}}
@media(max-width:760px){
 .node-config-modal .config-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .routing-settings{gap:17px}.routing-page-title{gap:12px;flex-wrap:wrap}.routing-page-title h2{font-size:16px}.routing-page-title p{font-size:10px}.routing-page-title>.btn{margin-left:auto}
 #routing-global-form{gap:14px}.routing-section{padding:18px}.routing-section-title{gap:10px;margin-bottom:17px}.routing-section-title>span{width:29px;height:29px}.routing-section-title>span>.icon{width:14px;height:14px}.routing-section-title h3{font-size:11px}.routing-section-title p{font-size:9px}.routing-section-title>.btn{padding:7px 9px;font-size:10px}
 .routing-rule{padding:14px}.routing-rule-top{gap:8px}.routing-rule-title>strong{font-size:11px}.routing-order{height:25px;width:25px}.routing-rule-bottom{gap:8px;flex-wrap:wrap}.routing-rule-actions{margin-left:auto}.routing-rule-actions>.btn-icon{width:30px;height:30px}.routing-destination{flex-basis:100%;margin-bottom:2px}.routing-destination>strong{font-size:10px}.routing-chips{margin-top:12px}
 .routing-save-row{align-items:stretch;flex-direction:column;gap:11px}.routing-save-row>.btn{width:100%;min-height:40px}.routing-save-row>p{font-size:9px}.routing-user-summary{gap:9px}.routing-user-summary>.pill{font-size:8px}.routing-user-summary p{font-size:9px}.routing-user-section{padding:0}.routing-inherited{padding:14px}.routing-inherited-head{gap:8px;flex-wrap:wrap}.routing-collection-options{grid-template-columns:1fr;gap:14px;max-height:230px}.routing-set-card{padding:18px}.routing-template-row{align-items:flex-start;flex-direction:column;gap:9px}.routing-template-row>div{width:100%}.routing-template-row .btn{flex:1}.routing-footnote{font-size:9px}.routing-entry-head{padding:12px}.routing-entry-options{padding:14px}.routing-empty{padding:24px 10px}.routing-empty>p{font-size:9px}
}

.routing-status-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.routing-status-actions>.btn-icon{width:28px;height:28px}.routing-status-actions>.btn-icon>.icon{width:13px;height:13px}
