.home-route-entry{--action:#b5e036;--action-text:#111;--action-readable:#b5e036;--entry-surface:#1d2717;--entry-button:#b5e036;--entry-button-text:#111;display:grid;margin:0 0 32px;border:1px solid var(--line);background:var(--card);overflow:hidden}
.route-entry-copy{padding:22px;background:var(--entry-surface);color:var(--text);min-width:0}
.route-entry-kicker{display:flex;justify-content:space-between;gap:12px;font-size:10px;line-height:1.5;letter-spacing:.04em}
.route-entry-kicker span{font-weight:bold;text-align:right;letter-spacing:0}
.route-entry-heading{display:flex;gap:18px;align-items:center;margin:16px 0 12px}
.route-entry-heading h1{font:normal clamp(24px,4vw,32px)/1.12 Bandeins,Arial,sans-serif;letter-spacing:-.025em;margin:0;min-width:0;flex:1;text-wrap:balance}
.route-entry-heading img{width:42px;height:66px;object-fit:contain;flex:none}
.route-entry-description{font-size:14px;line-height:1.5;margin:0 0 16px;max-width:55ch}
.route-entry-context{font-size:12px;line-height:1.5}
.route-entry-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 18px;padding-top:14px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
.route-entry-metrics div{display:flex;flex-direction:column;gap:8px;min-width:0}
.route-entry-metrics dt{font-size:10px;line-height:1.4}
.route-entry-metrics dd{font-size:25px;line-height:1.1;margin:0;letter-spacing:-.02em}
.route-entry-next{display:grid;gap:8px;margin:0 0 24px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.route-entry-next small{font-size:10px;letter-spacing:.04em}
.home-route-entry .route-entry-primary{width:100%;border:1px solid transparent;border-radius:var(--control-radius,10px);background:var(--entry-button);color:var(--entry-button-text);min-height:46px;font-size:14px}
.home-route-entry .route-entry-primary:hover{filter:brightness(.92)}
.home-route-entry .route-entry-primary:focus-visible{outline:3px solid var(--text);outline-offset:3px}
.route-entry-footnote{font-size:10px;line-height:1.6;margin:12px 0 0}
.route-entry-map{min-width:0;background:var(--card)}
.route-entry-map-head{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;line-height:1.5}
.route-entry-map-head span{font-size:9px;color:var(--muted)}
.route-entry-map .street-map-shell{border:0;margin:0;border-radius:0}
.route-entry-map .street-map-caption{display:none}
.route-entry-map .street-map{height:260px;min-height:260px}
.route-entry-map .street-map-note,.route-entry-map .schematic-fallback{margin:0;padding:12px 20px;font-size:10px;line-height:1.6}
.route-entry-map .schematic-fallback{padding-top:0}
.route-perspective{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:11px;color:var(--muted)}
.route-perspective>div{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:14px}
.route-perspective button{border:0;border-radius:var(--control-radius,10px);background:var(--card);color:var(--text);min-height:44px;padding:8px 15px;font-size:12px}
.route-perspective button[aria-pressed=true]{background:#ff2e2e;color:#fff}
.route-focus-workspace .btn,.route-focus-workspace .chip{border-radius:var(--control-radius,10px)}
.route-stop-reasons{border-top:1px solid var(--line);margin:14px 0 0;padding-top:6px;font-size:12px;line-height:1.65}
.route-stop-reasons summary,.driver-more summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;padding:10px 0;color:var(--text)}
.route-stop-reasons ul{padding-left:18px;margin:6px 0 14px;color:var(--muted)}
.route-stop-reasons li+li{margin-top:8px}
.driver-more{font-size:12px}
.route-traffic-tools>.traffic-demo-panel{border:0;margin:0;border-radius:0}
.route-traffic-tools summary{min-height:44px}
.route-affected-stops{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px;font-size:13px;line-height:1.4}
.route-affected-stops li{display:grid;gap:4px}
.route-affected-stops li>span:last-child{font-size:11px;color:var(--muted)}
.route-change-source{font-size:12px;color:var(--muted);line-height:1.6}
.route-stop-changed .stop-number{outline:2px solid var(--action-readable);outline-offset:3px}
.route-change-label{font-size:11px;color:var(--action-readable)}
.street-map .route-changed,.map-pin.route-changed{outline:3px solid #1f7dd4;outline-offset:3px}
.route-impact{margin:28px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.route-impact h2{font:normal 24px/1.2 Bandeins,Arial,sans-serif;letter-spacing:-.02em;margin:8px 0 12px;text-wrap:balance}
.route-impact p{font-size:12px;line-height:1.7;color:var(--muted);max-width:70ch}
.route-impact table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums;font-size:13px}
.route-impact th,.route-impact td{padding:14px 5px;text-align:right;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.route-impact th:first-child{width:30%;text-align:left}
.route-impact thead th{font-size:10px;font-weight:normal;color:var(--muted);line-height:1.4}
.route-impact tbody th{font-size:12px;font-weight:normal;line-height:1.4}
.route-impact td small{font-size:10px;color:var(--muted);white-space:nowrap}
.route-impact tbody td:nth-child(3){font-weight:bold}
.route-impact .text-btn{white-space:normal;text-align:left;min-height:44px;font-size:11px;line-height:1.6}
.route-impact .route-impact-note{font-size:10px;line-height:1.7;margin-top:16px}
.route-focus-workspace.is-driving .driver-card{margin-top:0}
@media(min-width:901px){
 .home-route-entry{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
 .route-entry-copy{padding:24px}
 .route-entry-heading h1{font-size:clamp(28px,2.4vw,34px)}
 .route-entry-heading img{width:50px;height:78px}
 .route-entry-map{display:flex;flex-direction:column}
 .route-entry-map .street-map-shell{flex:1;display:flex;flex-direction:column}
 .route-entry-map .street-map{flex:1;min-height:280px;height:100%}
 .route-impact{max-width:1000px}
}
@media(max-width:600px){
 .route-focus-workspace.is-driving .route-workspace-head,.route-focus-workspace.is-driving .route-at-a-glance,.route-focus-workspace.is-driving .material-context,.route-focus-workspace.is-driving .route-panel-intro{display:none}
 .route-focus-workspace.is-driving .fleet-selector>p{display:none}
 .route-focus-workspace.is-driving .fleet-selector{padding:8px 10px}
 .route-focus-workspace.is-driving .route-tabs{padding:0;margin:10px 0 16px}
 .route-focus-workspace.is-driving .driver-card{padding:20px;max-width:none}
 .route-focus-workspace.is-driving .driver-card h3{font-size:27px;margin:12px 0}
 .route-focus-workspace.is-driving .driver-card>.driver-note{font-size:10px;margin:10px 0 18px}
 .route-perspective button{padding:8px 12px}
 .route-entry-heading{gap:10px}
 .route-entry-heading h1{font-size:24px}
 .route-entry-copy{padding:22px 20px}
 .route-impact h2{font-size:22px}
}

.route-map-change-legend{padding:0 20px;font-size:11px;color:var(--muted)}

/* Pale BINAI green keeps the overview calm without changing the Route workspace. */
html[data-theme=light] .home-route-entry{--action-readable:#436000;--entry-surface:#eef5dc;--entry-button:#182315;--entry-button-text:#fff}
.route-entry-heading h1,.route-entry-metrics dd{color:var(--text)}
html[data-theme=light] .route-entry-heading img{filter:brightness(0)}
.route-fleet-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:48px;margin-top:10px;padding:10px 0;border:0;border-radius:var(--control-radius,10px);background:transparent;color:var(--text);text-align:left;font:700 12px/1.5 Arial,sans-serif}
.route-fleet-entry small{font-size:10px;font-weight:normal;text-align:right}
.route-fleet-entry:focus-visible{outline:3px solid var(--text);outline-offset:3px}
.route-fleet-board{margin:0 0 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.route-fleet-board>summary{display:flex;align-items:center;gap:14px;cursor:pointer;min-height:48px;font-size:12px;padding:10px 0;list-style:none}
.route-fleet-board>summary::-webkit-details-marker{display:none}
.route-fleet-board>summary span{color:var(--muted);font-size:10px;margin-left:auto}
.route-fleet-board>summary::after{content:"";width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin:0 5px 5px 0;flex:none}
.route-fleet-board[open]>summary::after{transform:rotate(225deg);margin-top:6px}
.route-fleet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px;padding:8px 0}
.route-fleet-row{padding:16px 0;border-top:1px solid var(--line);min-width:0}
.route-fleet-row>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
.route-fleet-status{font-size:10px;color:var(--muted)}
.route-fleet-status.active{color:var(--action-readable)}
.route-fleet-row h3{font-size:15px;line-height:1.4;letter-spacing:0;margin:12px 0 6px;overflow-wrap:anywhere}
.route-fleet-row p{font-size:11px;color:var(--muted);line-height:1.6;margin:0 0 14px}
.route-fleet-row .btn{width:100%;min-height:44px;font-size:12px}
.route-fleet-note{font-size:10px;color:var(--muted);line-height:1.6;margin:8px 0 18px}
.route-variants{margin:22px 0}
.route-variants>h3{font-size:18px;line-height:1.4;margin:0 0 14px;text-wrap:balance}
.route-variant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.route-variant{border:1px solid var(--line);padding:16px 12px;min-width:0;background:var(--card);display:flex;flex-direction:column}
.route-variant.selected{border-color:var(--action)}
.route-variant h4{font-size:13px;line-height:1.4;min-height:38px;margin:0 0 16px;font-weight:700;text-wrap:balance}
.route-variant dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 8px;margin:0;font-variant-numeric:tabular-nums}
.route-variant dt{font-size:9px;color:var(--muted);line-height:1.5;margin:0 0 6px}
.route-variant dd{font-size:18px;margin:0}
.route-variant>p{font-size:10px;color:var(--muted);line-height:1.5;margin:16px 0}
.route-variant .btn{font-size:11px;padding:10px 5px;min-height:44px;white-space:normal;line-height:1.4;margin-top:auto}
.route-variant.selected .btn{background:var(--card2);color:var(--text);border:1px solid var(--action)}
.route-variant-note{font-size:10px;color:var(--muted);line-height:1.7;margin:12px 0 0}
@media(max-width:900px){.route-fleet-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}}

.route-fleet-entry>span{text-decoration:underline;text-underline-offset:3px}

.route-variant h4{min-height:56px}
.route-variants-equal{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 14px}
