/* Flywheel MoA × neuromorphic-brain router — pilot strip + brain plaque.
   Theater that does not write a pin is a bug. A click that skips L1 is worse. */

.moa-router-strip {
  position: sticky;
  top: 0;
  z-index: 42;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  padding: 0.45rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.94), rgba(8, 12, 18, 0.78)),
    repeating-linear-gradient(
      90deg,
      rgba(80, 220, 255, 0.04) 0 12px,
      transparent 12px 24px
    );
  border-bottom: 1px solid rgba(80, 220, 255, 0.28);
  color: #d7f6ff;
  font: 600 12px/1.35 "IBM Plex Sans", "Plex Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.moa-router-strip[hidden] { display: none; }

.moa-router-strip .mrs-line {
  flex: 1 1 28rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moa-router-strip .mrs-mode {
  color: #7af0c8;
  text-transform: uppercase;
}

.moa-router-strip .mrs-hold {
  color: #ffb347;
}

.moa-router-strip .mrs-commit0 { color: #9ab; }
.moa-router-strip .mrs-commit1 { color: #7af0c8; }

.moa-router-strip .mrs-sat {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.35);
}

.moa-router-strip .mrs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.moa-router-strip button {
  appearance: none;
  border: 1px solid rgba(80, 220, 255, 0.35);
  background: rgba(12, 24, 36, 0.7);
  color: #d7f6ff;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font: 600 11px/1.2 inherit;
  cursor: pointer;
}

.moa-router-strip button[aria-pressed="true"],
.moa-router-strip button.primary {
  background: rgba(40, 180, 160, 0.28);
  border-color: #7af0c8;
}

.moa-router-strip button:focus-visible {
  outline: 2px solid #7af0c8;
  outline-offset: 2px;
}

.moa-router-notices {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.moa-router-notices span {
  border: 1px solid rgba(255, 179, 71, 0.45);
  color: #ffd7a0;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-weight: 500;
}

.moa-router-panel {
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(80, 220, 255, 0.22);
  border-radius: 10px;
  background: rgba(6, 10, 16, 0.55);
}

.moa-router-panel h4 {
  margin: 0 0 0.4rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7af0c8;
}

.moa-router-panel textarea,
.moa-router-panel input,
.moa-router-panel select {
  width: 100%;
  background: rgba(4, 8, 12, 0.8);
  color: #e8fbff;
  border: 1px solid rgba(80, 220, 255, 0.25);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  font: 500 12px/1.4 inherit;
}

.moa-router-panel .mrs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0;
}

.moa-router-panel pre {
  max-height: 18rem;
  overflow: auto;
  font: 12px/1.4 ui-monospace, "IBM Plex Mono", monospace;
  color: #c9e7f2;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem;
  border-radius: 6px;
}

.moa-router-plaque {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  min-width: 16rem;
  max-width: 24rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(80, 220, 255, 0.35);
  border-radius: 10px;
  background: rgba(6, 10, 16, 0.88);
  color: #d7f6ff;
  font: 500 12px/1.4 "IBM Plex Sans", sans-serif;
  pointer-events: none;
}

body.login-blocked .moa-router-strip,
body.login-blocked .moa-router-plaque {
  display: none !important;
}

.moa-router-strip .mrs-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.moa-router-strip .mrs-packs button {
  text-transform: lowercase;
  font-weight: 500;
  border-style: dashed;
}

.moa-router-strip .mrs-meta {
  color: #9ab;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .moa-router-strip { backdrop-filter: none; }
}
