:root{
  --bg:#06172a; --navy:#102747; --navy2:#0b2038; --cyan:#38c7ff; --cyan2:#1ea6e7;
  --purple:#8e6ef3; --purple2:#4f357e; --text:#f4f7ff; --muted:#a8b7ca; --line:rgba(80,198,255,.22);
  --green:#38d996; --amber:#ffbd4a; --red:#ff667a; --panel:rgba(11,35,60,.92);
}
*{box-sizing:border-box} html,body{height:100%;margin:0} body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);overflow:hidden}
a{color:inherit;text-decoration:none} button,input{font:inherit}
.app-shell{height:100vh;display:grid;grid-template-rows:94px 82px 1fr 46px;background:radial-gradient(circle at 80% 25%,rgba(74,74,164,.22),transparent 35%),linear-gradient(160deg,#09243d,#07172c 65%,#111b45)}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:#102747;border-bottom:1px solid rgba(64,201,255,.6);z-index:20}.brand-wrap{display:flex;align-items:center;gap:22px}.paj-logo{width:180px;height:70px;object-fit:cover;object-position:left center;border-radius:2px}.brand-title{font-size:23px;font-weight:900;letter-spacing:.5px}.brand-subtitle{font-size:16px;color:#b89fff;margin-top:2px}.top-action{border:1px solid var(--cyan);padding:13px 20px;border-radius:12px;font-weight:800;font-size:14px;background:rgba(5,29,53,.45)}.top-action:hover{background:rgba(56,199,255,.12)}
.title-strip{background:linear-gradient(90deg,rgba(7,27,48,.96),rgba(18,51,91,.92)),repeating-linear-gradient(90deg,transparent 0 80px,rgba(255,255,255,.02) 80px 82px);border-bottom:1px solid rgba(56,199,255,.38)}.title-inner{height:100%;display:flex;align-items:center;padding:0 42px;gap:16px;position:relative}.section-no{font-size:42px;font-weight:900;color:rgba(255,255,255,.06);margin-right:2px}.title-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(56,199,255,.3);border-radius:13px;background:rgba(56,199,255,.08)}.title-inner h1{font-size:28px;line-height:1;margin:0 0 8px;font-weight:950;letter-spacing:.1px}.title-inner p{margin:0;color:#b9c7d8;font-size:14px}.source-pill{margin-left:auto;padding:8px 12px;border-radius:999px;border:1px solid rgba(181,148,255,.28);color:#cdbaff;background:rgba(124,83,195,.15);font-size:11px;font-weight:900;letter-spacing:1px}
.workspace{min-height:0;display:grid;grid-template-columns:310px 1fr;gap:14px;padding:14px 20px}.sidebar,.map-panel{border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.22)}.sidebar{background:linear-gradient(180deg,rgba(16,44,75,.97),rgba(7,26,45,.98));display:flex;flex-direction:column;padding:18px}.sidebar-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.eyebrow,.selected-label,.vehicle-kicker{font-size:10px;letter-spacing:1.3px;color:#80dfff;font-weight:900}.sidebar h2{font-size:24px;margin:2px 0 0}.searchbox{display:flex;align-items:center;gap:9px;background:rgba(3,17,32,.55);border:1px solid rgba(100,188,237,.18);border-radius:12px;padding:0 12px;margin-bottom:12px}.searchbox input{height:42px;min-width:0;width:100%;border:0;outline:0;color:#fff;background:transparent}.searchbox input::placeholder{color:#71869e}
.route-card{border:1px solid rgba(133,172,211,.14);background:rgba(16,48,80,.6);border-radius:12px;padding:10px;display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;color:#fff;text-align:left;cursor:pointer;width:100%;margin-bottom:7px;transition:.18s ease}.route-card:hover{border-color:rgba(56,199,255,.44);transform:translateY(-1px)}.route-card.active{background:linear-gradient(135deg,rgba(71,53,119,.65),rgba(19,70,105,.74));border-color:rgba(142,110,243,.72);box-shadow:0 0 0 1px rgba(142,110,243,.14) inset}.route-badge{height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(142,110,243,.18);border:1px solid rgba(167,140,255,.26);color:#dbcfff;font-size:11px;font-weight:950}.route-badge.all{color:#7fe0ff;background:rgba(56,199,255,.1);border-color:rgba(56,199,255,.25)}.route-text{min-width:0}.route-text strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.route-text span{display:block;color:#93a8bd;font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.route-count{min-width:28px;height:25px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.07);color:#c4d4e7;font-size:11px;font-weight:900}.route-list{flex:1;overflow:auto;padding-right:3px}.route-list::-webkit-scrollbar{width:5px}.route-list::-webkit-scrollbar-thumb{background:rgba(117,168,208,.35);border-radius:9px}.loading-list{color:#8ca2b8;padding:20px;text-align:center;font-size:12px}.sidebar-foot{padding-top:10px;border-top:1px solid rgba(255,255,255,.06);display:flex;gap:13px;color:#8298ae;font-size:11px}.legend-row{display:flex;align-items:center;gap:6px}.dot{width:7px;height:7px;border-radius:50%}.dot.live{background:var(--green);box-shadow:0 0 9px rgba(56,217,150,.7)}.dot.delayed{background:var(--amber)}
.map-panel{position:relative;background:#07192d;min-height:0}.map-toolbar{position:absolute;z-index:500;left:18px;right:18px;top:16px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.stats-row{pointer-events:auto;display:flex;align-items:center;gap:8px;padding:7px;border-radius:15px;background:rgba(5,22,39,.88);border:1px solid rgba(83,180,229,.22);box-shadow:0 10px 30px rgba(0,0,0,.22);backdrop-filter:blur(12px)}.status-chip{height:44px;padding:0 13px;border-radius:11px;display:flex;align-items:center;gap:8px;font-size:12px}.status-chip.live{background:rgba(56,217,150,.1);color:#76ffc2}.status-chip.delay{background:rgba(255,189,74,.12);color:#ffd37e}.status-chip.offline{background:rgba(255,102,122,.12);color:#ff9aaa}.pulse{width:8px;height:8px;background:currentColor;border-radius:50%;box-shadow:0 0 0 0 currentColor;animation:pulse 2s infinite}.stat{min-width:82px;padding:2px 13px;border-left:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column}.stat.wide{min-width:145px}.stat-value{font-size:17px;font-weight:950}.stat-value.small{font-size:13px}.stat-label{font-size:9px;color:#8ea4ba;margin-top:2px;text-transform:uppercase;letter-spacing:.5px}.route-toggle{pointer-events:auto}
#map{height:100%;width:100%;background:#07192d}.leaflet-container{font-family:inherit}.leaflet-tile-pane{filter:brightness(.58) invert(1) contrast(1.35) hue-rotate(178deg) saturate(.45)}.leaflet-control-zoom{display:none}.leaflet-control-attribution{display:none}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#102747;color:#fff}.leaflet-popup-content{margin:10px 12px}
.bus-marker-wrap{background:transparent!important;border:0!important}.bus-marker{position:relative;min-width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#8e6ef3,#6541b0);border:2px solid rgba(255,255,255,.78);box-shadow:0 7px 18px rgba(0,0,0,.38),0 0 0 4px rgba(142,110,243,.17);display:grid;place-items:center;color:white;font-weight:950;font-size:9px}.bus-marker.stale{background:linear-gradient(145deg,#9a7734,#6b5222);opacity:.82}.bus-marker .bus-glyph{font-size:15px;line-height:1}.bus-marker .route-tag{position:absolute;top:-9px;right:-11px;min-width:29px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:7px;background:#05182a;border:1px solid rgba(100,208,255,.45);font-size:8px;white-space:nowrap}.bus-marker .bearing{position:absolute;bottom:-11px;left:50%;transform-origin:center;color:#64d4ff;font-size:9px;text-shadow:0 1px 3px #000}
.map-floating-left{position:absolute;z-index:500;right:18px;bottom:46px;display:flex;flex-direction:column;gap:8px}.map-control,.icon-btn{border:1px solid rgba(95,190,235,.25);background:rgba(8,31,53,.9);color:#fff;border-radius:11px;cursor:pointer}.map-control{width:42px;height:42px;font-size:18px;box-shadow:0 8px 22px rgba(0,0,0,.2)}.map-control:hover{background:#143b60}.selected-route-panel,.vehicle-sheet{position:absolute;z-index:600;background:rgba(9,29,50,.96);border:1px solid rgba(151,119,241,.42);border-radius:17px;box-shadow:0 22px 60px rgba(0,0,0,.42);backdrop-filter:blur(14px)}.selected-route-panel{left:18px;bottom:46px;width:min(390px,calc(100% - 36px));padding:16px 46px 16px 17px}.selected-title{font-size:24px;font-weight:950;margin-top:2px}.selected-desc{color:#a7b7c8;font-size:12px;margin-top:3px}.selected-meta{display:flex;gap:18px;color:#69d5ff;font-size:11px;font-weight:800;margin-top:10px}.close-mini{position:absolute;right:10px;top:10px;width:27px;height:27px;border-radius:9px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);color:#d7e2ed;cursor:pointer}.vehicle-sheet{right:18px;bottom:46px;width:330px;padding:17px}.vehicle-head{display:flex;align-items:center;gap:12px;padding-right:25px}.vehicle-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:rgba(142,110,243,.17);font-size:22px}.vehicle-route{font-size:24px;font-weight:950;margin-top:2px}.vehicle-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.vehicle-grid>div{padding:9px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}.vehicle-grid span{display:block;font-size:9px;color:#7f95aa;text-transform:uppercase}.vehicle-grid strong{display:block;margin-top:4px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary-btn{width:100%;margin-top:12px;height:38px;border:0;border-radius:11px;background:linear-gradient(90deg,#7352c7,#249ed0);color:white;font-weight:900;cursor:pointer}.map-credit{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);z-index:450;font-size:9px;color:#6f8599;background:rgba(3,15,26,.66);padding:4px 7px;border-radius:7px;white-space:nowrap}.hidden{display:none!important}
footer{display:grid;place-items:center;color:#7f8da0;font-size:13px;background:#061426;border-top:1px solid rgba(255,255,255,.04)}.mobile-only{display:none}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(56,217,150,.5)}70%{box-shadow:0 0 0 8px rgba(56,217,150,0)}100%{box-shadow:0 0 0 0 rgba(56,217,150,0)}}
@media(max-width:900px){body{overflow:hidden}.app-shell{grid-template-rows:68px 70px 1fr 0}.topbar{padding:0 14px}.paj-logo{width:112px;height:46px}.brand-wrap{gap:10px}.brand-title{font-size:13px}.brand-subtitle{font-size:10px}.top-action{padding:9px 11px;font-size:10px}.title-inner{padding:0 14px;gap:9px}.section-no,.source-pill{display:none}.title-icon{width:38px;height:38px}.title-inner h1{font-size:18px;margin-bottom:4px}.title-inner p{font-size:10px}.workspace{grid-template-columns:1fr;padding:0;gap:0}.map-panel{border-radius:0;border-left:0;border-right:0}.sidebar{position:absolute;z-index:1000;left:10px;top:148px;bottom:10px;width:min(330px,calc(100vw - 20px));transform:translateX(-110%);transition:.22s ease;box-shadow:0 20px 60px rgba(0,0,0,.52)}.sidebar.open{transform:translateX(0)}.mobile-only{display:inline-flex}.icon-btn{width:34px;height:34px;align-items:center;justify-content:center}.map-toolbar{top:10px;left:10px;right:10px;align-items:flex-start}.stats-row{gap:2px;padding:5px}.status-chip{height:38px;padding:0 9px}.stat{min-width:58px;padding:2px 8px}.stat.wide{display:none}.stat-value{font-size:14px}.stat-label{font-size:7px}.route-toggle{height:40px;border:1px solid rgba(84,194,238,.3);background:rgba(7,31,53,.92);color:white;border-radius:12px;padding:0 10px;font-size:11px;font-weight:900}.selected-route-panel{left:10px;bottom:36px;width:calc(100% - 20px)}.vehicle-sheet{left:10px;right:10px;bottom:36px;width:auto}.map-floating-left{right:10px;bottom:150px}.map-credit{bottom:5px}.leaflet-tile-pane{filter:brightness(.61) invert(1) contrast(1.3) hue-rotate(178deg) saturate(.45)}footer{display:none}}

/* =========================================================
   BMJ LIVE - ISOLATED UI OVERRIDES v1.0.0
   Only applies inside /bmj-live/
   ========================================================= */

/* Wider title support */
.title-inner h1{white-space:nowrap}

/* Selected route meta wraps safely */
.selected-meta{flex-wrap:wrap;row-gap:5px}

/* Vehicle detail card: safe padding and wrapping */
.vehicle-sheet{
  width:min(430px,calc(100% - 36px));
  padding:20px;
  overflow:hidden;
}
.vehicle-head{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding-right:34px;
}
.vehicle-title-wrap{min-width:0}
.vehicle-route{font-size:27px;line-height:1.05}
.vehicle-route-name{
  margin-top:4px;
  color:#9eb0c3;
  font-size:11px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}
.vehicle-status{
  align-self:start;
  margin-top:2px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(56,217,150,.28);
  background:rgba(56,217,150,.10);
  color:#7ff0c1;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}
.vehicle-grid{
  grid-template-columns:minmax(0,1.35fr) minmax(120px,.65fr);
  gap:9px;
}
.vehicle-grid>div{min-width:0;padding:11px}
.vehicle-grid>div.wide{grid-column:1/2}
.vehicle-grid strong{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.3;
}

/* =========================================================
   3D TOP-VIEW BUS MARKER
   ========================================================= */
.bus-marker-wrap{
  background:transparent!important;
  border:0!important;
}
.bus-marker{
  position:relative!important;
  width:48px!important;
  height:64px!important;
  min-width:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:block!important;
  overflow:visible!important;
  color:#fff;
}
.bus-svg-wrap{
  position:absolute;
  z-index:2;
  left:50%;
  top:13px;
  width:31px;
  height:49px;
  transform:translateX(-50%) rotate(var(--bearing,0deg));
  transform-origin:50% 50%;
  transition:transform .45s ease,filter .25s ease;
  filter:drop-shadow(0 5px 7px rgba(0,0,0,.42));
}
.bus-svg{display:block;width:100%;height:100%;overflow:visible}
.bus-marker .route-tag{
  position:absolute!important;
  z-index:20!important;
  top:-2px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  display:grid!important;
  place-items:center!important;
  height:20px!important;
  min-width:31px!important;
  max-width:54px!important;
  padding:0 6px!important;
  border-radius:7px!important;
  border:1px solid rgba(84,211,255,.65)!important;
  background:rgba(3,24,43,.97)!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-shadow:0 4px 10px rgba(0,0,0,.42)!important;
}
.bus-marker.stale{opacity:.68}
.bus-marker.stale .route-tag{border-color:rgba(255,190,70,.72)!important;color:#ffd47a!important}
.bus-marker.selected .bus-svg-wrap{
  transform:translateX(-50%) rotate(var(--bearing,0deg)) scale(1.14);
  filter:drop-shadow(0 0 6px rgba(56,199,255,.85)) drop-shadow(0 6px 8px rgba(0,0,0,.42));
}
.bus-marker.selected .route-tag{
  background:#07517c!important;
  border-color:#68eaff!important;
  box-shadow:0 0 10px rgba(55,201,255,.45)!important;
}
.bus-marker:hover .bus-svg-wrap{
  filter:drop-shadow(0 0 5px rgba(75,215,255,.6)) drop-shadow(0 7px 9px rgba(0,0,0,.4));
}

@media(max-width:1150px){
  .title-inner h1{font-size:24px}
}
@media(max-width:900px){
  .title-inner h1{white-space:normal;font-size:16px}
  .vehicle-sheet{left:10px;right:10px;bottom:36px;width:auto;max-width:none;padding:16px}
  .vehicle-head{grid-template-columns:44px minmax(0,1fr);padding-right:30px}
  .vehicle-status{grid-column:2;margin-top:2px;justify-self:start}
  .vehicle-grid{grid-template-columns:1fr 1fr}
  .vehicle-grid>div.wide{grid-column:1/3}
  .bus-marker{width:44px!important;height:58px!important}
  .bus-svg-wrap{width:28px;height:45px;top:12px}
  .bus-marker .route-tag{min-width:29px!important;max-width:48px!important;height:18px!important;font-size:8px!important}
}

/* Header and hero matched to PAJ reference */
.hero-banner{
  position:relative;
  z-index:5;
  flex:0 0 auto;
  min-height:76px;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  overflow:hidden;
  border-bottom:1px solid rgba(41,168,224,.5);
  background:
    linear-gradient(90deg,rgba(5,22,43,.95),rgba(5,30,58,.78),rgba(5,30,58,.28)),
    url('../../../images/bas-bg3.png') center/cover no-repeat;
}

.hero-text-group{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.page-num{
  font-size:34px;
  font-weight:900;
  color:rgba(255,255,255,.08);
  line-height:1;
}

.page-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(41,168,224,.14);
  border:1px solid rgba(41,168,224,.25);
  color:#70d3ff;
  font-size:22px;
}

.hero-title{
  font-size:clamp(21px,2vw,31px);
  font-weight:900;
  color:#fff;
  line-height:1.1;
  margin:0 0 3px;
}

.hero-sub{
  font-size:11px;
  color:#bad0e6;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:850px;
}

.paj-back-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  color:#e7f6ff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.paj-back-btn:hover{
  color:#fff;
  background:rgba(41,168,224,.12);
  border-color:rgba(41,168,224,.35);
}



/* Standalone header; shared header source was not supplied. */
.app-shell{height:100vh;height:100dvh;grid-template-rows:auto auto minmax(0,1fr) auto}
.topbar{padding:12px 24px;min-height:68px;gap:16px;flex-shrink:0}
.brand-wrap{gap:14px;min-width:0}.brand-copy{min-width:0}
.paj-logo{width:auto;height:clamp(30px,5vh,60px);max-width:160px;object-fit:contain;border-radius:0;flex-shrink:0}
.brand-title{font-size:clamp(13px,1.4vw,23px);line-height:1.2}.brand-subtitle{font-size:clamp(10px,.9vw,16px)}
.top-action{font-size:11px;padding:8px 12px;border-radius:8px;white-space:nowrap}
.hero-banner{width:100%}.hero-title{font-family:system-ui,sans-serif}.hero-sub{font-weight:400;margin:0}
.hero-content{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;min-width:0}
.hero-text-group>div:last-child{min-width:0}.page-icon svg{width:24px;height:24px}
.workspace{position:relative;min-width:0}.sidebar,.map-panel{min-width:0}.sidebar{min-height:0}.route-list{min-height:0}
footer{min-height:34px;padding:8px 16px;text-align:center;font-size:clamp(10px,.85vw,14px)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #70d3ff;outline-offset:3px}
@media(max-width:900px){
 .app-shell{grid-template-rows:auto auto minmax(0,1fr) auto}
 .topbar{padding:10px 14px;min-height:60px}.paj-logo{max-width:105px;height:38px}
 .hero-banner{padding:12px 14px}.hero-title{font-size:clamp(17px,3vw,23px)}
 .hero-sub{white-space:normal;font-size:11px;line-height:1.4}
 .page-num{display:none}.hero-text-group{gap:10px}
 .sidebar{top:10px;bottom:10px}.workspace{overflow:hidden}
 footer{display:grid;font-size:9px;min-height:28px;padding:6px 10px}
}
@media(max-width:600px){
 .hero-content{flex-wrap:wrap;gap:10px}.hero-text-group{width:100%}
 .paj-back-btn{margin-left:54px;font-size:10px;padding:7px 10px}
 .brand-title{font-size:11px}.brand-subtitle{font-size:10px}.brand-wrap{gap:9px}
 .top-action{font-size:10px;padding:8px}.topbar{gap:8px}
 .map-toolbar{gap:4px}.stat{min-width:48px;padding:2px 5px}.status-chip{padding:0 7px}
 .route-toggle{padding:0 7px}.stats-row{gap:0}
}
@media(max-height:500px){
 .topbar{min-height:44px;padding:5px 14px}.paj-logo{height:30px}
 .hero-banner{min-height:58px;padding:6px 14px}.hero-title{font-size:18px}
 .hero-content{flex-wrap:nowrap}.hero-text-group{width:auto}.paj-back-btn{margin-left:0}
 .vehicle-sheet{max-height:calc(100% - 20px);overflow-y:auto!important}
}
@media(prefers-reduced-motion:reduce){.pulse{animation:none}}

.hero-title{white-space:normal;overflow-wrap:break-word}

/* BMJ_OPERATIONAL_STATUS_V104B */
.bmj-route-op{display:block;margin-top:5px;min-height:18px}
.bmj-op{--c:#8799aa;display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:8px 10px;border-radius:12px;border:1px solid rgba(135,153,170,.28);background:rgba(6,27,46,.86);color:#f3f8fc;box-sizing:border-box}
.bmj-op.compact{padding:3px 7px;border-radius:999px;gap:5px}
.bmj-op .dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--c)}
.bmj-op .copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.bmj-op .copy b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bmj-op .copy small{font-size:10px;color:#b8c8d6;line-height:1.3}
.bmj-op.compact .copy b{font-size:8px}
.bmj-op-moving{--c:#3ee0a2;border-color:rgba(62,224,162,.28);background:rgba(62,224,162,.08)}
.bmj-op-waiting{--c:#ffc14d;border-color:rgba(255,193,77,.28);background:rgba(255,193,77,.08)}
.bmj-op-not-started{--c:#7db9ff;border-color:rgba(125,185,255,.28);background:rgba(125,185,255,.08)}
.bmj-op-idle{--c:#58c7ff;border-color:rgba(88,199,255,.28);background:rgba(88,199,255,.08)}
.bmj-op-gps-missing{--c:#ff6b6b;border-color:rgba(255,107,107,.32);background:rgba(255,107,107,.08)}
.bmj-selected-status{margin-top:12px}
.bmj-selected-status .bmj-op{width:100%}
.bmj-selected-status .copy b{font-size:12px}
.bmj-selected-status .copy small{font-size:11px}
@media(max-width:900px){.bmj-op.compact{max-width:180px}.bmj-selected-status .copy b{font-size:11px}}

/* =========================================================
   BMJ_OPERATIONAL_STATUS_V104C_POLISH
   Compact premium status badges
   ========================================================= */

/* Status under each route card */
.route-card .bmj-route-op {
  display: flex !important;
  align-items: center;
  margin-top: 6px !important;
  min-height: 20px !important;
  line-height: 1 !important;
}

.route-card .bmj-op.compact {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 20px !important;
  padding: 3px 8px 3px 7px !important;
  gap: 6px !important;
  border-radius: 999px !important;
  background: rgba(7, 27, 46, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 3px 10px rgba(0,0,0,.10) !important;
  backdrop-filter: blur(8px);
}

.route-card .bmj-op.compact .dot {
  width: 7px !important;
  height: 7px !important;
  flex: 0 0 7px !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.025);
}

.route-card .bmj-op.compact .copy {
  display: block !important;
  line-height: 1 !important;
}

.route-card .bmj-op.compact .copy b {
  display: block !important;
  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .55px !important;
  color: #c8d5e2 !important;
}

/* Per-status accent: subtle, not a big button */
.route-card .bmj-op-ended {
  background: rgba(117, 137, 157, .07) !important;
  border-color: rgba(145, 163, 180, .18) !important;
}
.route-card .bmj-op-ended .dot { background: #8396a8 !important; }
.route-card .bmj-op-ended .copy b { color: #aebdcc !important; }

.route-card .bmj-op-waiting {
  background: rgba(255, 193, 77, .08) !important;
  border-color: rgba(255, 193, 77, .20) !important;
}
.route-card .bmj-op-waiting .dot {
  background: #ffc14d !important;
  box-shadow: 0 0 8px rgba(255,193,77,.28) !important;
}
.route-card .bmj-op-waiting .copy b { color: #ffd883 !important; }

.route-card .bmj-op-moving {
  background: rgba(62, 224, 162, .08) !important;
  border-color: rgba(62, 224, 162, .20) !important;
}
.route-card .bmj-op-moving .dot {
  background: #3ee0a2 !important;
  box-shadow: 0 0 8px rgba(62,224,162,.30) !important;
}
.route-card .bmj-op-moving .copy b { color: #76ebbd !important; }

.route-card .bmj-op-idle {
  background: rgba(88, 199, 255, .08) !important;
  border-color: rgba(88, 199, 255, .20) !important;
}
.route-card .bmj-op-idle .dot { background: #58c7ff !important; }
.route-card .bmj-op-idle .copy b { color: #8edbff !important; }

.route-card .bmj-op-gps-missing {
  background: rgba(255, 107, 107, .08) !important;
  border-color: rgba(255, 107, 107, .22) !important;
}
.route-card .bmj-op-gps-missing .dot {
  background: #ff6b6b !important;
  box-shadow: 0 0 8px rgba(255,107,107,.30) !important;
}
.route-card .bmj-op-gps-missing .copy b { color: #ff9999 !important; }

.route-card .bmj-op-not-started {
  background: rgba(125, 185, 255, .07) !important;
  border-color: rgba(125, 185, 255, .18) !important;
}
.route-card .bmj-op-not-started .dot { background: #7db9ff !important; }
.route-card .bmj-op-not-started .copy b { color: #9dcbff !important; }

/* Selected-route panel: cleaner status strip */
.bmj-selected-status {
  margin-top: 12px !important;
}

.bmj-selected-status .bmj-op {
  min-height: 48px !important;
  padding: 9px 12px !important;
  border-radius: 13px !important;
  background: rgba(6, 25, 43, .56) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

.bmj-selected-status .bmj-op .dot {
  width: 8px !important;
  height: 8px !important;
  flex-basis: 8px !important;
}

.bmj-selected-status .copy b {
  font-size: 11px !important;
  letter-spacing: .35px !important;
}

.bmj-selected-status .copy small {
  margin-top: 2px !important;
  font-size: 10px !important;
  color: #aebdcc !important;
}

/* Give the route text enough breathing room after adding status */
.route-card .route-text {
  min-width: 0;
  padding-bottom: 1px;
}

@media (max-width: 900px) {
  .route-card .bmj-op.compact {
    padding: 3px 7px !important;
  }
  .route-card .bmj-op.compact .copy b {
    font-size: 7.5px !important;
  }
}


/* BMJ_V105_PROVIDER_HEALTH — scoped to /bmj-live/ only */
.bmj-health-trigger{font-size:10px!important;font-weight:950;letter-spacing:.2px}
.bmj-health-panel{
  position:absolute;right:70px;bottom:46px;z-index:700;
  width:min(460px,calc(100% - 90px));max-height:min(435px,70%);
  overflow-y:auto;border:1px solid rgba(94,190,238,.35);
  background:rgba(7,29,50,.98);color:#f2f7ff;border-radius:16px;
  padding:18px;box-shadow:0 18px 50px rgba(0,0,0,.45)
}
.bmj-health-panel>strong{font-size:14px;letter-spacing:.5px;display:block;padding-right:25px}
.bmj-health-stamp{color:#93b3cf;font-size:10px;margin:4px 0 13px}
.bmj-health-columns,.bmj-health-row{
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(65px,.8fr) minmax(90px,1fr);
  align-items:center;column-gap:7px
}
.bmj-health-columns{font-size:9px;letter-spacing:.5px;color:#8faac0;padding:0 0 8px}
.bmj-health-row{padding:10px 0;border-top:1px solid rgba(255,255,255,.075)}
.bmj-health-name{min-width:0;overflow-wrap:anywhere;font-size:11px;font-weight:750}
.bmj-health-badge{font-size:9px;border:1px solid rgba(255,255,255,.1);border-radius:7px;padding:5px 3px;text-align:center;font-weight:900}
.bmj-health-badge.on{background:rgba(56,217,150,.12);color:#7af0bf;border-color:rgba(56,217,150,.28)}
.bmj-health-badge.off{background:rgba(255,189,74,.09);color:#ffd27b;border-color:rgba(255,189,74,.18)}
.bmj-health-panel>small{display:block;line-height:1.4;color:#91a8bd;font-size:10px;margin-top:10px}
.bmj-health-unavailable{font-size:11px;color:#fbd28b;padding:12px 0}
@media(max-width:900px){
  .bmj-health-panel{right:10px;left:10px;bottom:36px;width:auto;max-height:65%;padding:14px}
  .bmj-health-row{padding:9px 0}
}
