.route-policies { min-width: 0; letter-spacing: 0; }
.route-policies * { box-sizing: border-box; }
.route-policies h2, .route-policies h3 { margin: 0; }
.route-policies h2 { font-size: 19px; }
.route-policies h3 { font-size: 14px; }
.route-heading, .route-section-head, .route-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; }
.route-heading { justify-content: space-between; margin-bottom: 16px; }
.route-section { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; min-width: 0; }
.route-section-head { justify-content: space-between; margin-bottom: 8px; }
.route-muted { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.route-selector { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) minmax(220px, 1fr); gap: 12px; align-items: end; margin: 12px 0; }
.route-device-meta { padding-bottom: 9px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.route-submodules { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 14px 0 2px; }
.route-submodules button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 9px 14px; }
.route-submodules button:hover, .route-submodules button.active { color: var(--text); border-bottom-color: var(--accent); background: transparent; }
.route-table { max-width: 100%; overflow: auto; margin: 12px 0; }
.route-table th, .route-table td { font-size: 12px; min-width: 90px; overflow-wrap: anywhere; }
.route-table th { position: static; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.route-row { display: grid; grid-template-columns: minmax(100px, .8fr) repeat(7, minmax(120px, 1fr)) auto; gap: 9px; align-items: end; padding: 12px 0; border-bottom: 1px solid #e9edef; }
.route-row label { min-width: 0; }
.route-row input, .route-row select { min-width: 0; }
.route-suggestions { font-size: 11px; margin-top: 5px; }
.route-check { display: flex; align-items: center; gap: 7px; min-height: 38px; white-space: nowrap; }
.route-check input { width: 16px; min-height: 16px; }
.route-message { margin: 12px 0; padding: 10px 12px; border-left: 3px solid; overflow-wrap: anywhere; }
.route-error { color: var(--danger); background: #fff0ee; border-color: #bf5045; }
.route-success { color: #176248; background: #eff8f3; border-color: #38916e; }
.route-code { max-height: 360px; margin: 12px 0; padding: 12px; background: #f4f6f8; color: #33434d; border: 1px solid #dfe5e8; border-radius: 4px; white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.route-badge { display: inline-block; padding: 2px 7px; border-radius: 4px; color: #596775; background: #edf0f3; font-size: 11px; }
.route-badge.good { color: #176248; background: #e7f5ec; }
.route-badge.bad { color: #ab332a; background: #fcece9; }
.route-job { padding: 10px 0; border-bottom: 1px solid #e9edef; overflow-wrap: anywhere; }
.route-policies .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 1300px) { .route-row { grid-template-columns: repeat(4, minmax(120px, 1fr)); } }
@media (max-width: 760px) { .route-selector, .route-grid { grid-template-columns: minmax(0, 1fr); } .route-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .route-row > button { justify-self: end; } }
@media (max-width: 430px) { .route-row { grid-template-columns: minmax(0, 1fr); } }
