.ai-feature-routing-panel { overflow:hidden; }
.ai-feature-routing-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ai-feature-routing-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.ai-feature-routing-toggle { position:relative; width:38px; min-width:38px; height:38px; padding:0; }
.ai-feature-routing-toggle::after { content:""; display:block; width:8px; height:8px; margin:0 auto 4px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); transition:transform .18s ease, margin .18s ease; }
.ai-feature-routing-toggle[aria-expanded="true"]::after { margin:4px auto 0; transform:rotate(225deg); }
.ai-feature-routing-toggle-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ai-feature-routing-panel.is-collapsed [data-ai-routing-refresh],
.ai-feature-routing-panel.is-collapsed [data-ai-routing-save] { display:none; }
.ai-feature-routing-body[hidden] { display:none; }
.ai-feature-routing-grid { display:flex; flex-direction:column; gap:18px; margin-top:14px; }
.ai-feature-routing-section { min-width:0; }
.ai-feature-routing-section h3 { margin:0 0 8px; color:var(--text); font-size:13px; line-height:1.4; }
.ai-feature-routing-section-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,400px)); justify-content:start; gap:10px; }
.ai-feature-routing-row { min-width:0; padding:12px; border:1px solid rgba(0,0,0,.08); border-radius:8px; background:rgba(0,0,0,.02); }
.ai-feature-routing-row label { display:block; margin-bottom:7px; color:var(--text); font-size:13px; font-weight:650; }
.ai-feature-routing-row select { width:100%; min-height:38px; padding:7px 32px 7px 10px; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--text); font-size:13px; }
.ai-feature-routing-meta { min-height:18px; margin-top:6px; color:var(--muted); font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
.ai-feature-routing-meta.is-error { color:#c01f2f; }
html.theme-dark .ai-feature-routing-row { border-color:rgba(255,255,255,.09); background:rgba(255,255,255,.035); }
@media (prefers-reduced-motion:reduce) { .ai-feature-routing-toggle::after { transition:none; } }
@media (max-width:680px) { .ai-feature-routing-head { align-items:flex-start; } .ai-feature-routing-actions { align-self:flex-start; } .ai-feature-routing-section-grid { grid-template-columns:minmax(0,1fr); } }
