/* Campus Engine HUD — ambient 22nd-c journey strip */
.clarity-engine-hud {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.65rem;
  margin: 0;
  background: linear-gradient(90deg, rgba(10,42,64,0.94), rgba(13,79,60,0.92));
  border-bottom: 1px solid rgba(212,180,90,0.22);
  position: sticky;
  top: var(--clarity-nav-h, 48px);
  z-index: 58;
  font: 600 11px/1.3 system-ui, -apple-system, sans-serif;
  color: #e7efe9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ceh-gears {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.ceh-gear {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(168,212,240,0.25);
  opacity: 0.75;
  transition: transform 0.4s, opacity 0.3s, border-color 0.3s;
}
.ceh-gear[data-state="spin"] {
  animation: ceh-spin 0.8s linear infinite;
  opacity: 1;
  border-color: #a8d4f0;
}
.ceh-gear[data-state="ok"] {
  opacity: 1;
  border-color: #6bc49a;
  color: #6bc49a;
}
.ceh-gear[data-state="warn"] {
  opacity: 1;
  border-color: #e8c47a;
  color: #e8c47a;
}
@keyframes ceh-spin {
  to { transform: rotate(360deg); }
}
.ceh-path {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ceh-step {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 0;
  background: transparent;
  color: rgba(231,239,233,0.55);
  font: inherit;
  padding: 0.25rem 0.35rem;
  cursor: pointer;
  white-space: nowrap;
}
.ceh-step.is-done { color: rgba(107,196,154,0.95); }
.ceh-step.is-active {
  color: #f0e6c8;
  font-weight: 700;
}
.ceh-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.ceh-step.is-active .ceh-dot {
  box-shadow: 0 0 0 3px rgba(212,180,90,0.35);
}
.ceh-rail {
  width: 0.65rem;
  height: 1px;
  background: rgba(255,255,255,0.2);
  flex: 0 0 auto;
}
.ceh-next {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: 700 11px system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #c9a227, #e8c47a);
  color: #1a2e24;
  cursor: pointer;
  flex: 0 0 auto;
}
.ceh-next:active { transform: scale(0.98); }

@media (max-width: 700px) {
  .ceh-lab { font-size: 0.62rem; }
  .clarity-engine-hud { top: var(--clarity-nav-h, 44px); padding: 0.3rem 0.45rem; }
}

/* Stage-aware soft chrome */
html[data-campus-stage="vault"] #clarity-campus-stage {
  opacity: 0.92;
}
html[data-campus-stage="craft"] #clarity-lab-shell {
  box-shadow: 0 0 0 1px rgba(168,212,240,0.25), 0 12px 40px rgba(0,0,0,0.2);
}
