/* FLUENT-ECOSYSTEM:START — canonical shared ecosystem timeline. */
.ecosystem-timeline {
  position: sticky;
  top: 0;
  z-index: 920;
  height: var(--ecosystem-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-secondary);
  color: var(--color-text);
  font-family: var(--font-sans);
}

.ecosystem-timeline *,
.ecosystem-timeline *::before,
.ecosystem-timeline *::after { box-sizing: border-box; }

.ecosystem-timeline__inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: var(--space-3);
  padding-inline: clamp(var(--space-3), 2.5vw, var(--space-6));
}

.ecosystem-timeline__brand {
  display: inline-flex;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-brand-dark);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}
.ecosystem-timeline__brand:hover { background: var(--color-blue-light); color: var(--color-brand-dark); }
.ecosystem-timeline__brand svg { width: 20px; height: 20px; }

.ecosystem-timeline__list {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.ecosystem-timeline__list::-webkit-scrollbar { display: none; }
.ecosystem-timeline__list li { flex: 0 0 auto; scroll-snap-align: start; }
.ecosystem-timeline__link {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding-inline: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.ecosystem-timeline__link:hover { border-color: var(--color-blue-border); background: var(--color-surface); color: var(--color-brand-dark); }
.ecosystem-timeline__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand-strong); }

.ecosystem-apps { position: relative; flex: 0 0 auto; }
.ecosystem-apps__button {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-inline: 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-brand-dark);
  font: 650 .75rem/1 var(--font-sans);
  cursor: pointer;
}
.ecosystem-apps__button:hover { border-color: var(--color-blue-border); background: var(--color-blue-light); }
.ecosystem-apps__button svg { width: 17px; height: 17px; }
.ecosystem-apps__panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: min(320px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-3);
}
.ecosystem-apps__panel[hidden] { display: none; }
.ecosystem-apps__title { margin: 0; padding: var(--space-2) var(--space-3); color: var(--color-text-muted); font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ecosystem-apps__panel ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ecosystem-apps__panel li { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--color-text); font-size: .8125rem; font-weight: 600; }
.ecosystem-apps__panel li:hover { background: var(--color-surface-secondary); }
.ecosystem-apps__panel a { color: var(--color-brand); font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }

.ecosystem-timeline :where(a, button):focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

@media (max-width: 767px) {
  .ecosystem-timeline__inner { gap: var(--space-2); padding-inline: var(--space-2); }
  .ecosystem-timeline__brand { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .ecosystem-timeline__brand-label, .ecosystem-apps__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .ecosystem-timeline__link { height: 44px; padding-inline: var(--space-2); }
  .ecosystem-apps__button { width: 44px; height: 44px; padding: 0; }
  .ecosystem-apps__panel { position: fixed; top: var(--ecosystem-height); right: var(--space-2); left: var(--space-2); width: auto; max-height: calc(100dvh - var(--sticky-stack-height) - var(--space-4)); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-timeline { scroll-behavior: auto; }
  .ecosystem-timeline * { scroll-behavior: auto; transition: none !important; }
}
/* FLUENT-ECOSYSTEM:END */
