/* RUNQUEST V45 — content-first discovery */
.rq45-filterbar{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 1px 9px;margin:-3px 0 7px;position:relative;z-index:2}
.rq45-filterbar::-webkit-scrollbar{display:none}.rq45-filter{flex:0 0 auto;display:grid;gap:2px;min-width:118px}.rq45-filter span{font-size:7px;font-weight:950;letter-spacing:.65px;color:#6f91b3;text-transform:uppercase;padding-left:2px}.rq45-filter select{appearance:none;-webkit-appearance:none;min-height:38px;border:1px solid rgba(110,166,224,.18);border-radius:12px;background:#0b2544;color:#eaf5ff;padding:0 29px 0 10px;font-size:11px;font-weight:850;background-image:linear-gradient(45deg,transparent 50%,#78a8d8 50%),linear-gradient(135deg,#78a8d8 50%,transparent 50%);background-position:calc(100% - 14px) 16px,calc(100% - 10px) 16px;background-size:4px 4px,4px 4px;background-repeat:no-repeat}.rq45-filter-reset{flex:0 0 auto;align-self:end;min-height:38px;padding:0 12px;font-size:10px}.rq45-filter-count{font-size:9px;color:#7696b6;white-space:nowrap;align-self:end;padding:0 4px 11px}.rq45-profile{margin:11px 0 5px;padding:10px 12px 8px;border:1px solid rgba(106,167,231,.14);border-radius:15px;background:linear-gradient(180deg,rgba(9,32,58,.86),rgba(6,23,42,.86))}.rq45-profile-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:7px}.rq45-profile-head span{font-size:8px;color:#7d9dbd;text-transform:uppercase;font-weight:950;letter-spacing:.6px}.rq45-profile-head b{font-size:12px;color:#e7f3ff}.rq45-profile svg{display:block;width:100%;height:82px;overflow:visible}.rq45-profile svg text{fill:#6f8eac;font-size:8px;font-weight:800}.rq45-profile-area{fill:rgba(51,140,255,.12)}.rq45-profile-line{fill:none;stroke:#50a3ff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px rgba(80,163,255,.24))}.rq45-profile-empty{font-size:10px;color:#7896b5;padding:14px 0}.rq45-attempts{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 2px}.rq45-attempts span{padding:6px 8px;border:1px solid rgba(103,164,226,.13);border-radius:10px;background:rgba(9,28,50,.68);font-size:9px;color:#8faecc}.rq45-attempts b{color:#eaf5ff}.rq45-route-source{font-size:8.5px;color:#6d8dac;margin-top:5px}.rq-map-status{background:rgba(4,18,35,.78)!important;border-radius:10px;padding:5px 7px!important}.rq-map-track path:nth-of-type(2){filter:drop-shadow(0 0 3px rgba(52,140,255,.28))}
@media(max-width:620px){.rq45-filterbar{margin:0 0 5px;padding-bottom:6px}.rq45-filter{min-width:106px}.rq45-filter select{min-height:36px;font-size:10px}.rq45-filter-reset{min-height:36px}.rq45-profile{margin:8px 0 4px;padding:8px 10px 7px}.rq45-profile svg{height:68px}#view-segments .rq44-density{margin-bottom:9px}}
@media(max-height:650px) and (max-width:900px){.rq45-profile svg{height:54px}.rq45-profile{padding-top:6px;padding-bottom:4px}.rq45-profile-head{margin-bottom:2px}}
/* V45 mobile QA: preserve compact layout without shrinking touch targets. */
.nearbyControls #nearbyToggle{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:700px), (orientation:landscape) and (max-height:540px) and (pointer:coarse){
  .rq45-filter select,.rq45-filter-reset{min-height:44px}
  .rq45-filter span{font-size:8px}
  .rq45-filter-count{font-size:9.5px;padding-bottom:13px}
  .rq45-filterbar{scroll-snap-type:x proximity}
  .rq45-filter,.rq45-filter-reset{scroll-snap-align:start}
}
@media(max-width:700px), (orientation:landscape) and (max-height:540px) and (pointer:coarse){
  #view-segments .nearbyControls{height:auto!important;min-height:44px!important;max-height:none!important}
  #view-segments .nearbyControls #nearbyToggle{height:auto!important;min-height:44px!important;max-height:none!important;padding:8px 11px!important}
}
#rq45FilterToggle{display:none}
@media (orientation:landscape) and (max-height:540px) and (pointer:coarse){
  #view-segments{position:relative}
  #view-segments .pageHead{min-height:34px!important;max-height:38px!important;margin:1px 0 4px!important;align-items:center}
  #view-segments .pageHead h1{font-size:24px!important;line-height:1!important;letter-spacing:-1px!important;margin:0!important}
  #view-segments .pageHead .eyebrow,#view-segments .pageHead .muted{display:none!important}
  #view-segments #reloadSegments{min-height:38px!important;padding:6px 12px!important}
  #view-segments .weekSummary{display:none!important}
  #view-segments .rq-mobile-tabs[data-tabs="quests"]{height:34px!important;min-height:34px!important;margin-bottom:4px!important}
  #view-segments .questFilters{height:36px!important;min-height:36px!important;margin-bottom:4px!important}
  #view-segments .questFilters button{height:36px!important;min-height:36px!important;padding:4px 8px!important;font-size:10px!important}
  #view-segments .nearbyControls{display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;height:44px!important;min-height:44px!important;margin:0 0 5px!important}
  #view-segments .nearbyControls #nearbyToggle,#view-segments #rq45FilterToggle{display:inline-flex!important;width:auto!important;min-height:44px!important;height:44px!important;padding:7px 11px!important;font-size:10px!important;white-space:nowrap}
  #view-segments #nearbyStatus{display:none!important}
  #view-segments .rq44-density{display:none!important}
  #view-segments .rq45-filterbar{display:none!important}
  #view-segments .rq45-filterbar.rq45-landscape-open{display:flex!important;position:fixed!important;left:max(10px,env(safe-area-inset-left))!important;right:max(10px,env(safe-area-inset-right))!important;bottom:calc(58px + env(safe-area-inset-bottom))!important;z-index:120!important;margin:0!important;padding:10px!important;border:1px solid rgba(93,157,224,.24)!important;border-radius:17px!important;background:rgba(5,20,39,.97)!important;box-shadow:0 18px 60px rgba(0,0,0,.5)!important;overflow-x:auto!important;gap:8px!important;height:auto!important;max-height:74px!important}
  #view-segments .rq45-filterbar.rq45-landscape-open .rq45-filter span{display:none!important}
  #view-segments .rq45-filterbar.rq45-landscape-open .rq45-filter{min-width:130px!important;display:block!important}
  #view-segments .rq45-filterbar.rq45-landscape-open select,#view-segments .rq45-filterbar.rq45-landscape-open .rq45-filter-reset{height:44px!important;min-height:44px!important}
  #view-segments .rq45-filterbar.rq45-landscape-open .rq45-filter-count{align-self:center!important;padding:0 5px!important}
}
