body.dashboard-node-menu-mounted {
  --node-menu-bg: #08090b;
  --node-menu-line: rgba(255, 255, 255, 0.18);
  --node-menu-line-soft: rgba(255, 255, 255, 0.08);
  --node-menu-copy: #f4f4f2;
  --node-menu-muted: #8f949e;
  --node-menu-hex-width: min(17vmin, 9.75rem);
  --node-menu-hex-height: min(19.63vmin, 11.25rem);
  --node-menu-hex-shape: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

body.dashboard-node-menu-open {
  overflow: hidden !important;
}

.bikenode-screen-transition {
  position: fixed;
  z-index: 9998;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.bikenode-screen-transition::before {
  position: absolute;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.025) 4px 5px);
  opacity: 0;
  transform: translateX(-100%);
}

.bikenode-screen-transition span {
  position: absolute;
  right: 1.25rem;
  bottom: calc(var(--workspace-context-height, 44px) + 1rem);
  color: rgba(255, 255, 255, 0.62);
  font: 700 0.55rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  opacity: 0;
  text-transform: uppercase;
}

.bikenode-screen-transition.is-active { visibility: visible; }
.bikenode-screen-transition.is-active::before { animation: bikenode-screen-link 600ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.bikenode-screen-transition.is-active span { animation: bikenode-screen-status 600ms ease both; }

@keyframes bikenode-screen-link {
  0% { opacity: 0; transform: translateX(-100%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

@keyframes bikenode-screen-status {
  0%, 100% { opacity: 0; transform: translateY(0.4rem); }
  25%, 70% { opacity: 1; transform: translateY(0); }
}

body.dashboard-node-menu-mounted #bikenode-main-layout-01-sidebar {
  display: none !important;
}

body.dashboard-node-menu-mounted .bikenode-main-layout-01-layout {
  display: block !important;
  padding-left: 0 !important;
}

body.dashboard-node-menu-mounted .bikenode-main-layout-01-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  min-height: calc(100dvh - var(--workspace-context-height, 44px)) !important;
  padding: 0 !important;
  padding-bottom: calc(var(--workspace-context-height, 44px) + env(safe-area-inset-bottom)) !important;
}

body.dashboard-node-menu-mounted .bikenode-route-stage {
  min-height: calc(100dvh - var(--workspace-context-height, 44px));
}

body.dashboard-node-menu-mounted .bikenode-world-backdrop {
  inset: 0 0 calc(var(--workspace-context-height, 44px) + env(safe-area-inset-bottom));
}

body.dashboard-node-menu-mounted .bikenode-main-layout-01-header {
  display: none !important;
}

.dashboard-node-menu-trigger {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  background: #0b0c0f;
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.dashboard-node-menu-trigger:hover,
.dashboard-node-menu-trigger:focus-visible {
  border-color: #fff;
  background: #15171c;
  outline: none;
}

.dashboard-node-menu-trigger span {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  transition: transform 240ms ease, opacity 180ms ease;
}

.dashboard-node-menu-trigger[aria-expanded='true'] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.dashboard-node-menu-trigger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.dashboard-node-menu-trigger[aria-expanded='true'] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.dashboard-node-menu-overlay[hidden] {
  display: none !important;
}

.dashboard-node-menu-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--node-menu-bg);
  color: var(--node-menu-copy);
  opacity: 0;
  transition: opacity 140ms ease-out;
}

.dashboard-node-menu-overlay.is-open {
  opacity: 1;
}

.dashboard-node-menu-header,
.dashboard-node-menu-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  color: var(--node-menu-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.dashboard-node-menu-header {
  border-bottom: 1px solid var(--node-menu-line-soft);
}

.dashboard-node-menu-footer {
  border-top: 1px solid var(--node-menu-line-soft);
}

.dashboard-node-menu-status {
  white-space: nowrap;
}

.dashboard-node-menu-footer-actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.dashboard-node-menu-logout,
.dashboard-node-menu-handedness {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--node-menu-copy);
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-node-menu-logout:hover,
.dashboard-node-menu-logout:focus-visible,
.dashboard-node-menu-handedness:hover,
.dashboard-node-menu-handedness:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #08090b;
  outline: none;
}

.dashboard-node-menu-hand-icon {
  display: grid;
  width: 1.5rem;
  height: 1.7rem;
  place-items: center;
  clip-path: var(--node-menu-hex-shape);
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-size: 0.65rem;
  letter-spacing: 0;
}

.dashboard-node-menu-handedness:hover .dashboard-node-menu-hand-icon,
.dashboard-node-menu-handedness:focus-visible .dashboard-node-menu-hand-icon {
  background: rgba(8, 9, 11, 0.14);
}

.dashboard-node-menu-close {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0;
  border: 0;
  background: transparent;
  color: var(--node-menu-copy);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.dashboard-node-menu-close span {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
}

.dashboard-node-menu-space {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.dashboard-node-menu-stars {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='84' viewBox='0 0 96 84'%3E%3Cpath d='M24 1 47 14v28L24 55 1 42V14Zm48 28 23 13v28L72 83 49 70V42Z' fill='none' stroke='%23fff' stroke-opacity='.1'/%3E%3C/svg%3E");
  background-size: 96px 84px;
}

.dashboard-node-menu-world {
  --node-menu-origin-x: calc(100% - clamp(5.25rem, 8vw, 7.5rem));
  --node-menu-origin-y: calc(100% - clamp(5.25rem, 8vw, 7.5rem));
  position: absolute;
  inset: 0;
}

.dashboard-node-menu-overlay[data-hand='left'] .dashboard-node-menu-world {
  --node-menu-origin-x: clamp(5.25rem, 8vw, 7.5rem);
}

.dashboard-node-menu-root,
.dashboard-node-menu-node {
  position: absolute;
  top: var(--node-menu-origin-y);
  left: var(--node-menu-origin-x);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.dashboard-node-menu-root::before,
.dashboard-node-menu-node::before {
  position: absolute;
  z-index: 0;
  inset: 1px;
  clip-path: var(--node-menu-hex-shape);
  background: var(--hex-fill);
  content: '';
  pointer-events: none;
}

.dashboard-node-menu-root {
  --hex-fill: rgba(7, 8, 10, 0.92);
  z-index: 30;
  display: grid;
  place-items: center;
  width: var(--node-menu-hex-width);
  height: var(--node-menu-hex-height);
  transform: translate(-50%, -50%);
  border: 0;
  clip-path: var(--node-menu-hex-shape);
  background: rgba(255, 255, 255, 0.38);
  color: var(--node-menu-copy);
  cursor: pointer;
  isolation: isolate;
  opacity: 0;
  transition: opacity 120ms ease-out, background 120ms ease-out;
}

.dashboard-node-menu-root:hover,
.dashboard-node-menu-root:focus-visible {
  --hex-fill: rgba(24, 26, 31, 0.98);
  background: #fff;
  outline: none;
}

.dashboard-node-menu-overlay.is-open .dashboard-node-menu-root {
  opacity: 1;
}

.dashboard-node-menu-root-mark {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.1em;
}

.dashboard-node-menu-root-label {
  position: absolute;
  z-index: 1;
  bottom: 20%;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.dashboard-node-menu-node {
  --hex-fill: rgba(10, 11, 14, 0.94);
  --node-x: var(--node-x-right);
  z-index: 5;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.55rem;
  width: var(--node-menu-hex-width);
  height: var(--node-menu-hex-height);
  min-height: 0;
  padding: 1.2rem 1rem;
  transform:
    translate(var(--node-x), var(--node-y))
    translate(-50%, -50%);
  border: 0;
  clip-path: var(--node-menu-hex-shape);
  background: var(--node-menu-line);
  color: var(--node-menu-copy) !important;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  isolation: isolate;
  opacity: 0;
  transition: opacity 120ms ease-out, background 120ms ease-out;
}

.dashboard-node-menu-overlay[data-hand='left'] .dashboard-node-menu-node {
  --node-x: var(--node-x-left);
}

.dashboard-node-menu-overlay.is-open .dashboard-node-menu-parent {
  pointer-events: auto;
  opacity: 1;
}

.dashboard-node-menu-node:hover,
.dashboard-node-menu-node:focus-visible {
  --hex-fill: rgba(30, 32, 38, 0.98);
  z-index: 20;
  background: #fff;
  outline: none;
}

.dashboard-node-menu-node-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  clip-path: var(--node-menu-hex-shape);
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 500 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dashboard-node-menu-node-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 3.4rem;
}

.dashboard-node-menu-node-label {
  display: block;
  min-height: 2.1em;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: nowrap;
}

.dashboard-node-menu-parent .dashboard-node-menu-node-label {
  font-size: clamp(0.62rem, 0.82vw, 0.76rem);
  letter-spacing: 0.035em;
}

.dashboard-node-menu-node-caption {
  margin-top: 0.35rem;
  color: var(--node-menu-muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.dashboard-node-menu-edge {
  --edge-angle: var(--edge-angle-right);
  --edge-origin-x: var(--edge-origin-x-right);
  position: absolute;
  z-index: 1;
  top: calc(var(--node-menu-origin-y) + var(--edge-origin-y, 0vmin));
  left: calc(var(--node-menu-origin-x) + var(--edge-origin-x, 0vmin));
  display: block;
  width: var(--edge-length);
  height: 1px;
  transform-origin: left center;
  transform: rotate(var(--edge-angle));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.04));
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.dashboard-node-menu-overlay[data-hand='left'] .dashboard-node-menu-edge {
  --edge-angle: var(--edge-angle-left);
  --edge-origin-x: var(--edge-origin-x-left);
}

.dashboard-node-menu-overlay.is-open .dashboard-node-menu-parent-edge {
  opacity: 1;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-parent-edge {
  opacity: 0.14;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-parent-edge.is-active {
  opacity: 0.66;
}

.dashboard-node-menu-child-edge {
  opacity: 0;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-child-edge.is-visible {
  opacity: 0.48;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-child-edge.is-visible.is-active {
  opacity: 1;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-parent:not(.is-active) {
  z-index: 5;
  opacity: 1;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-node.is-active {
  --hex-fill: rgba(245, 245, 242, 0.98);
  z-index: 12;
  transform:
    translate(var(--node-x), var(--node-y))
    translate(-50%, -50%)
    scale(1);
  background: #fff;
  color: #08090b !important;
  opacity: 1;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-node.is-active .dashboard-node-menu-node-caption {
  color: #51545b;
}

.dashboard-node-menu-world.is-focused .dashboard-node-menu-node.is-active .dashboard-node-menu-node-symbol {
  background: rgba(8, 9, 11, 0.14);
  color: #08090b;
}

.dashboard-node-menu-child {
  --hex-fill: rgba(14, 16, 20, 0.97);
  z-index: 9;
  display: grid;
  width: var(--node-menu-hex-width);
  height: var(--node-menu-hex-height);
  min-height: 0;
  padding: 1.1rem 0.9rem;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  place-items: initial;
  background: var(--node-menu-line);
  pointer-events: none;
  opacity: 0;
}

.dashboard-node-menu-child .dashboard-node-menu-node-copy {
  position: relative;
  width: auto;
  transform: none;
  text-align: left;
}

.dashboard-node-menu-child .dashboard-node-menu-node-caption {
  display: none;
}

.dashboard-node-menu-child .dashboard-node-menu-node-label {
  font-size: clamp(0.56rem, 0.72vw, 0.66rem);
  letter-spacing: 0.02em;
}

.dashboard-node-menu-child.is-visible {
  pointer-events: auto;
  opacity: 1;
}


@media (max-width: 700px) {
  body.dashboard-node-menu-mounted .bikenode-main-layout-01-header-container {
    padding-right: 5.5rem !important;
  }

  .dashboard-node-menu-trigger {
    top: 0.55rem;
    right: 0.75rem;
  }

  .dashboard-node-menu-header,
  .dashboard-node-menu-footer {
    min-height: 3.5rem;
    padding: 0 1rem;
    font-size: 0.55rem;
    letter-spacing: 0.16em;
  }

  .dashboard-node-menu-footer-actions > span {
    display: none;
  }

  .dashboard-node-menu-status {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-node-menu-world {
    --node-menu-origin-x: calc(100% - 2.75rem);
    --node-menu-origin-y: calc(100% - 2.75rem);
  }

  .dashboard-node-menu-overlay[data-hand='left'] .dashboard-node-menu-world {
    --node-menu-origin-x: 2.75rem;
  }

  .dashboard-node-menu-hand-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .dashboard-node-menu-handedness,
  .dashboard-node-menu-logout {
    min-height: 2.75rem;
    padding-inline: 0.65rem;
  }

  .dashboard-node-menu-root {
    width: var(--node-menu-hex-width);
    height: var(--node-menu-hex-height);
  }

  .dashboard-node-menu-root-mark { font-size: 1.65rem; }
  .dashboard-node-menu-root-label { bottom: .7rem; font-size: .38rem; }

  .dashboard-node-menu-parent {
    width: var(--node-menu-hex-width);
    height: var(--node-menu-hex-height);
    min-height: 0;
    padding: .45rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    row-gap: .3rem;
    text-align: center;
  }

  .dashboard-node-menu-parent .dashboard-node-menu-node-symbol { width: 1.4rem; height: 1.4rem; }
  .dashboard-node-menu-parent .dashboard-node-menu-node-copy { width: 100%; min-height: 0; overflow: hidden; }
  .dashboard-node-menu-parent .dashboard-node-menu-node-label { min-height: 0; font-size: .46rem; line-height: 1.2; letter-spacing: .01em; overflow-wrap: anywhere; word-break: break-word; }
  .dashboard-node-menu-parent .dashboard-node-menu-node-caption { display: none; }

  .dashboard-node-menu-child {
    width: var(--node-menu-hex-width);
    height: var(--node-menu-hex-height);
    min-height: 0;
    padding: .45rem;
    grid-template-columns: 1.35rem minmax(0, 1fr);
  }

  .dashboard-node-menu-child .dashboard-node-menu-node-symbol { width: 1.35rem; height: 1.35rem; font-size: .7rem; }
  .dashboard-node-menu-child .dashboard-node-menu-node-label { min-height: 0; font-size: .48rem; line-height: 1.2; letter-spacing: .01em; overflow-wrap: anywhere; word-break: break-word; }

  .dashboard-node-menu-root-mark {
    font-size: 1.9rem;
  }

  .dashboard-node-menu-root-label {
    bottom: 0.9rem;
  }

  .dashboard-node-menu-node {
    display: grid;
    width: var(--node-menu-hex-width);
    height: var(--node-menu-hex-height);
    min-height: 0;
    padding: .45rem;
    grid-template-columns: 1fr;
    place-items: center;
  }

  .dashboard-node-menu-child {
    width: var(--node-menu-hex-width);
    height: var(--node-menu-hex-height);
  }

  .dashboard-node-menu-world.is-focused .dashboard-node-menu-parent:not(.is-active) {
    opacity: 1;
  }

  .dashboard-node-menu-node-label {
    font-size: 0.58rem;
  }

  .dashboard-node-menu-node-copy {
    position: relative;
    width: 100%;
    transform: none;
    text-align: center;
  }

  .dashboard-node-menu-node-caption {
    display: none;
  }

  .dashboard-node-menu-node-symbol {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bikenode-screen-transition { display: none; }

  .dashboard-node-menu-overlay,
  .dashboard-node-menu-root,
  .dashboard-node-menu-node,
  .dashboard-node-menu-edge {
    transition-duration: 0.01ms !important;
  }
}

/* Final cascade guard: navigation state is communicated by motion, tone, and focus rings. */
html body a,
html body a:visited,
html body a:hover,
html body a:focus,
html body a:focus-visible,
html body a:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
}
