/* be.imported platform bar: forced by the server on every maker page it serves (public site, rosedoc
   viewer, IDE / MED preview), first thing in <body>, outside the maker's shell. It wears the dashboard's
   top cap (mira dex cap: dark bar, BE chip, uppercase wordmark, dim crumb).
   Isolation: every rule starts at html body > header#beimp-bar.beimp-bar (an id + classes, higher than a
   maker sheet's usual selectors), resets with all: initial, and is !important throughout.    Hooks: .beimp-mark .beimp-chip .beimp-word .beimp-crumb (a.beimp-hood span.beimp-sep a.beimp-site) .beimp-fill |
   button.beimp-more (span.beimp-dots; data-signed-in="1" when signed in), then div#beimp-menu.beimp-menu (a native
   popover) holding the right side: a.beimp-random, a.beimp-report (/report), span.beimp-account
   (data-signed-in="1" when signed in) > a.beimp-login, a.beimp-signup, or a.beimp-dash.
   MOBILERAIL (13 Nov 2026): wide screens show #beimp-menu inline and hide the button, as before. Phones (<= 640px):
   one 44px row (chip, one-line crumb, "more" button); the menu opens as a popover under the bar. No script. */
@font-face {
  font-family: "beimp-mono";
  src: url("themes/mira/DepartureMono-Regular.woff2") format("woff2");
  font-display: swap;
}
html body > header#beimp-bar.beimp-bar,
html body > header#beimp-bar.beimp-bar * { all: initial !important; }
html body > header#beimp-bar.beimp-bar {
  display: flex !important; align-items: center !important; gap: 10px !important;
  box-sizing: border-box !important; width: auto !important; min-height: 30px !important; margin: 0 !important;
  padding: 0 10px !important; position: static !important; visibility: visible !important; opacity: 1 !important;
  transform: none !important; filter: none !important; clip-path: none !important; z-index: auto !important;
  grid-column: 1 / -1 !important; flex: 0 0 auto !important; align-self: stretch !important;
  background: #0a0c12 !important; color: #d8dee8 !important;
  border-bottom: 1px solid rgba(120, 140, 200, .35) !important;
  font: 13px/1.3 "Segoe UI", system-ui, sans-serif !important; text-align: left !important; direction: ltr !important;
}
html body > header#beimp-bar.beimp-bar a.beimp-mark {
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  cursor: pointer !important; text-decoration: none !important; color: inherit !important;
}
html body > header#beimp-bar.beimp-bar span.beimp-chip {
  display: inline-block !important; padding: 2px 6px !important; border-radius: 4px !important;
  background: #6a8cff !important; color: #0a0c12 !important;
  font: 11px/1.3 "Courier New", monospace !important; letter-spacing: .06em !important;
}
html body > header#beimp-bar.beimp-bar span.beimp-word {
  display: inline-block !important; color: #f0d67a !important; text-transform: uppercase !important;
  font: 10px/1.3 "beimp-mono", "Departure Mono", monospace !important; letter-spacing: .14em !important;
}
html body > header#beimp-bar.beimp-bar span.beimp-crumb {
  display: inline-block !important; min-width: 0 !important; overflow: hidden !important;
  white-space: nowrap !important; text-overflow: ellipsis !important; color: #7d8cbd !important;
  font: 11px/1.3 "beimp-mono", "Departure Mono", monospace !important; letter-spacing: .02em !important;
}
html body > header#beimp-bar.beimp-bar span.beimp-crumb a {
  color: #7fd0e0 !important; cursor: pointer !important; text-decoration: none !important; font: inherit !important;
}
html body > header#beimp-bar.beimp-bar span.beimp-crumb span.beimp-sep { font: inherit !important; color: inherit !important; white-space: pre !important; letter-spacing: inherit !important; }
html body > header#beimp-bar.beimp-bar a.beimp-mark:hover span.beimp-word,
html body > header#beimp-bar.beimp-bar span.beimp-crumb a:hover { color: #dbe4ff !important; }
html body > header#beimp-bar.beimp-bar span.beimp-fill { display: block !important; flex: 1 1 auto !important; }

/* right side: random site + account area */
html body > header#beimp-bar.beimp-bar a.beimp-random,
html body > header#beimp-bar.beimp-bar a.beimp-report,
html body > header#beimp-bar.beimp-bar span.beimp-account a { color: #8f9bb8 !important; text-decoration: none !important; margin-left: 12px !important; font: 11px/1.3 "beimp-mono", "Departure Mono", monospace !important; cursor: pointer !important; }
html body > header#beimp-bar.beimp-bar span.beimp-account { display: inline-flex !important; align-items: center !important; }
html body > header#beimp-bar.beimp-bar a.beimp-random:hover,
html body > header#beimp-bar.beimp-bar a.beimp-report:hover,
html body > header#beimp-bar.beimp-bar span.beimp-account a:hover { color: #dbe4ff !important; }
html body > header#beimp-bar.beimp-bar span.beimp-account a.beimp-signup, html body > header#beimp-bar.beimp-bar span.beimp-account a.beimp-dash { color: #dbe4ff !important; }

/* MOBILERAIL: the right side lives in div#beimp-menu (popover). Wide screens: inline, exactly where it was. */
html body > header#beimp-bar.beimp-bar button.beimp-more { display: none !important; }
html body > header#beimp-bar.beimp-bar div.beimp-menu {
  display: flex !important; align-items: center !important; gap: 10px !important; flex: 0 0 auto !important;
  position: static !important;
}
html body > header#beimp-bar.beimp-bar a:focus-visible,
html body > header#beimp-bar.beimp-bar button.beimp-more:focus-visible {
  outline: 2px solid #f0d67a !important; outline-offset: 2px !important; border-radius: 3px !important;
}

/* Phones: one tidy 44px row. Chip (wordmark dropped), crumb on one line (the neighborhood gives way first, with
   an ellipsis; the full path is each link's title), a 44px "more" button; the menu opens under the bar. */
@media (max-width: 640px) {
  html body > header#beimp-bar.beimp-bar {
    gap: 4px !important; min-height: 44px !important; flex-wrap: nowrap !important; overflow: hidden !important;
    padding: env(safe-area-inset-top, 0px) max(6px, env(safe-area-inset-right, 0px)) 0 max(6px, env(safe-area-inset-left, 0px)) !important;
  }
  html body > header#beimp-bar.beimp-bar a.beimp-mark {
    flex: 0 0 auto !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important;
  }
  html body > header#beimp-bar.beimp-bar span.beimp-word { display: none !important; }
  html body > header#beimp-bar.beimp-bar a:focus-visible,
  html body > header#beimp-bar.beimp-bar button.beimp-more:focus-visible { outline-offset: -2px !important; }
  html body > header#beimp-bar.beimp-bar span.beimp-crumb {
    display: flex !important; align-items: center !important; flex: 0 1 auto !important; min-width: 0 !important;
    font-size: 12px !important;
  }
  html body > header#beimp-bar.beimp-bar span.beimp-crumb a {
    display: block !important; min-width: 0 !important; overflow: hidden !important; white-space: nowrap !important;
    text-overflow: ellipsis !important; line-height: 44px !important; padding: 0 2px !important;
  }
  html body > header#beimp-bar.beimp-bar span.beimp-crumb a.beimp-hood { flex: 0 100 auto !important; min-width: 1.6em !important; }
  html body > header#beimp-bar.beimp-bar span.beimp-crumb a.beimp-site { flex: 0 0 auto !important; max-width: calc(100vw - 150px) !important; }
  html body > header#beimp-bar.beimp-bar span.beimp-crumb span.beimp-sep { flex: 0 0 auto !important; }
  html body > header#beimp-bar.beimp-bar span.beimp-fill { flex: 1 1 0 !important; min-width: 0 !important; }
  html body > header#beimp-bar.beimp-bar button.beimp-more {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    flex: 0 0 auto !important; box-sizing: border-box !important; width: 44px !important; height: 44px !important;
    margin: 0 !important; padding: 0 !important; cursor: pointer !important; color: #d8dee8 !important;
    background: transparent !important; border: 1px solid transparent !important; border-radius: 8px !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  html body > header#beimp-bar.beimp-bar button.beimp-more[data-signed-in] { color: #6a8cff !important; }
  html body > header#beimp-bar.beimp-bar button.beimp-more:hover,
  html body > header#beimp-bar.beimp-bar button.beimp-more:has(+ div.beimp-menu:popover-open) {
    background: rgba(120, 140, 200, .16) !important; border-color: rgba(120, 140, 200, .35) !important;
  }
  html body > header#beimp-bar.beimp-bar button.beimp-more span.beimp-dots {
    display: block !important; color: inherit !important; width: 4px !important; height: 4px !important; border-radius: 50% !important;
    background: currentColor !important; box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor !important;
  }
  html body > header#beimp-bar.beimp-bar div.beimp-menu:not(:popover-open) { display: none !important; }
  html body > header#beimp-bar.beimp-bar div.beimp-menu:popover-open {
    display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 2px !important;
    position: fixed !important; inset: auto !important;
    top: calc(env(safe-area-inset-top, 0px) + 48px) !important; right: max(8px, env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box !important; min-width: 210px !important; max-width: calc(100vw - 16px) !important;
    margin: 0 !important; padding: 6px !important; overflow: auto !important; max-height: calc(100vh - 64px) !important;
    background: #0a0c12 !important; color: #d8dee8 !important; border: 1px solid rgba(120, 140, 200, .45) !important;
    border-radius: 10px !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .45) !important;
    font: 13px/1.3 "Segoe UI", system-ui, sans-serif !important;
  }
  html body > header#beimp-bar.beimp-bar div.beimp-menu a.beimp-random,
  html body > header#beimp-bar.beimp-bar div.beimp-menu a.beimp-report,
  html body > header#beimp-bar.beimp-bar div.beimp-menu span.beimp-account a {
    display: flex !important; align-items: center !important; box-sizing: border-box !important; min-height: 44px !important;
    margin: 0 !important; padding: 0 12px !important; border-radius: 7px !important; font-size: 13px !important;
    white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
  }
  html body > header#beimp-bar.beimp-bar div.beimp-menu a:hover { background: rgba(120, 140, 200, .16) !important; }
  html body > header#beimp-bar.beimp-bar div.beimp-menu span.beimp-account {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    margin-top: 4px !important; padding-top: 4px !important; border-top: 1px solid rgba(120, 140, 200, .25) !important;
  }
  html body > header#beimp-bar.beimp-bar div.beimp-menu a.beimp-dash::before {
    content: "signed in \00b7\00a0" !important; color: #8f9bb8 !important;
  }
}
/* A browser without popovers (older than iOS 17 / Chrome 114 / Firefox 125): no button; the links stay in the
   row, small, and the crumb gives way. */
@supports not selector(:popover-open) {
  @media (max-width: 640px) {
    html body > header#beimp-bar.beimp-bar button.beimp-more { display: none !important; }
    html body > header#beimp-bar.beimp-bar div.beimp-menu { display: flex !important; gap: 8px !important; }
    html body > header#beimp-bar.beimp-bar div.beimp-menu a,
    html body > header#beimp-bar.beimp-bar div.beimp-menu span.beimp-account a { margin-left: 0 !important; white-space: nowrap !important; line-height: 44px !important; }
  }
}
