/* =========================================================
   COSMIC AGENTS — Demo Page Styles
   Extends landing.css + solar.css (both loaded first).

   Layout policy
   -------------
   PRE-LAUNCH (default body state):
     - Classic hero + prompt form, centered on the cosmic backdrop.
     - `.mission-only` nodes hidden.
   MISSION MODE (body.mission-mode after submit):
     - `.prelaunch-only` nodes hidden.
     - .demo-main becomes a 2-column grid filling the viewport
       (solar left, tabbed telemetry rail right).
   ========================================================= */

/* ---------- Mode toggles ---------- */
body:not(.mission-mode) .mission-only {
  display: none !important;
}

body.mission-mode .prelaunch-only {
  display: none !important;
}

/* =========================================================
   PANEL META (shared)
   ========================================================= */
.panel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   TASK BRIEF
   ========================================================= */
.brief-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brief-summary {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
}

.brief-columns {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr);
  gap: 24px;
}

.brief-label {
  margin: 0 0 10px 0;
  color: var(--violet);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.brief-constraints,
.brief-subtasks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brief-constraints li {
  position: relative;
  padding: 8px 12px 8px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.45);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.brief-constraints li::before {
  content: '◆';
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--gold);
  font-size: 0.7rem;
}

.brief-subtasks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.45);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.brief-subtasks li[data-status="complete"] {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.brief-subtasks li[data-status="in_progress"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.subtask-status {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-bright);
  margin-top: 2px;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.brief-subtasks li[data-status="complete"] .subtask-status {
  border-color: var(--emerald);
  background: var(--emerald);
}

.brief-subtasks li[data-status="complete"] .subtask-status::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #0a0f1d;
  border-bottom: 2px solid #0a0f1d;
  transform: rotate(45deg);
}

.brief-subtasks li[data-status="in_progress"] .subtask-status {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.4);
  animation: subtaskPulse 1.6s ease-in-out infinite;
}

@keyframes subtaskPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(251, 191, 36, 0); }
}

.subtask-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.subtask-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.subtask-id {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--violet);
  font-weight: 600;
}

.subtask-assignee {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
}

.subtask-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* =========================================================
   LEADER HEARTBEAT
   ========================================================= */
.heartbeat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hb-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.5);
  min-width: 0;
}

.hb-label {
  color: var(--violet);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.hb-label span {
  color: var(--dim);
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
}

.hb-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hb-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.6s cubic-bezier(0.22, 0.6, 0.3, 1);
}

#hb-coverage-fill {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

#hb-consistency-fill {
  background: linear-gradient(90deg, var(--rose), var(--gold));
}

.hb-value {
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.hb-stable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: rgba(2, 3, 9, 0.6);
  color: var(--muted);
  font-size: 0.78rem;
  align-self: flex-start;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hb-stable[data-stable="yes"] {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.12);
  color: var(--emerald);
}

.hb-stable[data-stable="yes"]::before {
  content: '✓';
  color: var(--emerald);
}

.hb-stable[data-stable="no"]::before {
  content: '~';
  color: var(--dim);
}

.hb-inconsistencies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hb-inconsistencies:empty {
  display: none;
}

.hb-inconsistencies li {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.5;
}

.hb-inconsistencies li::before {
  content: '! ';
  color: var(--rose);
  font-weight: 700;
}

.hb-rule {
  margin: 0;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 62ch;
}

/* =========================================================
   DEMO NAVIGATION
   ========================================================= */
.demo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, border-color 0.3s ease;
  /* Turn-by-turn status lines are long; keep the nav on one row. */
  max-width: min(46vw, 420px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  animation: livepulse 2.4s ease-in-out infinite;
}

@keyframes livepulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
}

/* =========================================================
   DEMO LAYOUT — pre-launch
   ========================================================= */
.demo-main {
  padding: 48px clamp(18px, 6vw, 72px) 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Pre-launch hero: single column, centered. The form sits below the
   headline with its own max-width so long words in the h1 never share
   horizontal space with the prompt form panel. */
.demo-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: clamp(8px, 3vh, 40px) auto 12px;
  width: 100%;
  max-width: 780px;
  padding: 0 clamp(8px, 2vw, 24px);
  box-sizing: border-box;
}

.demo-hero-copy {
  text-align: center;
  max-width: 680px;
  width: 100%;
}

/* Sized to wrap to two lines, not four: at 3.6rem the headline pushed
   the form's Launch button below the fold on a 1440x900 screen, and the
   form is the point of this page. */
.demo-hero-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  font-weight: 600;
  margin: 0 auto 16px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 24ch;
  padding-bottom: 0.1em;
}

.demo-hero .prompt-form {
  width: 100%;
  max-width: 680px;
}

/* =========================================================
   DEMO LAYOUT — mission mode
   ========================================================= */
body.mission-mode .demo-main {
  max-width: none;
  width: 100%;
  padding: 16px clamp(14px, 2.4vw, 28px) 16px;
  display: block;
  height: calc(100vh - 68px);
  margin: 0;
  box-sizing: border-box;
}

/* The system is the map, the rail is the work: the dialogue, brief and answer
   are what people read, so they get the larger share (about 42 / 58). */
body.mission-mode .mission-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(440px, 7fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
}

body.mission-mode .solar-panel {
  min-height: 0;
  overflow: hidden;
}

body.mission-mode .solar-panel .solar-system {
  height: 100%;
  flex: 1 1 auto;
  min-height: 320px;
}

/* The outer orbit sits ~70px from the panel edge, so in this narrower panel a
   one-line label (up to 240px) ran off the side. Names are at most three
   words: let them stack. */
body.mission-mode .solar-panel .planet-label {
  max-width: 128px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  border-radius: 10px;
}

body.mission-mode .panel {
  min-height: 0;
}

@media (max-width: 1024px) {
  body.mission-mode .demo-main {
    height: auto;
  }
  body.mission-mode .mission-stage {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  body.mission-mode .solar-panel .solar-system {
    height: 380px;
    flex: none;
  }
}

@media (max-width: 640px) {
  body.mission-mode .solar-panel .solar-system {
    height: 300px;
  }
}

/* =========================================================
   MISSION RAIL + TABS
   ========================================================= */
.mission-rail {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  min-height: 0;
}

.mission-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0 10px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.mission-tabs::-webkit-scrollbar {
  display: none;
}

/* Five tabs share the rail equally. The old uppercase, letter-spaced
   mono labels overflowed it even at 1440px, clipping "Final output"
   behind a hidden scrollbar. */
.mission-tab {
  position: relative;
  flex: 1 1 0;
  min-width: max-content;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mission-tab:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -2px;
}

.mission-tab:hover {
  color: var(--ink);
  background: rgba(167, 139, 250, 0.06);
}

.mission-tab.active {
  color: var(--violet);
  border-color: var(--border);
  background: rgba(124, 58, 237, 0.12);
}

/* Unread marker: a dot that stays until the tab is opened. */
.mission-tab[data-flash="1"]::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.mission-panels {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.mission-panel {
  position: absolute;
  inset: 0;
  padding: 18px 20px 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.mission-panel::-webkit-scrollbar { width: 5px; }
.mission-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.mission-rail[data-tab="dialogue"]  .mission-panel[data-tab="dialogue"],
.mission-rail[data-tab="brief"]     .mission-panel[data-tab="brief"],
.mission-rail[data-tab="heartbeat"] .mission-panel[data-tab="heartbeat"],
.mission-rail[data-tab="crew"]      .mission-panel[data-tab="crew"],
.mission-rail[data-tab="final"]     .mission-panel[data-tab="final"] {
  display: flex;
}

/* Inside mission panels, headers/chat/feed should behave the same
   visually as standalone panels did. */
.mission-panel .panel-header {
  padding: 0 0 12px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

/* =========================================================
   PROMPT FORM
   ========================================================= */
.prompt-form {
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.prompt-form:focus-within {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(167, 139, 250, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.prompt-form label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.examples-label {
  color: var(--dim);
  font-size: 0.86rem;
  margin-right: 2px;
}

.example-prompt {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.example-prompt:hover {
  color: var(--ink);
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.08);
}

.example-prompt:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.prompt-form textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.6);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  padding: 14px 16px;
  resize: vertical;
  min-height: 128px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-form textarea::placeholder {
  color: var(--dim);
}

.prompt-form textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.14);
}

.helper-text {
  margin: 0;
  color: var(--dim);
  line-height: 1.6;
  font-size: 0.86rem;
}

/* =========================================================
   PANELS (base)
   ========================================================= */
.panel {
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-note {
  color: var(--dim);
  font-size: 0.82rem;
}

/* =========================================================
   AGENT GRID
   ========================================================= */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.agent-card {
  border-radius: var(--radius-lg);
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.55);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, border-color 0.25s ease,
    background 0.25s ease, box-shadow 0.25s ease;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet-mid), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.agent-grid .agent-card:first-child {
  border-color: rgba(167, 139, 250, 0.25);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.1), rgba(2, 3, 9, 0.6));
}

.agent-grid .agent-card:first-child::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--violet), rgba(167, 139, 250, 0.4));
}

.agent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.agent-card.active {
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.22),
    0 0 0 1px rgba(167, 139, 250, 0.3);
}

.agent-card.active::before {
  opacity: 1;
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}

.agent-name {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  flex-shrink: 0;
}

.agent-role {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

/* =========================================================
   CHAT FEED
   ========================================================= */
.chat-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body:not(.mission-mode) .chat-feed {
  max-height: 460px;
}

.chat-feed::-webkit-scrollbar {
  width: 4px;
}

.chat-feed::-webkit-scrollbar-track {
  background: transparent;
}

.chat-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.chat-message {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.5);
  border-left: 3px solid rgba(167, 139, 250, 0.35);
  transition: border-left-color 0.2s ease;
  animation: msgIn 0.25s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message:first-child {
  border-left-color: rgba(167, 139, 250, 0.6);
}

.chat-message .sender {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--violet);
  font-family: var(--mono);
  margin-bottom: 8px;
}

.chat-message .content {
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.94rem;
  overflow-wrap: break-word;
}

/* The speaker's nomination. Cyan is the hand-off colour everywhere:
   the comet between planets and the "named by the last speaker" chip. */
.chat-message .handoff {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  color: var(--cyan);
  font-size: 0.82rem;
}

/* =========================================================
   RENDERED MARKDOWN (.md) - chat bubbles + final answer
   Scale is a minor third off the body size; headings step down
   inside the narrow rail rather than shouting.
   ========================================================= */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }

.md p,
.md ul,
.md ol,
.md blockquote,
.md pre,
.md .md-table {
  margin: 0 0 0.85em;
}

.md h1,
.md h2,
.md h3,
.md h4 {
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.3;
  margin: 1.5em 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* landing.css styles every h1 as a gradient display headline; an h1
   inside model output is just a document title. */
.md h1 {
  font-size: 1.44em;
  padding-bottom: 0;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.md h2 { font-size: 1.2em; padding-bottom: 0.35em; border-bottom: 1px solid var(--border); }
.md h3 { font-size: 1.05em; }
.md h4 { font-size: 1em; color: var(--muted); }

.md strong { color: var(--ink); font-weight: 600; }

.md ul,
.md ol { padding-left: 1.3em; }
.md li { margin: 0.25em 0; }
.md li > ul,
.md li > ol { margin: 0.25em 0 0; }

.md a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.md hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.4em 0;
}

.md code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.md pre {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.7);
  overflow-x: auto;
}
.md pre code { padding: 0; background: none; }

.md blockquote {
  padding-left: 14px;
  border-left: 2px solid var(--border-bright);
  color: var(--muted);
}

/* Tables scroll inside their own box; the rail never scrolls sideways. */
.md .md-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

.md th,
.md td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.md th {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.md tr:last-child td { border-bottom: 0; }

/* "Responding" placeholder shown from message_start to the first token. */
.typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 0;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.35;
  animation: typingDot 1.2s ease-in-out infinite;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .typing i { animation: none; opacity: 0.7; }
}

/* =========================================================
   FINAL OUTPUT
   ========================================================= */
.output-panel {
  border-color: rgba(251, 191, 36, 0.2);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.06) 0%, rgba(244, 114, 182, 0.04) 100%);
}

.output-panel .panel-header h2 {
  color: var(--gold);
}

.final-output {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid rgba(251, 191, 36, 0.15);
  background: rgba(2, 3, 9, 0.55);
  /* The panel is a scrolling flex column; without this the box shrinks
     to the panel's height and a long answer spills out past its border. */
  flex-shrink: 0;
  /* This is the text the user came for: full-strength ink, not --muted. */
  color: rgba(234, 238, 252, 0.84);
  line-height: 1.72;
  min-height: 120px;
  font-size: 0.96rem;
  overflow-wrap: break-word;
}

/* =========================================================
   DEMO FOOTER
   ========================================================= */
.demo-footer {
  padding: 0 clamp(18px, 6vw, 72px) 52px;
  text-align: center;
  color: var(--dim);
  font-size: 0.82rem;
}

/* =========================================================
   CLARIFICATION MODAL
   ========================================================= */
/* Above the sticky nav (z-index 100), which otherwise covers the dialog's title. */
.clarify-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* The dialog never outgrows the viewport: the title and the buttons stay
   put and the question list scrolls between them. */
.clarify-modal {
  width: min(720px, 100%);
  max-height: 100%;
  min-height: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(6, 6, 18, 0.94);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(167, 139, 250, 0.1);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.clarify-modal h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.clarify-modal .clarify-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.clarify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.clarify-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.clarify-question {
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.6);
  transition: border-color 0.2s ease;
}

.clarify-question:focus-within {
  border-color: rgba(167, 139, 250, 0.35);
}

.clarify-question label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.clarify-question textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(2, 3, 9, 0.6);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.96rem;
  line-height: 1.6;
  padding: 10px 14px;
  resize: vertical;
  min-height: 64px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.clarify-question textarea::placeholder {
  color: var(--dim);
}

.clarify-question textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.14);
}

.clarify-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
  flex-shrink: 0;
}

@media (max-width: 640px), (max-height: 640px) {
  .clarify-overlay {
    padding: 10px;
  }

  .clarify-modal {
    padding: 18px 14px 14px;
    gap: 12px;
  }

  .clarify-modal .clarify-subtitle {
    display: none;
  }

  .clarify-question {
    padding: 12px;
  }
}


/* =========================================================
   SEGMENTED SWITCH (shared: Recommended | Custom, Standard | Deep)
   ========================================================= */
.mode-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: rgba(2, 3, 9, 0.6);
}

.mode-switch button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.mode-switch button:focus-visible {
  outline: 2px solid rgba(157, 141, 241, 0.6);
  outline-offset: 1px;
}

.mode-switch button[aria-checked="true"] {
  background: var(--violet-glow);
  color: var(--ink);
}

/* =========================================================
   MODEL CONTROL (admins and own-key users)
   Recommended | Custom; in Custom, one box per role with a catalog
   search, the model's facts, warnings, and a Tune section.
   ========================================================= */
.model-control {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(2, 3, 9, 0.45);
  text-align: left;
}

.model-control-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.model-control-label {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.model-control-summary {
  color: var(--dim);
  font-size: 0.78rem;
}

.model-roles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(56vh, 620px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.model-role {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.model-role-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.model-role-name {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.model-role-hint {
  flex: 1;
  color: var(--dim);
  font-size: 0.76rem;
}

button.text-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.model-search {
  position: relative;
}

.model-search-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  background: rgba(2, 3, 9, 0.7);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.model-search-input:focus {
  outline: none;
  border-color: rgba(157, 141, 241, 0.55);
}

.model-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  background: #070914;
  box-shadow: var(--shadow-md);
}

.model-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.model-result:hover,
.model-result[aria-selected="true"] {
  background: var(--violet-glow);
}

.model-result-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-result-id {
  grid-column: 1;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-result-meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: right;
}

.model-role-info {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.model-role-warn {
  color: var(--gold);
  font-size: 0.76rem;
  line-height: 1.45;
}

.model-tune summary,
.model-more summary {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.76rem;
  cursor: pointer;
}

.model-more {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-more[open] summary {
  margin-bottom: 8px;
}

.model-tune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 12px;
  margin-top: 8px;
}

.model-tune-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.model-tune-field input,
.model-tune-field select {
  padding: 5px 8px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: rgba(2, 3, 9, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
}

.model-control-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

/* =========================================================
   OWN KEY (form + dialog)
   ========================================================= */
.own-key-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.own-key-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.own-key-saved {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
  color: var(--ink);
  font-size: 0.84rem;
}

.own-key-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}

.own-key-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-size: 0.86rem;
}

.own-key-field input {
  padding: 9px 12px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  background: rgba(2, 3, 9, 0.7);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84rem;
}

.own-key-field input:focus {
  outline: none;
  border-color: rgba(157, 141, 241, 0.55);
}

.own-key-note {
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.5;
}

.own-key-remember {
  color: var(--muted);
  font-size: 0.84rem;
}

.own-key-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.own-key-message {
  flex: 1;
  min-width: 200px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.key-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.2s ease;
}

.key-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(560px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-xl);
  background: rgba(6, 6, 18, 0.96);
  box-shadow: var(--shadow-lg);
}

.key-dialog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.key-dialog-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
}

.key-dialog-next {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.workspace-link {
  color: var(--muted);
}

/* =========================================================
   ACCOUNT (nav) + SIGN-IN (form)
   ========================================================= */
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-runs {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.account-runs[data-empty="1"] {
  border-color: rgba(244, 114, 182, 0.45);
  color: var(--rose);
}

.account-name {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-signout {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-signout:hover { color: var(--ink); }

.launch-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.launch-area .btn { width: 100%; }

.signin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signin-buttons .btn {
  flex: 1 1 200px;
  width: auto;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* A note outside .signin is a message to act on (limit reached, sign-in error). */
#form-note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
  color: var(--ink);
}

.more-runs {
  text-align: center;
  color: var(--dim);
}

.more-runs-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.text-link {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--ink); }

.signin {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signin .form-note { color: var(--ink); }

/* Gold is the Leader's colour and the answer's; Premium is "more of that". */
.premium {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.premium-title {
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--gold);
}

.premium p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.6;
}

.premium .premium-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-examples {
  width: 100%;
  max-width: 920px;
  margin: 8px auto 0;
}

.demo-examples-title {
  margin: 0 0 14px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   MESSAGE ANATOMY: header chips, tool trace, evidence
   Colour is role, everywhere: emerald = measured / complete,
   cyan = hand-offs and sources, violet = the crew's own record,
   gold = in progress, rose = blocked.
   ========================================================= */
.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.chip-subtask {
  font-family: var(--mono);
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.35);
}

.chip[data-status="complete"] { color: var(--emerald); border-color: rgba(52, 211, 153, 0.45); }
.chip[data-status="partial"] { color: var(--gold); border-color: rgba(251, 191, 36, 0.4); }
.chip[data-status="blocked"] { color: var(--rose); border-color: rgba(244, 114, 182, 0.45); }

.meta-needs {
  color: var(--cyan);
  font-size: 0.8rem;
}

.tool-trace {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--border-bright);
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.evidence {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.evidence-block {
  padding: 8px 12px;
  border-left: 2px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.evidence-block.is-decisions { border-left-color: var(--violet); }
.evidence-block.is-measured { border-left-color: var(--emerald); font-family: var(--mono); font-size: 0.78rem; }
.evidence-block.is-sources { border-left-color: var(--cyan); }

.evidence-label {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
}

.evidence-block ul {
  margin: 0;
  padding-left: 1.1em;
}

.evidence-block .md ul { padding-left: 1.1em; }
.evidence-block .md li { margin: 0.1em 0; }

/* =========================================================
   BRIEF: task profile + decisions on record
   ========================================================= */
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-chips:empty { display: none; }

.ledger-note {
  margin: -4px 0 10px;
  color: var(--dim);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 60ch;
}

.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ledger-list li {
  padding: 8px 12px;
  border-left: 2px solid var(--violet);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.ledger-by {
  display: block;
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  /* One 390px row: logo, one button, status. The logo already goes home,
     and the allowance is on the form, so both can step aside. */
  .account-name,
  .demo-actions a.prelaunch-only,
  body.mission-mode .account,
  body:not(.mission-mode) .status-pill {
    display: none;
  }

  .account-signout {
    white-space: nowrap;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Stacked mission layout. The stage has no fixed height here, so the
   absolutely-positioned panels collapsed to nothing: below 1024px the
   rail was just a tab bar and the dialogue / final answer could not be
   read at all. Let the active panel take its natural height and the
   page scroll. Must stay BELOW the base .mission-panel rule - same
   specificity, so source order decides. */
@media (max-width: 1024px) {
  .mission-panels {
    overflow: visible;
  }

  .mission-panel {
    position: static;
    overflow: visible;
  }

  .chat-feed {
    max-height: 70vh;
  }
}

@media (max-width: 640px) {
  /* Logo + button + pill share one 390px row. */
  .status-pill {
    max-width: 30vw;
    padding: 8px 10px;
  }

  .mission-tabs {
    gap: 2px;
    padding: 8px 6px 0;
  }

  .mission-tab {
    padding: 10px 6px;
    font-size: 0.84rem;
  }

  .mission-tab[data-flash="1"]::after {
    top: 5px;
    right: 2px;
  }
}

@media (max-width: 820px) {
  .demo-main {
    padding: 36px 18px 72px;
  }

  .agent-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .heartbeat-grid {
    grid-template-columns: 1fr;
  }

  .brief-columns {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CREW REVIEW (opt-in): each specialist's model, after planning
   ========================================================= */
.model-review-toggle {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.crew-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crew-review h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
}

.crew-review-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.crew-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(60vh, 640px);
  overflow-y: auto;
  padding-right: 4px;
}

.crew-review-focus {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.crew-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crew-review-dialog {
  width: min(760px, 100%);
}

.crew-review-card {
  padding: 16px 18px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(56, 189, 248, 0.05);
}

.crew-member-model {
  flex-basis: 100%;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.72rem;
}
