.bc-hero { display: flex; gap: 22px; align-items: center; padding: 22px; animation: fadeUp .4s var(--ease) both; }
.bc-ring { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.bc-ring > div { width: 84px; height: 84px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; }
.bc-ring strong { font-family: var(--font-heading); font-size: 24px; line-height: 1; }
.bc-ring span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bc-hero-text { min-width: 0; }
.bc-hero-text h5 { margin: 0 0 4px; font-size: 18px; }
.bc-hero-text p { margin: 0 0 10px; color: var(--text-2); font-size: 13.5px; }
.bc-state { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; }
.bc-live { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: #047857; background: var(--success-50); padding: 5px 10px; border-radius: 999px; }
.bc-idle { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--muted); background: var(--secondary-50); padding: 5px 10px; border-radius: 999px; }
.bc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: bcPulse 1.4s ease-in-out infinite; }
@keyframes bcPulse { 50% { opacity: .3; } }
.bc-meta { color: var(--muted); }

.bc-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.bc-stage { padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: fadeUp .4s var(--ease) both; }
.bc-stage header { display: flex; gap: 10px; align-items: center; }
.bc-stage h6 { margin: 0; font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; }
.bc-count strong { font-family: var(--font-heading); font-size: 20px; font-variant-numeric: tabular-nums; }
.bc-count span { color: var(--muted); font-size: 13px; }
.bc-count .bc-wait { font-size: 12.5px; }
.bc-stage p { margin: 0; color: var(--muted); font-size: 12.5px; flex: 1; }
.bc-full { background: var(--gradient-emerald) !important; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.bc-ready .bc-hero, .bc-ready .bc-stage { animation: none; }
.bc-ready .progress-thin > span { transition: none; }

.bc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bc-card-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 0; }
.bc-card-head h5 { margin: 0 0 3px; font-size: 16px; }
.bc-card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.bc-harvest { padding-bottom: 6px; }
.bc-info { display: flex; gap: 10px; margin: 14px 18px 0; padding: 10px 12px; border-radius: 12px; background: var(--info-50); color: #1e3a8a; font-size: 13px; }
.bc-steps { margin: 16px 18px 0; padding: 0; list-style: none; counter-reset: bc; display: grid; gap: 14px; }
.bc-steps li { counter-increment: bc; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 8px; font-size: 13.5px; }
.bc-steps li::before { content: counter(bc); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--primary-700); background: var(--primary-100); }
.bc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-bookmarklet { cursor: grab; }
.bc-bookmarklet:active { cursor: grabbing; }
.bc-settings { margin: 16px 18px 0; font-size: 13px; color: var(--text-2); }
.bc-settings select { width: auto; min-width: 150px; padding-right: 36px; }
.bc-tips { margin: 14px 18px 0; font-size: 13px; color: var(--text-2); }
.bc-tips summary { cursor: pointer; font-weight: 600; color: var(--primary-700); }
.bc-tips ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.bc-tips code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }
.bc-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 16px 0 0; padding: 12px 18px; border-top: 1px solid var(--border); }
.bc-muted { color: var(--muted); font-size: 12.5px; }
.bc-runs .table-responsive { margin-top: 12px; }
.bc-runs .cell-title i { color: var(--muted); margin-right: 4px; }
.bc-note { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; color: var(--text-2); font-size: 12.5px; }
.bc-empty { display: flex; gap: 14px; align-items: center; padding: 22px; }
.bc-empty h5 { margin: 0 0 4px; font-size: 16px; }
.bc-empty p { margin: 0; color: var(--muted); }

@media (max-width: 991.98px) {
  .bc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .bc-hero { flex-direction: column; align-items: flex-start; padding: 18px; }
  .bc-stages { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bc-stage { padding: 14px; }
  .bc-note { max-width: 140px; }
}

.bc-stage[data-stage] { cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.bc-stage[data-stage]:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 23, 42, .1); border-color: var(--primary-100); }
.bc-stage[data-stage]:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; }
.bc-stage.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100), var(--shadow); }
.bc-open { margin-left: auto; align-self: center; display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--primary-600); white-space: nowrap; }
.bc-stage:not(.is-active) .bc-open { opacity: .75; }
.bc-stage:hover .bc-open, .bc-stage.is-active .bc-open { opacity: 1; }
.bc-chips { align-items: center; }

.bc-browse { margin: -4px 0 20px; scroll-margin-top: 90px; animation: fadeUp .35s var(--ease) both; }
.bc-browse-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 0; }
.bc-browse-title { flex: 1; min-width: 0; }
.bc-browse-title h5 { margin: 0 0 3px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bc-browse-title p { margin: 0; color: var(--muted); font-size: 13px; }
.bc-browse-count { font-family: var(--font-body); font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.bc-browse-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.bc-browse-search { flex: 1 1 260px; max-width: 380px; margin-left: auto; }
.bc-browse-body { margin-top: 12px; min-height: 120px; }
.bc-browse-body .table-responsive { border-top: 1px solid var(--border); }
.bc-browse-pager:not(:empty) { padding: 4px 18px 14px; }
.bc-browse-error { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 18px 18px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 13.5px; }
.bc-table.app-table > tbody > tr > td { vertical-align: top; }
.bc-click { cursor: pointer; }
.bc-click:hover td { background: var(--primary-50); }
.bc-click:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.bc-num { font-variant-numeric: tabular-nums; color: var(--text-2); }
.bc-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bc-route-no { display: inline-block; padding: 2px 9px; border-radius: 8px; background: var(--text); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: .01em; white-space: nowrap; }
.bc-route-no.lg { font-size: 17px; padding: 4px 12px; border-radius: 10px; }
.bc-dir { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.bc-dir.up { background: var(--success-50); color: #047857; }
.bc-dir.down { background: var(--info-50); color: #1d4ed8; }
.bc-places { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13.5px; color: var(--text); }
.bc-places > i { color: var(--muted); font-size: 12px; }
.bc-kn { font-family: 'Noto Sans Kannada', var(--font-body); }
.bc-places.bc-kn { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bc-saved-row { display: flex; gap: 6px; }
.bc-saved { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: #cbd5e1; background: var(--surface-2); border: 1px dashed var(--border); }
.bc-saved.on { color: #047857; background: var(--success-50); border: 1px solid #a7f3d0; }
.bc-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-lang { padding: 2px 8px; border-radius: 999px; background: var(--secondary-50); font-size: 12px; color: var(--text-2); }
.bc-lang:last-child:not(:first-child) { font-family: 'Noto Sans Kannada', var(--font-body); }
.bc-matches { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-matches:not(.open) .bc-match:nth-child(n+13) { display: none; }
.bc-match { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 3px 9px; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all .2s var(--ease); }
.bc-match:hover { border-color: var(--primary); color: var(--primary-700); background: var(--primary-50); }
.bc-match.exact { background: var(--text); border-color: var(--text); color: #fff; }
.bc-more { border: 0; background: none; padding: 3px 4px; font-size: 12.5px; font-weight: 600; color: var(--primary-600); cursor: pointer; }

.app-sidebar-panel.bc-route-panel { width: min(760px, 100vw); }
.bc-route-body { display: flex; flex-direction: column; gap: 16px; }
.bc-route-body > * { flex-shrink: 0; }
.bc-map-skeleton { display: block; height: 300px; border-radius: 16px; margin-bottom: 16px; }
.bc-dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.bc-dirs button { justify-content: flex-start; min-width: 0; }
.bc-dirs button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-dirs button.active .bc-dir { background: rgba(255, 255, 255, .25); color: #fff; }
.bc-route-head { display: grid; gap: 8px; }
.bc-route-head .bc-places:not(.bc-kn) { font-size: 15px; font-weight: 600; }
.bc-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-fact { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--secondary-50); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bc-fact i { color: var(--muted); }
.bc-map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); isolation: isolate; }
.bc-map { height: 320px; background: #eef2f6; }
.bc-map .leaflet-tooltip { font-family: var(--font-body); font-size: 12.5px; border-radius: 8px; border: 0; box-shadow: 0 8px 20px rgba(15, 23, 42, .18); }
.bc-map-error, .bc-map-none, .bc-pane-note { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border); color: var(--muted); font-size: 13.5px; }
.bc-map-error { height: 100%; justify-content: center; border: 0; border-radius: 0; }
.bc-route-tabs { align-self: flex-start; flex-wrap: wrap; }
.bc-stop-list { list-style: none; margin: 0; padding: 0; position: relative; }
.bc-stop-list::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--border); }
.bc-stop { position: relative; width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 8px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; color: var(--text); transition: background .2s var(--ease); }
.bc-stop:hover:not(:disabled), .bc-stop.active { background: var(--primary-50); }
.bc-stop:disabled { cursor: default; }
.bc-stop-no { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--surface); border: 2px solid var(--text); color: var(--text); font-variant-numeric: tabular-nums; }
.bc-stop.first .bc-stop-no { background: var(--success); border-color: var(--success); color: #fff; }
.bc-stop.last .bc-stop-no { background: var(--danger); border-color: var(--danger); color: #fff; }
.bc-stop.active .bc-stop-no { box-shadow: 0 0 0 4px var(--primary-100); }
.bc-stop-name { display: grid; gap: 1px; min-width: 0; }
.bc-stop-name b { font-weight: 600; font-size: 13.5px; }
.bc-stop-name .bc-kn { font-size: 12.5px; color: var(--muted); }
.bc-stop-km { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-tt { display: grid; gap: 10px; }
.bc-tt + .bc-tt { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.bc-tt > .bc-places { font-weight: 600; font-size: 14.5px; }
.bc-hours { display: grid; gap: 6px; }
.bc-hour { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid var(--border); }
.bc-hour:last-child { border-bottom: 0; }
.bc-hour-no { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.bc-hour-trips { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-trip { padding: 3px 8px; border-radius: 8px; background: var(--primary-50); color: var(--primary-700); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bc-path-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bc-path-stats > div { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 2px; }
.bc-path-stats strong { font-family: var(--font-heading); font-size: 20px; font-variant-numeric: tabular-nums; }
.bc-path-stats span { font-size: 12.5px; color: var(--muted); }
.bc-path-ends { display: grid; gap: 8px; margin-top: 12px; }
.bc-path-ends a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13.5px; transition: all .2s var(--ease); }
.bc-path-ends a:hover { border-color: var(--primary-100); background: var(--primary-50); }
.bc-path-ends a > span:nth-child(2) { display: grid; min-width: 0; }
.bc-path-ends small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bc-path-ends i { color: var(--muted); }
.bc-end { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.bc-end.start { background: var(--success); }
.bc-end.finish { background: var(--danger); }

.bc-live-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--success-50); border: 1px solid #a7f3d0; font-size: 13px; color: var(--text-2); }
.bc-live-bar > span:nth-child(2) { flex: 1; min-width: 0; }
.bc-live-bar > i { color: var(--muted); }
.bc-live-bar.is-off { background: var(--surface-2); border-color: var(--border); }
.bc-live-bar.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.bc-live-bar.is-error > i { color: inherit; }
.bc-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex: none; animation: bcPulse 1.4s ease-in-out infinite; }
.bc-live-dot.off { background: var(--muted); animation: none; }
.bc-live-dot.wait { background: var(--warning); }
.bc-live-refresh { width: 32px; height: 32px; flex: none; }
.bc-spin { display: inline-block; animation: bcSpin .9s linear infinite; }
@keyframes bcSpin { to { transform: rotate(360deg); } }
.bc-live-note { margin: 6px 2px 0; font-size: 12.5px; color: var(--muted); }
.bc-bus-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bc-bus-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--text); cursor: pointer; transition: all .2s var(--ease); }
.bc-bus-chip i { color: #ea580c; }
.bc-bus-chip b { font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.bc-bus-chip span { color: var(--muted); }
.bc-bus-chip:hover { border-color: #fdba74; background: #fff7ed; }
.bc-map .bc-bus-icon { background: none; border: 0; }
.bc-bus { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ea580c; color: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .35); font-size: 14px; }
.bc-bus-arrow { position: absolute; inset: -10px; transform: rotate(var(--heading, 0deg)); pointer-events: none; }
.bc-bus-arrow::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid #ea580c; filter: drop-shadow(0 -1px 0 #fff); }

@media (max-width: 767.98px) {
  .bc-browse-head { padding: 16px 16px 0; }
  .bc-browse-tools { padding: 12px 16px 0; }
  .bc-browse-search { max-width: none; flex-basis: 100%; }
  #bcBrowse .segmented.bc-list-tabs > button { padding: 9px 6px; font-size: 12.5px; white-space: nowrap; }
  #bcBrowse .segmented.bc-list-tabs > button > i { display: none; }
  .bc-browse-body .table-responsive { border-top: 0; padding: 0 12px; }
  .bc-table.app-table > tbody > tr > td.bc-stack { flex-direction: column; align-items: stretch; gap: 6px; text-align: left; }
  .bc-table.app-table > tbody > tr > td.bc-stack::before { max-width: none; }
  .bc-map { height: 260px; }
  #bcRouteBody .segmented.bc-dirs { display: grid; grid-template-columns: 1fr; }
  #bcRouteBody .segmented.bc-dirs > button { justify-content: flex-start; text-align: left; }
  #bcRouteBody .segmented.bc-dirs > button > span:last-child { white-space: normal; }
  #bcRouteBody .segmented.bc-route-tabs { flex-wrap: nowrap; }
  #bcRouteBody .segmented.bc-route-tabs > button { padding: 9px 4px; font-size: 12.5px; white-space: nowrap; }
  #bcRouteBody .segmented.bc-route-tabs > button > i { display: none; }
}
@media (max-width: 575.98px) {
  .bc-open { margin-left: 0; width: 100%; }
  .bc-path-stats { grid-template-columns: 1fr 1fr; }
}
