.bpm-explore-body .menubar {
  background: var(--bpm-card);
  color: var(--bpm-text);
  border-color: var(--bpm-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bpm-explore-body .menubar a,
.bpm-explore-body .menubar .brand,
.bpm-explore-body .menubar #userMenuBtn { color: var(--bpm-text); }
.bpm-explore-body { --explore-accent: #246d91; }
html:not(.light-theme) .bpm-explore-body { --explore-accent: #77b8d8; }
.bpm-explore-body .menubar nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--explore-accent); text-underline-offset: 5px; }
.bpm-explore-body .theme-toggle { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--bpm-border); border-radius: 3px; }
.bpm-explore-page {
  --atlas-accent: var(--explore-accent);
  --atlas-accent-soft: color-mix(in srgb, var(--atlas-accent) 10%, var(--bpm-card));
  max-width: none;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 88px;
  color: var(--bpm-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bpm-back-link { color: var(--bpm-muted); font-size: 13px; text-decoration: none; }
.bpm-back-link:hover { color: var(--atlas-accent); }
.bpm-explore-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin: 22px 0 30px;
  padding: 24px 0 25px;
  border-top: 1px solid var(--bpm-border);
  border-bottom: 1px solid var(--bpm-border);
}
.bpm-explore-section-heading > div > span, .bpm-explore-eyebrow {
  color: var(--atlas-accent);
  font-size: 12px;
  font-weight: 600;
}
.bpm-explore-hero h1 {
  margin: 0 0 7px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.bpm-explore-hero > p { max-width: 620px; margin: 0; color: var(--bpm-muted); font-size: 14px; line-height: 1.65; }
.bpm-explore-metrics { display: flex; flex-wrap: wrap; justify-content: end; gap: 20px; padding-bottom: 4px; }
.bpm-explore-metrics span { display: grid; gap: 2px; color: var(--bpm-muted); font-size: 11px; white-space: nowrap; }
.bpm-explore-metrics strong { color: var(--bpm-text); font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.1; }
.bpm-explore-metrics small { color: var(--bpm-muted); font-size: 11px; }
.bpm-explore-tabs {
  display: flex;
  gap: 28px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--bpm-border);
}
.bpm-explore-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: var(--bpm-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.bpm-explore-tabs button[aria-selected="true"] { color: var(--bpm-text); font-weight: 650; }
.bpm-explore-tabs button[aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--atlas-accent); content: ""; }
.bpm-explore-tabs svg { width: 16px; height: 16px; }
.bpm-explore-body .theme-toggle:focus-visible,
.bpm-explore-tabs button:focus-visible,
.bpm-atlas-node:focus-visible,
.bpm-time-year:focus-visible,
.bpm-time-item:focus-visible,
.bpm-related-card:focus-visible,
.bpm-atlas-result:focus-visible { outline: 2px solid var(--atlas-accent); outline-offset: 3px; }
.bpm-explore-panel { padding: 0 0 22px; }
.bpm-explore-panel[hidden] { display: none; }
.bpm-explore-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 17px; }
.bpm-explore-section-heading h2 { margin: 7px 0 5px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.bpm-explore-section-heading p { max-width: 690px; margin: 0; color: var(--bpm-muted); font-size: 13px; line-height: 1.65; }
.bpm-explore-legend { display: flex; flex-wrap: wrap; gap: 13px; color: var(--bpm-muted); font-size: 11px; }
.bpm-explore-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bpm-explore-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--atlas-accent); }
.bpm-explore-legend .ticket-dot { border-radius: 0; }
.bpm-explore-legend .airline-dot { background: transparent; border: 1px solid var(--atlas-accent); }
.bpm-atlas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.bpm-atlas-stage { min-width: 0; max-height: 720px; overflow: auto; border: 1px solid var(--bpm-border); background: var(--bpm-card); }
.bpm-atlas-stage > p { margin: 0; padding: 20px; color: var(--bpm-muted); }
.bpm-atlas-stage svg { display: block; width: 100%; min-width: 760px; height: auto; }
.bpm-atlas-link { stroke: var(--bpm-border); stroke-width: 1; opacity: .8; }
.bpm-atlas-node { cursor: pointer; outline: none; }
.bpm-atlas-node circle, .bpm-atlas-node rect { stroke: var(--bpm-card); stroke-width: 2; transition: transform .16s ease; transform-box: fill-box; transform-origin: center; }
.bpm-atlas-node:hover circle, .bpm-atlas-node:focus circle, .bpm-atlas-node:hover rect, .bpm-atlas-node:focus rect { transform: scale(1.16); stroke: var(--bpm-text); }
.bpm-atlas-node.airport circle, .bpm-atlas-node.ticket rect { fill: var(--atlas-accent); }
.bpm-atlas-node.airline circle { fill: var(--bpm-card); stroke: var(--atlas-accent); stroke-width: 2; }
.bpm-atlas-node.airline:hover circle, .bpm-atlas-node.airline:focus circle { fill: var(--atlas-accent); }
.bpm-atlas-label { fill: var(--bpm-text); font: 600 12px system-ui, sans-serif; }
.bpm-atlas-small { fill: var(--bpm-muted); font: 11px system-ui, sans-serif; }
.bpm-atlas-detail { position: sticky; top: 18px; max-height: 720px; overflow: auto; padding: 19px; border: 1px solid var(--bpm-border); background: var(--bpm-card); }
.bpm-atlas-detail h3 { margin: 8px 0 4px; font-size: 19px; }
.bpm-atlas-detail > p { color: var(--bpm-muted); font-size: 13px; line-height: 1.6; }
.bpm-atlas-results { display: grid; gap: 7px; margin-top: 13px; }
.bpm-atlas-result { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--bpm-border); background: transparent; color: var(--bpm-text); text-align: left; text-decoration: none; }
.bpm-atlas-result img { width: 52px; height: 52px; object-fit: cover; background: var(--bpm-card); }
.bpm-atlas-result strong, .bpm-atlas-result small { display: block; }
.bpm-atlas-result small { margin-top: 4px; color: var(--bpm-muted); font-size: 11px; }
.bpm-time-controls, .bpm-related-controls { display: flex; align-items: end; gap: 12px; margin: 15px 0; }
.bpm-time-controls label, .bpm-related-controls label { display: grid; gap: 6px; min-width: 220px; color: var(--bpm-muted); font-size: 12px; }
.bpm-time-controls select, .bpm-time-controls input, .bpm-related-controls select, .bpm-related-controls input { min-height: 42px; padding: 8px 11px; border: 1px solid var(--bpm-border); border-radius: 2px; background: var(--bpm-card); color: var(--bpm-text); font: inherit; }
.bpm-time-search { flex: 1; }
.bpm-time-controls > p { margin: 0 0 11px auto; color: var(--bpm-muted); font-size: 12px; }
.bpm-time-ruler { display: flex; gap: 5px; overflow: auto; padding: 7px 0 15px; border-bottom: 1px solid var(--bpm-border); }
.bpm-time-year { min-width: 78px; padding: 9px 12px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--bpm-muted); font: inherit; font-size: 13px; cursor: pointer; }
.bpm-time-year:hover { border-color: var(--bpm-border); }
.bpm-time-year[aria-pressed="true"] { border-color: var(--atlas-accent); background: var(--atlas-accent-soft); color: var(--bpm-text); }
.bpm-time-list { display: grid; margin-top: 10px; border-top: 1px solid var(--bpm-border); }
.bpm-time-item { display: grid; grid-template-columns: 88px 92px minmax(150px, 1fr) minmax(150px, 1fr) auto; align-items: center; gap: 15px; padding: 12px 8px; border-bottom: 1px solid var(--bpm-border); color: var(--bpm-text); text-decoration: none; transition: background .15s ease; }
.bpm-time-item:hover { background: var(--atlas-accent-soft); }
.bpm-time-item time, .bpm-time-item > small { color: var(--bpm-muted); font-size: 12px; }
.bpm-time-item img { width: 92px; height: 64px; object-fit: cover; background: var(--bpm-input); }
.bpm-time-item strong { font-size: 16px; font-weight: 600; }
.bpm-time-item small { display: block; margin-top: 4px; }
.bpm-time-item > span:last-child { color: var(--atlas-accent); font-size: 12px; }
.bpm-related-groups { display: grid; gap: 24px; }
.bpm-related-group { border-top: 1px solid var(--bpm-border); }
.bpm-related-group h3 { display: flex; align-items: baseline; gap: 9px; margin: 12px 0; font-size: 16px; }
.bpm-related-group h3 span { color: var(--bpm-muted); font-size: 12px; font-weight: 400; }
.bpm-related-group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bpm-related-card { overflow: hidden; border-bottom: 1px solid var(--bpm-border); background: transparent; color: var(--bpm-text); text-decoration: none; transition: border-color .16s ease; }
.bpm-related-card:hover { border-color: var(--atlas-accent); }
.bpm-related-card img { display: block; width: 100%; height: 145px; object-fit: cover; background: var(--bpm-input); }
.bpm-related-card div { padding: 10px 11px 12px; }
.bpm-related-card strong, .bpm-related-card small { display: block; }
.bpm-related-card small { margin-top: 4px; color: var(--bpm-muted); font-size: 11px; }
.bpm-related-empty { padding: 25px 0; border-top: 1px solid var(--bpm-border); color: var(--bpm-muted); text-align: center; }
.bpm-explore-footnote { margin: 17px 0 0; color: var(--bpm-muted); font-size: 11px; }
@media (min-width: 1280px) { .bpm-atlas-stage svg { min-width: 820px; } }
@media (max-width: 900px) {
  .bpm-explore-page { width: min(100% - 40px, 760px); }
  .bpm-explore-hero { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .bpm-explore-metrics { justify-content: start; }
  .bpm-atlas-layout { grid-template-columns: 1fr; }
  .bpm-atlas-detail { position: static; max-height: none; }
  .bpm-related-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bpm-explore-page { width: calc(100% - 28px); padding: 20px 0 52px; }
  .bpm-explore-hero { margin: 17px 0 22px; padding: 19px 0 20px; }
  .bpm-explore-hero h1 { font-size: 34px; }
  .bpm-explore-metrics { gap: 10px 16px; }
  .bpm-explore-tabs { gap: 18px; overflow-x: auto; }
  .bpm-explore-tabs button { flex: 0 0 auto; font-size: 13px; }
  .bpm-explore-section-heading { display: block; }
  .bpm-explore-legend { margin-top: 13px; }
  .bpm-time-controls, .bpm-related-controls { display: grid; align-items: stretch; }
  .bpm-time-controls label, .bpm-related-controls label { min-width: 0; }
  .bpm-time-controls > p { margin: 0; }
  .bpm-time-item { grid-template-columns: 62px 1fr auto; gap: 8px 11px; padding: 11px 2px; }
  .bpm-time-item time { grid-column: 1 / -1; }
  .bpm-time-item img { width: 62px; height: 56px; }
  .bpm-time-item > small { grid-column: 2; }
  .bpm-time-item > span:last-child { grid-column: 3; grid-row: 2; }
  .bpm-related-group-grid { grid-template-columns: 1fr; }
  .bpm-related-card { display: grid; grid-template-columns: 92px 1fr; align-items: center; }
  .bpm-related-card img { width: 92px; height: 78px; }
  .bpm-related-card div { padding: 10px; }
  .bpm-atlas-stage { max-height: 58vh; }
}
@media (prefers-reduced-motion: reduce) {
  .bpm-atlas-node circle, .bpm-atlas-node rect, .bpm-related-card { transition: none; }
  .bpm-related-card:hover { transform: none; }
}
