/* Route planner (ttc-routes.js) */
.ta-layout.trt-layout{max-width:1560px}
.trt-main{gap:16px!important;flex-basis:520px!important}
.trt-phonebar{display:none!important}
.trt-head{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.trt-title{flex:1 1 320px;min-width:0}
#ttc-feed-app .trt-title .ta-h1{margin:2px 0 0}
.trt-sub{font-size:14px;color:#8FA6AD;margin-top:4px;min-height:20px}
.trt-sub strong{color:#E8F1F3}
.trt-tools{display:flex;gap:8px;flex-wrap:wrap}
.trt-grid{display:grid;grid-template-columns:minmax(360px,460px) minmax(0,1fr);gap:20px;align-items:start}
.trt-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.trt-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.trt-mapwrap{position:sticky;top:84px;min-width:0}
.trt-mapcard{overflow:hidden;display:flex;flex-direction:column}
.trt-map{height:calc(100vh - 160px);min-height:420px}
#ttc-feed-app .trt-map.leaflet-container{background:#0E191D}
.trt-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6)}
.trt-map .leaflet-control-attribution{background:#0B1418cc!important;color:#8FA6AD}
.trt-map .leaflet-control-attribution a{color:#3FD2E8!important}
.trt-map .leaflet-bar a{background:#111D22;color:#E8F1F3!important;border-color:#23363D}
.trt-map .leaflet-popup-content-wrapper,.trt-map .leaflet-popup-tip{background:#111D22;color:#E8F1F3;border:1px solid #23363D}
.trt-map-empty{height:100%;display:flex;align-items:center;justify-content:center;color:#8FA6AD}
.trt-map-foot{display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:13px;color:#8FA6AD;border-top:1px solid #1E2F36}
.trt-map-foot .tf-ic{width:16px;height:16px;color:#3FD2E8}
.trt-pop{display:flex;flex-direction:column;gap:2px;font:13px Inter,sans-serif}
.trt-pop span{color:#8FA6AD}

/* Pins */
.trt-pin{display:flex!important;align-items:center;justify-content:center}
.trt-pin span{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:700 13px Inter,sans-serif;background:#0B1418;border:3px solid #3FD2E8;color:#E8F1F3;box-sizing:border-box;box-shadow:0 3px 10px #000a}
.trt-pin.start span{background:#3FD2E8;color:#062026}
.trt-pin.end span{border-color:#F2B26B}
.trt-pin.done span{border-color:#56CC8C;color:#6FDCA0}
.trt-pin.you span{width:22px;height:22px;background:#3FD2E8;border:3px solid #fff;box-shadow:0 0 0 6px #3FD2E844}

/* Cards */
.trt-card{padding:14px 16px!important;display:flex;flex-direction:column;gap:12px;min-width:0}
#ttc-feed-app .trt-h2{margin:0;font:700 17px 'Space Grotesk',Inter,sans-serif;color:#E8F1F3;display:flex;align-items:center;gap:8px}
.trt-count{font:700 12px Inter,sans-serif;background:#15242A;color:#8FA6AD;border-radius:10px;padding:2px 8px}
.trt-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.trt-small{font-size:12px!important;margin:0}
.trt-status{margin:0;font-size:13px;color:#3FD2E8;padding:0 4px}
.trt-status::before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;border:2px solid #3FD2E8;border-right-color:transparent;margin-right:8px;vertical-align:-1px;animation:trt-spin .8s linear infinite}
@keyframes trt-spin{to{transform:rotate(360deg)}}
.trt-chip{font-size:11px;font-weight:700;border-radius:6px;padding:2px 7px;white-space:nowrap;background:#15242A;color:#8FA6AD}
.trt-chip.start{background:#3FD2E824;color:#3FD2E8}
.trt-chip.end{background:#F2B26B24;color:#F2B26B}
.trt-chip.ok{background:#56CC8C24;color:#6FDCA0}
.trt-chip.warn{background:#F2B26B24;color:#F2B26B}
.trt-chip.office{background:#B28CF224;color:#C7A9FF}
.trt-wide{width:100%;justify-content:center}
#ttc-feed-app .trt-card input:not([type=checkbox]):not([type=file]),#ttc-feed-app .trt-card select,#ttc-feed-app .trt-dlg input,#ttc-feed-app .trt-dlg select{width:100%;box-sizing:border-box;height:44px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:0 12px;margin:0;color-scheme:dark}
#ttc-feed-app .trt-card .ta-field{gap:5px}
#ttc-feed-app .trt-dlg small.ta-dim{font-size:12px}

/* Add stops */
.trt-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#0E191D;border-radius:12px;padding:4px}
#ttc-feed-app .trt-tab{height:38px;border:0;border-radius:9px;background:none;color:#8FA6AD;font:600 14px Inter,sans-serif;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;padding:0 6px;white-space:nowrap}
.trt-tab .tf-ic{width:16px;height:16px}
#ttc-feed-app .trt-tab[aria-pressed=true]{background:#1E2F36;color:#E8F1F3}
.trt-add-body{display:flex;flex-direction:column;gap:10px;margin:0}
.trt-pad{margin:6px 2px}
.trt-dayrow{display:flex;align-items:center;gap:6px}
.trt-dayrow input{flex:1 1 140px}
#ttc-feed-app .trt-dayrow .trt-select{flex:1 1 140px}
.trt-fwd svg{transform:rotate(180deg)}
.trt-up svg{transform:rotate(-90deg)}.trt-down svg{transform:rotate(90deg)}
.trt-joblist{display:flex;flex-direction:column;max-height:280px;overflow:auto;border:1px solid #1E2F36;border-radius:12px}
#ttc-feed-app .trt-job{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid #1E2F36;cursor:pointer;margin:0;color:#E8F1F3}
.trt-job:first-child{border-top:0}
.trt-job:hover{background:#15242A}
.trt-job.on{opacity:.6;cursor:default}
#ttc-feed-app .trt-job input{width:18px;height:18px;accent-color:#3FD2E8;margin:0;flex-shrink:0}
.trt-job-text{flex:1;min-width:0;display:flex;flex-direction:column}
.trt-job-text strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trt-job-text small{font-size:12px;color:#8FA6AD;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trt-matches{display:flex;flex-direction:column;gap:6px}
.trt-matches:empty{display:none}
.trt-matches p{margin:0}
#ttc-feed-app .trt-match{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px 12px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:14px Inter,sans-serif;cursor:pointer}
.trt-match:hover{border-color:#3FD2E8}
.trt-match .tf-ic{width:18px;height:18px;color:#3FD2E8;flex-shrink:0}
.trt-match span{flex:1;min-width:0}
.trt-match b{color:#3FD2E8;font-size:13px}
.trt-coords summary,.trt-cols summary{cursor:pointer;font-size:13px;color:#8FA6AD;padding:4px 0}
.trt-coords-row{display:flex;gap:8px;margin-top:8px;align-items:center}
.trt-coords-row input{flex:1}
.trt-drop{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 16px;border:2px dashed #23363D;border-radius:14px;cursor:pointer;text-align:center;color:#E8F1F3;position:relative}
.trt-drop:hover,.trt-drop:focus-within{border-color:#3FD2E8}
.trt-drop .tf-ic{width:28px;height:28px;color:#3FD2E8}
.trt-drop small{color:#8FA6AD}
.trt-file-in{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.trt-sheet{display:flex;flex-direction:column;gap:10px}
.trt-sheet-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#0E191D}
.trt-sheet-head>.tf-ic{width:22px;height:22px;color:#3FD2E8}
.trt-sheet-head>span{flex:1;min-width:0;display:flex;flex-direction:column}
.trt-sheet-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trt-sheet-head small{font-size:12px;color:#8FA6AD}
.trt-cols-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.trt-warn{margin:0;font-size:13px;color:#F2B26B}

/* Stops */
.trt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.trt-stop{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-top:1px solid #1E2F36;transition:background .3s}
.trt-stop:first-child{border-top:0}
.trt-stop.flash{background:#3FD2E81a;border-radius:10px}
#ttc-feed-app .trt-num{flex-shrink:0;width:30px;height:30px;border-radius:50%;border:2.5px solid #3FD2E8;background:#0B1418;color:#E8F1F3;font:700 13px Inter,sans-serif;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;margin-top:2px}
.trt-stop.nopin .trt-num{border-color:#F2B26B;color:#F2B26B}
.trt-stop.done .trt-num{border-color:#56CC8C}
.trt-stop-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.trt-stop-name{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:600;font-size:14px}
.trt-stop-name a,.trt-stop-name>span:first-child{color:#E8F1F3!important;min-width:0;overflow-wrap:anywhere}
.trt-stop-name a:hover{color:#7FE3F2!important}
.trt-stop-main>small{font-size:12px;color:#8FA6AD;overflow-wrap:anywhere}
.trt-stop-main>small.trt-eta{color:#3FD2E8;font-weight:600}
#ttc-feed-app .trt-pinfix{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;border:0;background:#F2B26B1f;color:#F2B26B;border-radius:8px;padding:5px 9px;font:600 12px Inter,sans-serif;cursor:pointer;margin-top:4px}
#ttc-feed-app .trt-pinfix.soft{background:#15242A;color:#C9D8DC}
.trt-pinfix .tf-ic{width:14px;height:14px}
.trt-fix{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.trt-fix p{margin:0;font-size:12px}
.trt-stop-tools{display:flex;gap:0;flex-shrink:0}
.trt-stop-tools .tf-iconbtn:disabled{opacity:.3}
.trt-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:20px 10px;text-align:center}
.trt-empty .tf-ic{width:28px;height:28px;color:#3FD2E8;margin-bottom:4px}

/* Trip */
.trt-trip-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.trt-go-row{display:flex;gap:8px}
.trt-go-row .ta-btn{flex:1;justify-content:center}

/* Result */
.trt-result{border-color:#3FD2E855!important}
.trt-result-head{display:flex;flex-direction:column;gap:2px}
.trt-result-head small{font-size:12px}
.trt-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.trt-tile{background:#0E191D;border-radius:12px;padding:10px;display:flex;flex-direction:column;min-width:0}
.trt-tile span{font-size:11px;color:#8FA6AD;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.trt-tile strong{font:700 17px 'Space Grotesk',Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trt-tile.hi strong{color:#3FD2E8}
.trt-nav{display:flex;gap:8px;flex-wrap:wrap}
.trt-nav .ta-btn{flex:1 1 180px;justify-content:center}
.trt-legs{display:flex;gap:6px;flex-wrap:wrap;font-size:13px}
.trt-legs a{color:#3FD2E8!important;background:#15242A;border-radius:8px;padding:4px 10px}
.trt-timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.trt-tl{display:flex;gap:12px;align-items:stretch}
.trt-tl>i{flex:0 0 28px;position:relative;display:flex;justify-content:center;align-items:flex-start;font-style:normal}
.trt-tl>i::before{content:'';position:absolute;top:0;bottom:0;left:13px;width:2px;background:#23363D}
.trt-tl:first-child>i::before{top:16px}
.trt-tl:last-child>i::before{bottom:auto;height:16px}
.trt-tl>i>b{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;background:#0B1418;border:2px solid #3FD2E8;display:flex;align-items:center;justify-content:center;font:700 12px Inter,sans-serif;color:#E8F1F3;margin:3px 0;box-sizing:border-box}
.trt-tl.start>i>b{width:14px;height:14px;background:#3FD2E8;margin:9px 0}
.trt-tl>div{display:flex;flex-direction:column;min-width:0;padding:5px 0}
.trt-tl>div strong{font-size:14px;overflow-wrap:anywhere}
.trt-tl>div small{font-size:12px;color:#8FA6AD}
.trt-tl.drive>small{padding:7px 0;font-size:12px;color:#6F878E}
.trt-share{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #1E2F36;padding-top:12px}
.trt-share .ta-btn{flex:1 1 auto;justify-content:center}

/* Saved routes */
.trt-dlg-head{display:flex;align-items:center;justify-content:space-between}
.trt-saved{display:flex;flex-direction:column;gap:6px;max-height:60vh;overflow:auto}
.trt-saved-row{display:flex;align-items:center;gap:4px}
#ttc-feed-app .trt-saved-open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:10px;border:0;border-radius:12px;background:#0E191D;color:#E8F1F3;text-align:left;cursor:pointer;font:14px Inter,sans-serif}
.trt-saved-open:hover{background:#15242A}
.trt-saved-ic{width:40px;height:40px;border-radius:12px;background:#3FD2E81f;color:#3FD2E8;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.trt-saved-ic .tf-ic{width:20px;height:20px}
.trt-saved-text{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.trt-saved-text strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trt-saved-text small{font-size:12px;color:#8FA6AD}
.trt-saved-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:24px 8px;text-align:center}
.trt-saved-empty .tf-ic{width:28px;height:28px;color:#3FD2E8}

@media(max-width:1099px){
  .trt-grid{grid-template-columns:minmax(0,1fr)}
  .trt-mapwrap{position:static;order:-1}
  .trt-map{height:44vh;min-height:280px}
}
@media(max-width:759px){
  .trt-main{padding:0 12px!important;gap:12px!important}
  .trt-phonebar{display:flex!important}
  #ttc-feed-app .trt-title .ta-h1,.trt-title .ta-kicker{display:none}
  .trt-title{flex-basis:100%}
  .trt-sub{margin:0;font-size:13px}
  .trt-tools{width:100%}
  .trt-tools .ta-btn{flex:1 1 auto;justify-content:center;height:40px;padding:0 10px}
  .trt-tools .ta-btn:not(.pri){flex:0 0 auto}
  .trt-hide-sm{display:none}
  .trt-grid{gap:12px}
  .trt-map{height:38vh;min-height:240px}
  .trt-mapcard{border-radius:14px!important}
  .trt-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .trt-trip-grid{grid-template-columns:1fr 1fr}
  .trt-cols-grid{grid-template-columns:1fr}
  .trt-card{padding:12px!important}
  .trt-stop-tools .tf-iconbtn.sm{width:32px;height:32px}
}
@media(max-width:380px){
  .trt-trip-grid{grid-template-columns:1fr}
  #ttc-feed-app .trt-tab{font-size:13px}
  .trt-tab .tf-ic{display:none}
}
@media print{
  body.tf-active #ttc-feed-app>.tf-header,.tf-app-rail,.tf-tabbar,.trt-phonebar,.trt-tools,.trt-add,.trt-trip,.trt-mapwrap,.trt-stop-tools,.trt-share,.trt-nav,.trt-legs,.trt-pinfix,.tf-notice,.trt-status,.tf-banner{display:none!important}
  body.tf-active,body.tf-active #ttc-feed-app{background:#fff!important;color:#000!important}
  .trt-grid{display:block}
  .tf-card{background:#fff!important;border:1px solid #ccc!important;break-inside:avoid}
  #ttc-feed-app .trt-h2,.trt-stop-name a,.trt-stop-name>span:first-child,.trt-tl>div strong,.trt-tile strong,.trt-tl>i>b{color:#000!important}
  .trt-tl>i>b{background:#fff}
}
