/* Market Flow uses the existing Company Flow control and canvas language. */
/* Cached lens surfaces stay mounted for instant switching, but must never
   participate in layout. Several graph rules set display explicitly, so the
   native hidden stylesheet alone is not strong enough here. */
html body.page-scp [id^="sci-lanes-grid--"][hidden] {
  display: none !important;
}

html body.page-scp .sci-hero-heading {
  min-width: 0;
}

html body.page-scp .sci-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

html body.page-scp .sci-hero-actions .sci-intelligence-lens {
  flex: 0 0 auto;
  align-items: center;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: rgba(var(--mono-soft-rgb, 235,234,229), 1);
}

html body.page-scp .sci-hero-actions .sci-intelligence-lens__tabs {
  gap: 2px;
}

html body.page-scp .sci-hero-actions .sci-intelligence-lens__tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: 12px;
  color: rgba(var(--mono-secondary-rgb, 97,95,88), 1);
  background: transparent;
  font-family: var(--site-body, Inter, Arial, sans-serif);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0;
  text-transform: none;
}

html body.page-scp .sci-hero-actions .sci-intelligence-lens__tabs button::after {
  content: none;
}

html body.page-scp .sci-hero-actions .sci-intelligence-lens__tabs button.is-active {
  color: rgba(var(--mono-paper-rgb, 255,255,255), 1);
  background: rgba(var(--mono-ink-rgb, 23,23,19), 1);
}

html body.page-scp .sci-hero-actions .sci-intelligence-lens__tabs button:hover {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  background: rgba(var(--mono-paper-rgb, 255,255,255), 0.62);
}

html body.page-scp .sci-hero-actions .sci-intelligence-lens__tabs button.is-active:hover {
  color: rgba(var(--mono-paper-rgb, 255,255,255), 1);
  background: rgba(var(--mono-ink-rgb, 23,23,19), 1);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal {
  height: 590px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(var(--mono-paper-rgb, 251,250,247), 1) !important;
  box-shadow: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 1.08fr) minmax(220px, 1.15fr) minmax(330px, 1.75fr) !important;
  grid-template-rows: 34px 34px;
  gap: 8px 10px;
  padding: 0 0 10px;
  border-bottom: 0;
  overflow: visible !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage {
  display: block;
  min-width: 0;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market { grid-column: 1; grid-row: 1; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer { grid-column: 2; grid-row: 1; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus { grid-column: 3; grid-row: 1; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--supplier { grid-column: 1; grid-row: 2; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--recipient { grid-column: 2; grid-row: 2; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage { grid-column: 3; grid-row: 2; }

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions {
  display: flex;
  grid-column: 4;
  grid-row: 2;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions button,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions a {
  display: inline-flex;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: rgba(var(--mono-ink-rgb, 41,42,39), 1);
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-overflow: clip;
  white-space: nowrap;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions button:hover,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions a:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market > span,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer > span,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus > span,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country > span,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage > span {
  display: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market select,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer select,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus select,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country select {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 12px;
  border: 0;
  border-radius: 11px;
  outline: none;
  color: rgba(var(--mono-ink-rgb, 41,42,39), 1);
  appearance: none;
  background-color: rgba(var(--mono-soft-rgb, 241,241,237), 1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%232f684d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 11px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  font: inherit;
  font-size: 11.25px;
  font-weight: 620;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market .korthos-select,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer .korthos-select,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus .korthos-select,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country .korthos-select {
  width: 100% !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head > label {
  position: relative;
  z-index: 1;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head > label:has(.korthos-select.is-open) {
  z-index: 2147482600;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market .korthos-select__button,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer .korthos-select__button,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus .korthos-select__button,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country .korthos-select__button {
  width: 100% !important;
  height: 36px !important;
  padding: 0 32px 0 12px !important;
  border: 0 !important;
  border-radius: 11px !important;
  outline: 0 !important;
  color: rgba(var(--mono-ink-rgb, 41,42,39), 1) !important;
  background: rgba(var(--mono-soft-rgb, 241,241,237), 1) !important;
  box-shadow: none !important;
  font-size: 11.25px !important;
  font-weight: 620 !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head .korthos-select.is-open .korthos-select__button,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head .korthos-select__button:focus,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head .korthos-select__button:focus-visible {
  outline: 0 !important;
  border: 0 !important;
  background: rgba(var(--mono-soft-rgb, 233,236,232), 1) !important;
  box-shadow: none !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head .korthos-select__menu {
  top: calc(100% + 5px) !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  max-height: 238px !important;
  padding: 5px !important;
  border-radius: 12px !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head .korthos-select__option {
  min-height: 32px !important;
  padding: 7px 9px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 560 !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.korthos-select.is-open) {
  overflow: visible !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage {
  position: relative;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage strong {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  color: rgba(var(--mono-ink-rgb, 53,54,50), 1);
  background: rgba(var(--mono-soft-rgb, 241,241,237), 1);
  font-size: 10.5px;
  font-weight: 630;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage small {
  display: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls {
  display: flex;
  flex-direction: column;
  grid-column: 4;
  grid-row: 1 / span 2;
  justify-content: stretch;
  align-items: stretch;
  align-self: stretch;
  gap: 8px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls > div {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 36px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(var(--mono-soft-rgb, 241,241,237), 1);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls button {
  flex: 1 1 0;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  color: rgba(var(--mono-secondary-rgb, 98,95,88), 1);
  background: transparent;
  font-size: 10.25px;
  font-weight: 650;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls > div:first-child button.is-active {
  color: rgba(var(--mono-paper-rgb, 255,255,255), 1);
  background: rgba(var(--mono-ink-rgb, 23,23,19), 1) !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls button[data-market-flow-terminal-evidence="verified"].is-active { color: rgba(var(--mono-paper-rgb, 255,255,255), 1); background: rgba(var(--mono-signal-5-rgb, 47,111,88), 1) !important; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls button[data-market-flow-terminal-evidence="reported"].is-active { color: rgba(var(--mono-paper-rgb, 255,255,255), 1); background: #4773a9 !important; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls button[data-market-flow-terminal-evidence="inferred"].is-active { color: rgba(var(--mono-paper-rgb, 255,255,255), 1); background: #76558e !important; }

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls button:hover {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  background: rgba(var(--mono-paper-rgb, 255,255,255), 0.72);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__direction {
  display: none !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__columns { gap: 12px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__column { padding: 2px; }

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__column > header {
  min-height: 24px;
  align-items: center;
  gap: 0;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__column h3 {
  gap: 7px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__column h3 span {
  display: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__column > header p {
  display: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__list {
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--mono-signal-5-rgb, 47,104,77), 0.22) transparent;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__list::-webkit-scrollbar { width: 3px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__list::-webkit-scrollbar-track { background: transparent; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--mono-signal-5-rgb, 47,104,77), 0.22);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__more {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: rgba(var(--mono-secondary-rgb, 85,85,79), 1);
  background: rgba(var(--mono-soft-rgb, 235,234,229), 1);
  font-size: 10px;
  font-weight: 680;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__more span {
  margin-left: 4px;
  color: rgba(var(--mono-secondary-rgb, 119,116,109), 1);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__more:hover {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  background: rgba(var(--mono-line-rgb, 226,225,220), 1);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  align-content: center !important;
  min-height: 62px !important;
  padding: 6px 11px;
  gap: 11px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 11px;
  background: rgba(var(--mono-soft-rgb, 241,241,237), 1) !important;
  box-shadow: none !important;
  transition: background-color 120ms ease;
}

@media (min-width: 901px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head.has-focus-actions {
    height: 108px !important;
    min-height: 108px !important;
    padding-bottom: 32px !important;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions {
    position: absolute;
    right: 0;
    bottom: 0;
  }
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__copy {
  display: block !important;
  min-width: 0;
  text-align: left;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__copy > span {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__copy > em {
  display: -webkit-box !important;
  margin-top: 4px;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__input-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  background: transparent;
  box-shadow: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__input-mark {
  display: flex !important;
  align-self: center;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo .sci-intel__systemic-logo {
  display: grid;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo .sci-intel__systemic-logo img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: none;
  scale: 1;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo .sci-intel__systemic-logo:not(.is-fallback) > span,
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo:not(.is-fallback) > span {
  display: none !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo .sci-intel__systemic-logo.is-fallback {
  border-radius: 50% !important;
  color: rgba(var(--mono-secondary-rgb, 79,81,76), 1);
  background: rgba(var(--mono-soft-rgb, 231,230,225), 1) !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__input-mark svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column="upstream"] .sci-market-flow-terminal__item {
  min-height: 58px !important;
}

html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column="upstream"] .sci-market-flow-terminal__copy {
  align-self: center;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item strong {
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 13.5px !important;
  font-weight: 730;
  line-height: 1.2;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item small {
  min-width: max-content;
  padding: 0;
  color: rgba(var(--mono-ink-rgb, 52,52,47), 1);
  background: transparent;
  font-family: Inter, Arial, sans-serif;
  font-size: 13.5px !important;
  font-weight: 730;
  line-height: 1.2;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item em {
  overflow: visible !important;
  color: rgba(var(--mono-secondary-rgb, 89,87,95), 1);
  font-size: 9.5px !important;
  font-weight: 520;
  line-height: 1.25;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item > i { display: none !important; }
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item { background: rgba(var(--mono-soft-rgb, 241,241,237), 1) !important; }
/* The retained neutral cards override the legacy dark selected background.
   Keep their selected text and count dark as well. */
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item.is-active,
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item.is-active strong,
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item.is-active small {
  color: rgba(var(--mono-ink-rgb, 41,41,35), 1) !important;
}
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item.is-active em {
  color: rgba(var(--mono-secondary-rgb, 89,87,95), 1) !important;
}
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column="upstream"] .sci-market-flow-terminal__item { min-height: 62px !important; }

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item:hover:not(.is-active) {
  background: rgba(var(--mono-soft-rgb, 234,233,228), 1) !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile {
  display: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile-filter-toggle {
  display: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-summary {
  gap: 2px 9px;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-summary > strong {
  font-size: 11.5px;
  font-weight: 700;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-summary > span,
html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-summary > small {
  font-size: 9px;
  line-height: 1.2;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-actions { gap: 14px; }

html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-actions a,
html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-actions button {
  min-height: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  background: transparent;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-actions > * + * { border-left: 0; }

html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-actions a:hover,
html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-actions button:hover {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  background: transparent;
  text-decoration: underline;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__evidence small {
  color: rgba(var(--mono-secondary-rgb, 93,91,86), 1);
  font-size: 10.5px;
  font-weight: 580;
  line-height: 1.25;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__evidence a {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__evidence a:hover {
  text-decoration: underline;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) {
  position: relative;
  height: 590px !important;
  min-height: 590px !important;
  max-height: 590px !important;
  overflow: hidden !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) > .sci-market-flow-terminal__direction,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) > .sci-market-flow-terminal__columns {
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) > .sci-market-flow-inline-detail {
  position: absolute;
  z-index: 4;
  top: 98px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: auto;
  margin: 0;
  padding: 0 5px 0 0;
  background: rgba(var(--mono-paper-rgb, 251,250,247), 1);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  margin: 0 2px;
  padding: 2px 5px 2px 0;
  overflow: hidden;
  border-top: 0 !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border-top: 0 !important;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream .sci-market-flow-inline-detail__section:first-child {
  flex: none;
}

/* Upstream focus contains two related path groups. Keep them in one continuous
   reading surface instead of creating two competing internal scroll panes. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--mono-ink-rgb, 23,23,19), 0.2) transparent;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream .sci-market-flow-inline-detail__section {
  display: block;
  min-height: auto;
  overflow: visible;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream .sci-market-flow-inline-detail__section + .sci-market-flow-inline-detail__section {
  margin-top: 14px;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream .sci-market-flow-inline-detail__routes {
  overflow: visible;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream::-webkit-scrollbar { width: 4px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream::-webkit-scrollbar-track { background: transparent; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail.has-upstream::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--mono-ink-rgb, 23,23,19), 0.2);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__routes {
  display: grid;
  /* The scroll pane must not compress evidence rows to their 64px minimum. */
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--mono-ink-rgb, 23,23,19), 0.2) transparent;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__section h4 {
  position: static;
  padding: 6px 6px 5px;
  background: rgba(var(--mono-paper-rgb, 251,250,247), 1);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__route {
  grid-template-columns: minmax(0, 1fr) minmax(230px, .34fr);
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 9px 12px;
  border: 0 !important;
  border-radius: 11px;
  background: rgba(var(--mono-soft-rgb, 244,245,243), 1);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__route:hover {
  z-index: 1;
  transform: translateY(-2px);
  background: rgba(var(--mono-soft-rgb, 237,242,245), 1);
  box-shadow: 0 5px 14px rgba(var(--mono-signal-5-rgb, 27,35,32), 0.08);
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__flow {
  display: grid;
  grid-template-columns: minmax(150px, .95fr) minmax(190px, 1.3fr) minmax(150px, .95fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0;
  box-sizing: border-box;
  transform-origin: center;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo > span {
  font-size: 8px;
  font-weight: 750;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company strong,
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__flow b {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  line-height: 1.22;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company strong {
  font-size: 12px;
  font-weight: 720;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__flow b {
  font-size: 12.5px;
  font-weight: 740;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__routes::-webkit-scrollbar { width: 4px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__routes::-webkit-scrollbar-track { background: transparent; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__routes::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(var(--mono-ink-rgb, 23,23,19), 0.2);
}

@media (max-width: 980px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__route {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  html body.page-scp .sci-hero-actions { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  html body.page-scp:not(.sci-analytics-standalone) .scp-hero__topline {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
  }

  html body.page-scp .sci-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, 36px);
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer { grid-row: 1; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--supplier { grid-row: 2; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--recipient { grid-column: 1; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--supplier,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage { grid-column: 2; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--recipient,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage { grid-row: 3; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions { grid-column: 1 / -1; grid-row: 4; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls {
    grid-column: 1 / -1;
    grid-row: 5;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
}

@media (max-width: 760px) {
  html body.page-scp.sci-market-flow-mode #sci-map-scroll,
  html body.page-scp.sci-market-flow-mode .sci-map-inner,
  html body.page-scp.sci-market-flow-mode #sci-flow-wrap,
  html body.page-scp.sci-market-flow-mode .sci-lanes-grid--market-flow {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 11px;
    overflow: visible !important;
    border-radius: 16px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding-bottom: 12px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head > * {
    width: 100%;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--supplier,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions {
    display: none !important;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal.is-mobile-filters-open .sci-market-flow-terminal__layer,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal.is-mobile-filters-open .sci-market-flow-terminal__country--supplier {
    display: block !important;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--recipient {
    display: block !important;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market { order: 1; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus { order: 2; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--recipient { order: 3; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile-filter-toggle { order: 4; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__layer { order: 5; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--supplier { order: 6; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls { order: 7; }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile-filter-toggle {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    color: rgba(var(--mono-ink-rgb, 41,42,38), 1);
    background: rgba(var(--mono-soft-rgb, 239,238,233), 1);
    font: inherit;
    font-size: 11px;
    font-weight: 680;
    text-align: left;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile-filter-toggle b {
    margin-left: 6px;
    color: rgba(var(--mono-secondary-rgb, 113,111,104), 1);
    font-size: 9.5px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile-filter-toggle i {
    margin-left: auto;
    color: rgba(var(--mono-signal-5-rgb, 46,108,86), 1);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market select,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus select,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--recipient select,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__market .korthos-select__button,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__focus .korthos-select__button,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__country--recipient .korthos-select__button {
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    padding-top: 2px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls > div {
    gap: 5px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls button {
    min-height: 38px;
    font-size: 10.5px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__direction,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__columns,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal > footer,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal > .sci-market-flow-inline-detail {
    display: none !important;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile {
    display: block;
    min-width: 0;
    padding-top: 2px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 2px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__summary strong {
    color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
    font-size: 14px;
    font-weight: 760;
    letter-spacing: -.01em;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__summary small {
    color: rgba(var(--mono-secondary-rgb, 105,103,97), 1);
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__metrics {
    margin: 0;
    padding: 2px 2px 10px;
    color: rgba(var(--mono-secondary-rgb, 101,99,93), 1);
    font-size: 9px;
    font-weight: 560;
    line-height: 1.35;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 11px;
    padding: 3px;
    border-radius: 11px;
    background: rgba(var(--mono-soft-rgb, 239,238,233), 1);
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__stage {
    min-width: 0;
    min-height: 34px;
    padding: 5px 3px;
    border: 0;
    border-radius: 8px;
    color: rgba(var(--mono-secondary-rgb, 101,99,93), 1);
    background: transparent;
    font: inherit;
    font-size: 9px;
    font-weight: 680;
    white-space: nowrap;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__stage--upstream.is-active { color: rgba(var(--mono-ink-rgb, 55,52,63), 1); background: rgba(var(--mono-soft-rgb, 228,225,237), 1); }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__stage--supplier.is-active { color: #4d421f; background: #f8e8b7; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__stage--input.is-active { color: #2d4059; background: #dbe7f7; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__stage--recipient.is-active { color: rgba(var(--mono-signal-5-rgb, 41,77,71), 1); background: rgba(var(--mono-signal-wash-rgb, 217,236,233), 1); }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__nav {
    display: grid;
    gap: 4px;
    padding: 4px 2px 12px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__nav > button,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__nav > span {
    width: max-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
    background: transparent;
    font-size: 11px;
    font-weight: 720;
    text-align: left;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__nav small {
    overflow: hidden;
    color: rgba(var(--mono-secondary-rgb, 107,105,99), 1);
    font-size: 9.5px;
    font-weight: 560;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px 9px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__title h3 {
    margin: 0;
    color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
    font-size: 13px;
    font-weight: 780;
    letter-spacing: -.01em;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__title span {
    color: rgba(var(--mono-secondary-rgb, 108,105,98), 1);
    font-size: 10px;
    font-weight: 620;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__list,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__paths {
    display: grid;
    gap: 7px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__card {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 70px;
    padding: 10px 11px;
    gap: 11px;
    border: 0;
    border-radius: 13px;
    color: rgba(var(--mono-ink-rgb, 39,40,36), 1);
    background: rgba(var(--mono-soft-rgb, 238,236,244), 1);
    text-align: left;
    transition: transform 140ms ease, filter 140ms ease;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__card--supplier { background: #fff3d2; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__card--input { background: #e8f0fa; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__card--recipient { background: rgba(var(--mono-signal-wash-rgb, 231,243,241), 1); }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__card:active {
    transform: scale(.992);
    filter: brightness(.985);
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark .sci-intel__systemic-logo {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark .sci-intel__systemic-logo img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain !important;
    transform-origin: center;
    scale: 1;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark .sci-intel__systemic-logo > span {
    color: rgba(var(--mono-ink-rgb, 63,64,60), 1);
    font-size: 11px;
    font-weight: 760;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark .sci-intel__systemic-logo:not(.is-fallback) > span {
    display: none;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark--input {
    color: #58646c;
    background: transparent;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark--input svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__copy {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__card strong {
    color: rgba(var(--mono-ink-rgb, 36,37,33), 1);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.22;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__copy em {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(var(--mono-secondary-rgb, 98,97,91), 1);
    font-size: 10px;
    font-style: normal;
    font-weight: 520;
    line-height: 1.32;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__meta {
    display: grid;
    align-items: center;
    justify-items: end;
    gap: 6px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__meta small {
    padding: 4px 7px;
    border-radius: 999px;
    color: rgba(var(--mono-secondary-rgb, 85,84,78), 1);
    background: rgba(var(--mono-paper-rgb, 255,255,255), 0.68);
    font-size: 9px;
    font-weight: 680;
    line-height: 1;
    white-space: nowrap;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__meta i {
    color: rgba(var(--mono-secondary-rgb, 119,117,111), 1);
    font-size: 17px;
    font-style: normal;
    line-height: 1;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__paths .sci-market-flow-inline-detail__route {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
    gap: 10px;
    border-radius: 12px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__paths .sci-market-flow-inline-detail__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__paths .sci-market-flow-inline-detail__evidence {
    padding-top: 8px;
    border-top: 1px solid rgba(var(--mono-line-rgb, 225,226,222), 1);
  }
}

/* Keep the path pane below the real, responsive control height. The former
   absolute top:98px covered the Back action when the header wrapped. */
@media (min-width: 761px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) {
    display: flex;
    flex-direction: column;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) > .sci-market-flow-terminal__head {
    flex: 0 0 auto;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) > .sci-market-flow-terminal__columns,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) > .sci-market-flow-terminal__direction {
    display: none !important;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal:has(.sci-market-flow-inline-detail) > .sci-market-flow-inline-detail {
    position: relative;
    inset: auto;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Connection previews preserve list position and the user's pinned focus. */
.sci-market-flow-preview {
  position: fixed;
  z-index: 10020;
  width: min(280px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(var(--mono-line-rgb, 218,219,211), 1);
  border-radius: 12px;
  background: rgba(var(--mono-paper-rgb, 251,250,247), 1);
  color: rgba(var(--mono-ink-rgb, 34,37,31), 1);
  box-shadow: 0 8px 28px rgba(var(--mono-signal-5-rgb, 20,28,20), 0.14);
  font: 12px/1.45 var(--site-body, Inter, Arial, sans-serif);
  pointer-events: none;
}
.sci-market-flow-preview[hidden] { display: none !important; }
.sci-market-flow-preview strong { display: block; font-size: 13px; }
.sci-market-flow-preview p { margin: 8px 0; overflow-wrap: anywhere; }
.sci-market-flow-preview small { display: block; margin-top: 8px; color: rgba(var(--mono-secondary-rgb, 101,103,94), 1); }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item.is-preview-related {
  background: rgba(var(--mono-soft-rgb, 234,233,228), 1) !important;
  box-shadow: none !important;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__copy > em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-scope-note {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(var(--mono-secondary-rgb, 101,103,94), 1);
  margin: 5px 0 12px;
}

/* Compact nodes; connection descriptions belong in the preview/detail surface. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__copy > em { display: none !important; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__item:hover:not(.is-active) {
  background: rgba(var(--mono-soft-rgb, 234,233,228), 1) !important;
  box-shadow: none !important;
  transform: none;
}
.sci-market-flow-preview-route + .sci-market-flow-preview-route { border-top: 1px solid rgba(var(--mono-soft-rgb, 231,229,223), 1); margin-top: 10px; padding-top: 10px; }
.sci-market-flow-preview-pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sci-market-flow-preview-pair b { font-size: 12px; }
.sci-market-flow-preview-pair > span { color: rgba(var(--mono-secondary-rgb, 136,135,125), 1); }
.sci-market-flow-preview-route p { margin: 5px 0 0; color: rgba(var(--mono-secondary-rgb, 98,98,90), 1); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.sci-market-flow-preview .sci-market-flow-preview-route p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.sci-market-flow-mobile-preview { margin: 0 0 12px; padding: 14px; background: rgba(var(--mono-soft-rgb, 245,244,239), 1); border-radius: 12px; }
/* White-only marks get ink contrast without adding a padded tile. */
/* An intrinsic SVG height must not enlarge the grid's implicit row and then
   get cropped by its 32px parent (notably Hexagon and Qualcomm). */
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo .sci-intel__systemic-logo,
html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark .sci-intel__systemic-logo,
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 32px !important;
  height: 32px !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo,
html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo,
html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark,
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo .sci-intel__systemic-logo,
html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark .sci-intel__systemic-logo,
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo {
  border-radius: 7px !important;
  overflow: hidden !important;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo img,
html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark img,
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo img {
  display: block;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__logo .sci-intel__systemic-logo.is-dark,
html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__mark .sci-intel__systemic-logo.is-dark,
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company .sci-intel__systemic-logo.is-dark {
  background: transparent !important;
  filter: brightness(0);
}

/* These two stored monochrome marks have an off-white source plate. Lift
   that plate to white so multiply blends it into the existing row surface. */
html body.page-scp.sci-market-flow-mode .sci-intel__systemic-logo.is-light-plate img {
  filter: contrast(1.3);
}

/* Keep the mobile graph clear of the shared editorial footer. */
@media (max-width: 900px) {
  html body.page-scp.sci-market-flow-mode footer.site-footer {
    margin-top: 48px !important;
  }
}

/* Local Market Flow trial: recorded HQ flags in the existing company slot. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-hq-flag {
  display: inline-flex;
  flex: 0 0 26px;
  width: 26px;
  height: 20px;
  align-self: center;
  vertical-align: middle;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  padding: 0;
  border: 0;
  line-height: 0;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-hq-flag > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  padding: 0 !important;
  margin: 0;
  transform: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Distinct neutral states: connected rows, pointer target, pinned selection. */
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item.is-preview-related {
  background: rgba(var(--mono-soft-rgb, 237,237,235), 1) !important;
  box-shadow: none !important;
}
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item:hover:not(.is-active) {
  background: rgba(var(--mono-soft-rgb, 233,233,231), 1) !important;
  box-shadow: none !important;
  transform: none !important;
}
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item.is-active {
  background: rgba(var(--mono-soft-rgb, 229,229,227), 1) !important;
  box-shadow: none !important;
  transform: none !important;
}
html body.page-scp.sci-market-flow-mode [data-market-flow-aggregate-column] .sci-market-flow-terminal__item:focus-visible {
  outline: 2px solid rgba(var(--mono-secondary-rgb, 83,83,75), 1) !important;
  outline-offset: -2px;
}

/* Paths read as a connection first, with full evidence available underneath. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px 16px;
  min-height: 0;
  background: rgba(var(--mono-soft-rgb, 241,241,237), 1);
  transition: none;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__route:hover {
  transform: none;
  background: rgba(var(--mono-soft-rgb, 241,241,237), 1);
  box-shadow: none;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__flow {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__input {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__input > b {
  flex: 1;
  font-weight: 580;
  overflow-wrap: anywhere;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__input > span {
  color: rgba(var(--mono-secondary-rgb, 117,117,108), 1);
  font-size: 16px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__evidence {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__metadata small {
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__source {
  margin-top: 7px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__source summary {
  width: fit-content;
  cursor: pointer;
  color: rgba(var(--mono-ink-rgb, 65,65,57), 1);
  font-size: 11.5px;
  font-weight: 600;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__source summary:hover {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  text-decoration: underline;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__source p {
  margin: 8px 0 5px;
  max-width: 95ch;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(var(--mono-secondary-rgb, 76,75,67), 1);
}
@media (max-width: 760px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__input {
    padding-left: 36px;
    gap: 8px;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__input > span:first-child {
    display: none;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__input > span:last-child {
    display: none;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__metadata {
    display: grid;
    gap: 3px;
  }
}

/* Keep navigation a sibling link, never nested inside the focus button. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-company-row {
  position: relative;
  min-width: 0;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-company-row > button {
  width: 100%;
  padding-right: 42px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: rgba(var(--mono-secondary-rgb, 101,101,92), 1);
  background: transparent;
  text-decoration: none;
  gap: 6px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-profile-link > svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-company-row > .sci-market-flow-profile-link {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-profile-link:hover {
  color: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  background: rgba(var(--mono-line-rgb, 216,214,205), 1);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-profile-link:focus-visible {
  outline: 2px solid rgba(var(--mono-secondary-rgb, 83,83,75), 1);
  outline-offset: 1px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-profile-link--text {
  width: auto;
  padding: 0 5px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__company {
  gap: 7px;
}
@media (max-width: 760px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-profile-link {
    min-width: 44px;
    min-height: 44px;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-company-row > button {
    padding-right: 50px;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-company-row > .sci-market-flow-profile-link {
    right: 3px;
  }
}

/* Explanations live on demand inside the existing count cell. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-counts > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 10px;
  border-radius: 11px;
  background: rgba(var(--mono-soft-rgb, 241,241,237), 1);
  cursor: pointer;
  list-style: none;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-counts > summary::-webkit-details-marker { display: none; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-counts > summary strong {
  height: auto;
  padding: 0;
  background: transparent;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-counts > summary > span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--mono-muted-rgb, 170,169,159), 1);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font: 10px Georgia, serif;
  color: rgba(var(--mono-secondary-rgb, 98,98,89), 1);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-counts__body {
  position: absolute;
  z-index: 30;
  top: 40px;
  right: 0;
  width: min(330px, calc(100vw - 64px));
  box-sizing: border-box;
  padding: 14px;
  background: rgba(var(--mono-paper-rgb, 251,250,247), 1);
  border: 1px solid rgba(var(--mono-line-rgb, 212,210,201), 1);
  border-radius: 10px;
  box-shadow: 0 8px 24px #00000014;
  font: 12px/1.5 Inter, Arial, sans-serif;
  color: rgba(var(--mono-secondary-rgb, 76,76,67), 1);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-counts__body > strong {
  display: block;
  height: auto;
  padding: 0;
  background: transparent;
  font-size: 12px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-counts__body p {
  display: block !important;
  margin: 8px 0 0;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-height: none;
  -webkit-line-clamp: unset;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls button {
  white-space: normal;
  line-height: 1.15;
  padding-left: 5px;
  padding-right: 5px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-inline-detail__section h4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-navigation-notice {
  font-size: 12px;
  margin: 4px 0 10px;
  color: rgba(var(--mono-secondary-rgb, 98,93,73), 1);
}
html body.page-scp .sci-company-market-jump {
  position: relative;
  margin-left: auto;
  font: 12px/1.4 Inter, Arial, sans-serif;
}
html body.page-scp .sci-company-market-jump > summary {
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  color: rgba(var(--mono-ink-rgb, 68,68,59), 1);
}
html body.page-scp .sci-company-market-jump > summary:hover { background: rgba(var(--mono-soft-rgb, 230,229,223), 1); }
html body.page-scp .sci-company-market-jump > div {
  position: absolute;
  z-index: 60;
  right: 0;
  top: 100%;
  width: 210px;
  max-width: calc(100vw - 50px);
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(var(--mono-line-rgb, 212,210,201), 1);
  border-radius: 10px;
  background: rgba(var(--mono-paper-rgb, 251,250,247), 1);
  box-shadow: 0 8px 24px #00000014;
}
html body.page-scp .sci-company-market-jump button {
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  color: rgba(var(--mono-ink-rgb, 41,41,35), 1);
  background: transparent;
  cursor: pointer;
}
html body.page-scp .sci-company-market-jump button:hover,
html body.page-scp .sci-company-market-jump button:focus-visible { background: rgba(var(--mono-soft-rgb, 230,229,223), 1); }
html body.page-scp .sci-focus-breadcrumb { overflow: visible; }
@media (max-width: 760px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__coverage.sci-market-flow-counts {
    display: block !important;
    grid-column: 1 / -1;
    grid-row: auto;
  }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-counts__body {
    left: 0;
    right: auto;
  }
  html body.page-scp .sci-company-market-jump button { min-height: 44px; }
}

html body.page-scp .sci-company-field-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
html body.page-scp .sci-company-field-label .sci-company-market-jump { font-size: 10px; }
html body.page-scp .sci-company-field-label .sci-company-market-jump > summary { padding: 0; white-space: nowrap; }
html body.page-scp #sci-company-market-jump-host[hidden] { display: none; }

/* Focus actions occupy the existing count cell; no additional filter row. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions {
  position: static;
  grid-column: 3;
  grid-row: 2;
  width: 100%;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(var(--mono-soft-rgb, 238,237,232), 1);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-view-switch button {
  border: 0;
  border-radius: 7px;
  padding: 6px 16px;
  background: transparent;
  color: rgba(var(--mono-secondary-rgb, 98,98,93), 1);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-view-switch button[aria-pressed="true"] {
  background: rgba(var(--mono-ink-rgb, 23,23,19), 1);
  color: rgba(var(--mono-paper-rgb, 255,255,255), 1);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu { position: relative; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  cursor: pointer;
  list-style: none;
  color: rgba(var(--mono-ink-rgb, 41,42,39), 1);
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu > summary::-webkit-details-marker { display: none; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu > summary:hover { background: rgba(var(--mono-soft-rgb, 233,232,226), 1); }
html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu > div {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  padding: 5px;
  border: 1px solid rgba(var(--mono-line-rgb, 228,227,221), 1);
  border-radius: 10px;
  background: rgba(var(--mono-paper-rgb, 251,250,247), 1);
  box-shadow: 0 5px 16px #00000012;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-action-menu > div > * {
  display: flex;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: left;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-action-menu > div > *:hover {
  background: rgba(var(--mono-soft-rgb, 238,237,232), 1);
  text-decoration: none;
}
@media(max-width:760px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions { display: flex !important; order: 20; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-toolbar { justify-content: flex-end; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-view-switch { display: none; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions { width: 100%; justify-content: flex-end; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions button,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions a,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu > summary { min-height: 40px; font-size: 12px; }
}
@media(min-width:901px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head.has-focus-actions {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 10px !important;
  }
}

html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-focus-actions { gap: 5px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions .sci-market-flow-profile-link { min-width: 30px; justify-content: center; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu .sci-market-flow-terminal__coverage { position: relative; display: block; width: 100%; height: auto; margin-bottom: 3px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-action-menu .sci-market-flow-counts__body { left: auto; right: 0; }
@media(min-width:761px) and (max-width:900px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head-actions { grid-column: 2; grid-row: 3; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__head { grid-template-rows: repeat(3,36px); }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-terminal__controls { grid-row: 4; }
}

/* Keep the two-row filter grid: one filled action cell, with no dead space. */
html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-toolbar {
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(var(--mono-soft-rgb, 240,239,235), 1);
  box-sizing: border-box;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-view-switch { flex: 1; padding: 0; background: transparent; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-view-switch button { flex: 1; padding: 6px 8px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-toolbar .sci-market-flow-focus-actions { flex: 0 0 auto; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row {
  display: block;
  padding: 0;
  border-radius: 12px;
  min-height: 0;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row > summary {
  display: grid;
  grid-template-columns: minmax(150px,1fr) minmax(180px,1.5fr) minmax(150px,1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  min-height: 56px;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row.is-scoped > summary {
  grid-template-columns: minmax(170px,1fr) minmax(220px,2fr) auto;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row > summary::-webkit-details-marker { display: none; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row__status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(var(--mono-secondary-rgb, 107,107,100), 1);
  white-space: nowrap;
}
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row__status > span { color: rgba(var(--mono-ink-rgb, 54,54,47), 1); text-decoration: underline; text-underline-offset: 3px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row > .sci-market-flow-inline-detail__evidence { padding: 0 16px 14px; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row:not([open]) > .sci-market-flow-inline-detail__evidence { display: none; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row .sci-market-flow-inline-detail__evidence p { margin: 8px 0 6px; max-width: 100ch; font-size: 12px; line-height: 1.5; }
html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row .sci-market-flow-inline-detail__evidence a { font-size: 11px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:760px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-mobile__paths .sci-market-flow-path-row { padding: 0; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row > summary,
  html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row.is-scoped > summary { grid-template-columns: minmax(0,1fr); gap: 9px; padding: 12px; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row .sci-market-flow-inline-detail__input { padding-left: 0; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row > .sci-market-flow-inline-detail__evidence { padding: 0 12px 12px; }
  html body.page-scp.sci-market-flow-mode .sci-market-flow-path-row__status { justify-content: space-between; }
}
@media(max-width:760px) {
  html body.page-scp.sci-market-flow-mode .sci-market-flow-focus-toolbar { background: transparent; }
}
