/* ------------------------------------------------------------------ *
 * Member console — the sci-fi ship-deck presentation layer for the
 * signed-in account dashboard. Purely visual/behavioral on top of the
 * existing #account-* markup and the same buildAccountView() data shape;
 * it does not change what data is fetched or how auth works.
 * ------------------------------------------------------------------ */

#account-dashboard,
#account-signed-out {
  position: relative;
}

/* ---------------------------------------------------------------- *
 * Steward's Note — a plain, dismissible text banner surfacing the same
 * contextual guidance the console used to speak through an animated
 * companion. No avatar, no motion: a note, not a character.
 * ---------------------------------------------------------------- */
.steward-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: space-between;
  background: var(--black-soft);
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--filament-1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--white-dim);
}

.steward-note strong { color: var(--filament-2); font-weight: 600; }

.steward-note .steward-note-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--filament-2);
  margin-bottom: 0.35rem;
}

.steward-note .steward-close {
  background: none;
  border: none;
  color: var(--white-faint);
  font-size: 1rem;
  cursor: pointer;
  flex: none;
  line-height: 1;
  padding: 0.1em;
}
.steward-note .steward-close:hover { color: var(--white); }

/* ---------------------------------------------------------------- *
 * Phase track — the flight path across the four phases
 * ---------------------------------------------------------------- */
.phase-track {
  margin-top: 2.5rem;
  padding: 1.75rem clamp(1rem, 3vw, 2rem);
  background: var(--black-soft);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  overflow-x: auto;
}

.phase-track-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin: 0 0 1.25rem;
}

.phase-track-rail {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 560px;
}

.phase-node {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0;
}

.phase-node .node-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--hairline-strong);
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  color: var(--black);
  font-weight: 700;
}

.phase-node .node-connector {
  position: absolute;
  top: 6px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--hairline-strong);
  z-index: 1;
}

.phase-node:last-child .node-connector { display: none; }

.phase-node .node-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-faint);
  max-width: 12ch;
  line-height: 1.4;
}

.phase-node.is-unlocked .node-dot {
  background: var(--filament);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(var(--filament-1-rgb), 0.18);
}

.phase-node.is-unlocked .node-connector { background: var(--filament); opacity: 0.55; }
.phase-node.is-unlocked .node-label { color: var(--white); }

.phase-node.is-current .node-dot {
  animation: node-pulse 2.2s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--filament-1-rgb), 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(var(--filament-1-rgb), 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .phase-node.is-current .node-dot { animation: none; }
}

.phase-node.is-locked .node-label { color: var(--white-faint); }

.phase-node.is-certified .node-dot {
  background: var(--filament);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(var(--filament-2-rgb), 0.28);
  animation: none;
  color: var(--black);
}

/* ---------------------------------------------------------------- *
 * Mission checklist — the per-item activity tracker
 * ---------------------------------------------------------------- */
.mission-checklist {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
}

.mission-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin: 0 0 0.5rem;
}

.mission-checklist.is-complete .mission-label {
  color: var(--filament-2);
}

.mission-step-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--white-dim);
  padding: 0.2rem 0;
  cursor: pointer;
}

.mission-step-row input[type='checkbox'] {
  accent-color: var(--filament-1);
  width: 15px;
  height: 15px;
  flex: none;
  cursor: pointer;
}

.mission-checklist.is-complete .mission-step-row span {
  color: var(--white);
  text-decoration: line-through;
  text-decoration-color: var(--white-faint);
}

/* ---------------------------------------------------------------- *
 * System status panels (membership / library / journal)
 * ---------------------------------------------------------------- */
.system-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5em;
  background: var(--white-faint);
  vertical-align: middle;
}

.system-status-dot.is-online {
  background: var(--filament-2);
  box-shadow: 0 0 0 3px rgba(var(--filament-2-rgb), 0.22);
  animation: dot-blink 2.6s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .system-status-dot.is-online { animation: none; }
}

/* ---------------------------------------------------------------- *
 * Bay headings (phase-group / benefits-group titles) get a small
 * console-style rule instead of the plain uppercase label.
 * ---------------------------------------------------------------- */
.phase-group h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.6em;
  background: var(--filament);
  border-radius: 1px;
  vertical-align: middle;
}

.locked-bay-note {
  font-size: 0.78rem;
  color: var(--white-faint);
  margin: 0 0 1rem;
}
