/* Fiona Live Intelligence Map — observe-only digital twin */

.fxo-card--live-map {
  border-left: 3px solid var(--fxo-fiona, #2dd4bf);
  background:
    radial-gradient(1200px 400px at 10% -20%, rgba(45, 212, 191, 0.08), transparent 60%),
    var(--fxo-card, #151c26);
}

.fxlim-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fxlim-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fxlim-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: var(--fxo-fiona, #2dd4bf);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fxlim-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 14px;
}

.fxlim-node {
  position: relative;
  min-width: 4.6rem;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--fxo-border, #2a3444);
  background: var(--fxo-inset, #0d131a);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--fxo-muted, #b4becc);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.fxlim-node::after {
  content: '›';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  color: #3a4658;
  font-size: 0.75rem;
  pointer-events: none;
}

.fxlim-node:last-child::after {
  content: none;
}

.fxlim-node.is-active {
  border-color: rgba(45, 212, 191, 0.7);
  color: var(--fxo-fiona, #2dd4bf);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25), 0 0 18px rgba(45, 212, 191, 0.12);
}

.fxlim-node.is-blocked {
  border-color: rgba(255, 123, 123, 0.65);
  color: var(--fxo-neg, #ff7b7b);
  box-shadow: 0 0 0 1px rgba(255, 123, 123, 0.2);
}

.fxlim-node.is-done {
  border-color: rgba(62, 232, 154, 0.45);
  color: var(--fxo-pos, #3ee89a);
}

.fxlim-node__count {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  opacity: 0.75;
  font-weight: 600;
}

.fxlim-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 14px;
}

.fxlim-journeys {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.fxlim-token {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--fxo-border, #2a3444);
  background: rgba(13, 19, 26, 0.85);
  cursor: pointer;
  text-align: left;
  color: inherit;
  width: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.fxlim-token:hover,
.fxlim-token.is-selected {
  border-color: rgba(45, 212, 191, 0.55);
}

.fxlim-token.is-terminated {
  border-color: rgba(255, 123, 123, 0.4);
  opacity: 0.92;
}

.fxlim-token__sym {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.fxlim-token__meta {
  font-size: 0.72rem;
  color: var(--fxo-muted, #b4becc);
}

.fxlim-token__stage {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--fxo-fiona, #2dd4bf);
}

.fxlim-detail {
  border: 1px solid var(--fxo-border, #2a3444);
  border-radius: 10px;
  background: var(--fxo-inset, #0d131a);
  padding: 12px;
  min-height: 220px;
}

.fxlim-detail h3,
.fxlim-detail h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.fxlim-detail-body {
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.fxlim-detail-body dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 0;
}

.fxlim-detail-body dt {
  color: var(--fxo-muted, #b4becc);
}

.fxlim-detail-body dd {
  margin: 0;
  font-weight: 650;
  word-break: break-word;
}

.fxlim-scores {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.fxlim-score {
  display: grid;
  grid-template-columns: 3.2rem 1fr 2.2rem;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.fxlim-bar {
  height: 8px;
  border-radius: 999px;
  background: #1a2330;
  overflow: hidden;
}

.fxlim-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 0.35s ease;
}

.fxlim-score--long .fxlim-bar i {
  background: linear-gradient(90deg, #1d9b63, var(--fxo-long, #3ee89a));
}

.fxlim-score--short .fxlim-bar i {
  background: linear-gradient(90deg, #b34040, var(--fxo-short, #ff7b7b));
}

.fxlim-decision {
  margin: 6px 0;
  font-size: 0.8rem;
}

.fxlim-ladder-body {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0a1017;
  border: 1px solid var(--fxo-border, #2a3444);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
  white-space: pre;
  overflow-x: auto;
}

.fxlim-note {
  margin: 12px 0 0;
  font-size: 0.72rem;
}

@media (max-width: 820px) {
  .fxlim-body {
    grid-template-columns: 1fr;
  }

  .fxlim-journeys {
    max-height: 260px;
  }

  .fxlim-node {
    min-width: 4.1rem;
    font-size: 0.58rem;
  }

  .fxlim-node::after {
    display: none;
  }
}

@media (max-width: 390px) {
  .fxlim-head-actions {
    width: 100%;
  }

  .fxlim-pipeline {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fxlim-node,
  .fxlim-token,
  .fxlim-bar i {
    transition: none !important;
  }
}

/* Decision card symbol — bound in renderBrain from journey/lead */
.fxlim-brain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 0 8px;
}
.fxlim-brain-head h4 {
  margin: 0;
}
.fxlim-brain-sym {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}
.fxlim-brain-sym strong {
  color: var(--fxo-fiona, #c4b5fd);
  font-weight: 800;
}
.fxlim-brain-fresh {
  margin-left: 8px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* Decision symbol → analyzer chart (opp-board deep-link); large mobile tap */
.fxlim-brain-sym.is-tappable {
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  margin: -10px -12px -10px 0;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.fxlim-brain-sym.is-tappable strong {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.fxlim-brain-sym.is-tappable:hover,
.fxlim-brain-sym.is-tappable:focus-visible {
  background: color-mix(in srgb, var(--fxo-fiona, #c4b5fd) 16%, transparent);
  outline: none;
}
.fxlim-brain-sym.is-tappable:active {
  background: color-mix(in srgb, var(--fxo-fiona, #c4b5fd) 28%, transparent);
}
