/* THROWAWAY PROTOTYPE: visualization-first design exploration. */
body.prototype-active {
  background: #f7f8f4;
}

/* Flow Studio visual directions: an editorial data surface, not a dashboard. */
.flow-proto[data-flow-theme] {
  --flow-paper: #f7f7f2;
  --flow-surface: #fbfbf8;
  --flow-ink: #171a17;
  --flow-muted: #687168;
  --flow-line: #d7ddd5;
  --flow-accent: #00a878;
  --flow-accent-soft: #e4f4ed;
  background: var(--flow-paper);
  color: var(--flow-ink);
  font-variant-numeric: tabular-nums;
}

.flow-proto[data-flow-theme="instrument"] {
  --flow-paper: #f8faf9;
  --flow-surface: #ffffff;
  --flow-ink: #1d312c;
  --flow-muted: #64736d;
  --flow-line: #cfdbd5;
  --flow-accent: #0d6b54;
  --flow-accent-soft: #e5f0ec;
}

.flow-proto .viz-header { display: grid; }

.flow-proto .flow-toolbar {
  display: grid;
  width: min(100% - 48px, 1540px);
  min-height: 0;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 26px 52px;
  align-items: start;
  padding: 34px 0 20px;
}

.flow-proto .flow-toolbar h1 {
  max-width: 790px;
  margin: 7px 0 0;
  color: var(--flow-ink);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.flow-proto .flow-toolbar .viz-kicker,
.flow-proto .flow-chart-heading .viz-kicker {
  color: var(--flow-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.flow-subtitle { margin: 12px 0 0; color: var(--flow-muted); font-size: 13px; line-height: 1.45; }
.flow-brief-link {
  display: grid;
  width: min(100%, 410px);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 14px;
  align-items: center;
  margin-top: 19px;
  padding: 11px 0 11px 13px;
  border-left: 3px solid var(--flow-accent);
  background: var(--flow-accent-soft);
  color: var(--flow-ink);
  text-decoration: none;
}

.flow-brief-link span { font-size: 13px; font-weight: 800; }
.flow-brief-link small { grid-column: 1; color: var(--flow-muted); font-size: 10px; line-height: 1.35; }
.flow-brief-link b { grid-column: 2; grid-row: 1 / span 2; padding-right: 13px; color: var(--flow-accent); font-size: 19px; line-height: 1; }
.flow-brief-link:hover { background: var(--flow-ink); color: #fff; }
.flow-brief-link:hover small { color: #d5dfd6; }
.flow-brief-link:hover b { color: #fff; }

.flow-company-switcher {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border-top: 1px solid var(--flow-line);
  padding-top: 16px;
}

.flow-company-controls { display: flex; align-items: center; }

.flow-company-switcher > span {
  color: var(--flow-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flow-proto .company-toggle { width: fit-content; max-width: 100%; border-color: var(--flow-line); background: var(--flow-surface); }
.flow-proto .company-toggle button { color: var(--flow-muted); font-size: 10px; }
.flow-proto .company-toggle button.active { background: var(--flow-ink); color: #fff; }

.flow-theme-switcher { display: flex; align-items: center; gap: 4px; color: var(--flow-muted); font-size: 10px; }
.flow-theme-switcher > span { margin-right: 7px; font-weight: 700; }
.flow-theme-switcher button { border: 1px solid var(--flow-line); border-radius: 2px; background: transparent; color: var(--flow-muted); padding: 6px 8px; cursor: pointer; font: inherit; }
.flow-theme-switcher button.active { border-color: var(--flow-ink); background: var(--flow-ink); color: #fff; }

.career-lens-prompt {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--flow-line);
  border-left: 3px solid var(--flow-accent);
  background: var(--flow-surface);
  padding: 16px 18px 15px;
}

.career-lens-prompt .viz-kicker {
  color: var(--flow-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.career-lens-prompt strong {
  color: var(--flow-ink);
  font-size: 17px;
  line-height: 1.15;
}

.career-lens-prompt p {
  margin: 0;
  color: var(--flow-muted);
  font-size: 11px;
  line-height: 1.45;
}

.career-lens-prompt button {
  justify-self: start;
  margin-top: 5px;
  border: 1px solid var(--flow-ink);
  background: var(--flow-ink);
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 780;
}

.career-lens-prompt button:hover { border-color: var(--flow-accent); background: var(--flow-accent); }

.flow-proto .flow-kpis { display: none; }

.flow-more-views {
  display: grid;
  width: min(100% - 48px, 1540px);
  grid-template-columns: minmax(250px, 1.15fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  margin: 28px auto 36px;
  border-top: 1px solid var(--flow-line);
  border-bottom: 1px solid var(--flow-line);
  padding: 21px 0;
}

.flow-more-views h2 { max-width: 320px; margin: 6px 0 0; color: var(--flow-ink); font-size: 17px; line-height: 1.15; }
.flow-more-views > a { display: grid; gap: 6px; border-left: 2px solid var(--flow-accent); padding: 5px 0 5px 13px; color: var(--flow-ink); text-decoration: none; }
.flow-more-views > a strong { font-size: 13px; }
.flow-more-views > a span { color: var(--flow-muted); font-size: 10px; }
.flow-more-views > a b { margin-left: 6px; color: var(--flow-accent); font-size: 15px; }
.flow-more-views > a:hover strong { text-decoration: underline; text-decoration-color: var(--flow-accent); text-underline-offset: 4px; }

.flow-proto .flow-topics {
  width: min(100% - 48px, 1540px);
  grid-template-columns: repeat(3, max-content);
  gap: 26px;
  margin: 0 auto;
  border-top: 1px solid var(--flow-line);
  border-bottom: 1px solid var(--flow-line);
  padding: 0;
}

.flow-proto .flow-topics button { min-height: 48px; gap: 8px; color: var(--flow-muted); font-size: 11px; }
.flow-proto .flow-topics button:hover,
.flow-proto .flow-topics button.active { border-bottom-color: var(--flow-accent); color: var(--flow-ink); }

.flow-proto .flow-filter-bar {
  width: min(100% - 48px, 1540px);
  margin: 0 auto;
  border-color: var(--flow-line);
  background: var(--flow-accent-soft);
  padding-right: 18px;
  padding-left: 18px;
}

.flow-proto .flow-workspace { width: min(100% - 48px, 1540px); min-height: 0; margin: 0 auto; padding: 28px 0 88px; }
.flow-proto .flow-canvas-wrap { border-color: var(--flow-line); background: var(--flow-surface); }

.flow-proto .flow-chart-heading { min-height: 90px; align-items: center; border-color: var(--flow-line); padding: 18px 24px; }
.flow-proto .flow-chart-heading h2 { color: var(--flow-ink); font-size: 25px; font-weight: 730; }
.flow-proto .flow-chart-heading > span { max-width: 310px; color: var(--flow-muted); font-size: 11px; line-height: 1.4; text-align: right; }
.flow-proto .flow-chart { height: clamp(530px, 57vw, 690px); }

.flow-proto .river-source-rail { top: 26px; bottom: 26px; left: 18px; width: 222px; }
.flow-proto .river-source-rail button {
  grid-template-columns: 24px 8px minmax(0, 1fr) 54px;
  gap: 8px;
  min-height: 40px;
  border-left: 2px solid transparent;
  padding: 0 8px;
  transition: background-color 160ms ease, opacity 160ms ease, border-color 160ms ease;
}
.flow-proto .river-source-rail button:hover,
.flow-proto .river-source-rail button.active { border-left-color: var(--flow-accent); background: var(--flow-accent-soft); }
.flow-proto .river-source-rail button.dimmed { opacity: 0.28; }
.flow-proto .river-source-rail span { color: #94a099; font-size: 9px; }
.flow-proto .river-source-rail i { width: 8px; height: 8px; }
.flow-proto .river-source-rail strong { color: var(--flow-ink); font-size: 12px; font-weight: 760; }
.flow-proto .river-source-rail em { display: grid; gap: 1px; color: var(--flow-ink); font-size: 10px; font-style: normal; font-weight: 720; line-height: 1; }
.flow-proto .river-source-rail em small { color: var(--flow-muted); font-size: 8px; font-weight: 600; }

.flow-proto .river-destination-overlay {
  top: 50%; right: 24px; width: 205px; gap: 7px; border: 0; border-left: 3px solid var(--flow-accent);
  background: transparent; box-shadow: none; color: var(--flow-ink); padding: 14px 0 14px 18px;
}
.flow-proto .river-destination-overlay > span { color: var(--flow-muted); font-size: 9px; letter-spacing: 0.02em; text-transform: none; }
.flow-proto .river-destination-overlay > b { color: var(--flow-ink); font-size: 30px; font-weight: 760; line-height: 0.98; }
.flow-proto .river-destination-overlay > div { border-color: var(--flow-line); padding-top: 10px; }
.flow-proto .river-destination-overlay strong { color: var(--flow-accent); font-size: 35px; }
.flow-proto .river-destination-overlay small,
.flow-proto .river-destination-overlay > em { color: var(--flow-muted); font-size: 9px; line-height: 1.4; }

.flow-proto .flow-inspector { grid-template-columns: 1fr; border-color: var(--flow-line); border-top: 0; background: var(--flow-surface); }
.flow-proto .flow-inspector-summary { display: flex; min-height: 108px; justify-content: space-between; gap: 24px; align-items: end; background: transparent; color: var(--flow-ink); padding: 21px 24px 19px; }
.flow-proto .flow-inspector-summary .viz-kicker { color: var(--flow-accent); }
.flow-proto .flow-inspector-summary h2 { margin: 5px 0 0; color: var(--flow-ink); font-size: 25px; }
.flow-proto .flow-inspector-summary > strong { color: var(--flow-accent); font-size: 44px; }
.flow-proto .flow-inspector-summary > span { margin-left: auto; color: var(--flow-muted); font-size: 11px; }
.flow-proto .flow-inspector-summary p { max-width: 430px; margin: 0; color: var(--flow-muted); font-size: 11px; line-height: 1.5; }
.flow-proto .flow-inspector-details { border-top: 1px solid var(--flow-line); padding: 0 24px 22px; }
.flow-proto .flow-cohort-profile { margin-top: 0; }
.flow-proto .cohort-company-picker { padding-top: 20px; }
.flow-proto .cohort-company-picker > b:first-child { color: var(--flow-ink); font-size: 17px; }
.flow-proto .cohort-company-picker > span { color: var(--flow-muted); }

.flow-proto .target-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--flow-line); border-bottom: 1px solid var(--flow-line); background: transparent; }
.flow-proto .target-summary-card { min-height: 124px; border: 0; border-right: 1px solid var(--flow-line); border-radius: 0; background: transparent; padding: 18px 18px 14px 0; }
.flow-proto .target-summary-card + .target-summary-card { padding-left: 18px; }
.flow-proto .target-summary-card:last-child { border-right: 0; }
.flow-proto .target-summary-card > span { color: var(--flow-muted); font-size: 9px; }
.flow-proto .target-summary-card > strong { color: var(--flow-ink); font-size: 15px; line-height: 1.2; }
.flow-proto .target-summary-card > small { color: var(--flow-muted); font-size: 9px; }
.flow-proto .cohort-picker-divider,
.flow-proto .cohort-company-picker > span:nth-of-type(2),
.flow-proto .cohort-company-picker > div { display: none; }

.flow-proto .cohort-profile-heading { border-left-color: var(--flow-accent); background: var(--flow-accent-soft); }
.flow-proto .cohort-facet { background: transparent; }

.flow-proto[data-flow-theme="instrument"] .flow-toolbar h1,
.flow-proto[data-flow-theme="instrument"] .flow-chart-heading h2 { letter-spacing: 0.01em; }
.flow-proto[data-flow-theme="instrument"] .flow-canvas-wrap,
.flow-proto[data-flow-theme="instrument"] .flow-inspector { background-image: linear-gradient(rgba(29, 49, 44, 0.025) 1px, transparent 1px); background-size: 100% 34px; }
.flow-proto[data-flow-theme="instrument"] .river-source-rail button.active { background: #e4f0ec; }
.flow-proto[data-flow-theme="instrument"] .river-destination-overlay { border-left-width: 2px; }

@media (max-width: 980px) {
  .flow-proto .flow-toolbar,
  .flow-proto .flow-workspace,
  .flow-proto .flow-topics,
  .flow-proto .flow-filter-bar,
  .flow-more-views { width: min(100% - 28px, 1540px); }
  .flow-proto .flow-toolbar { grid-template-columns: 1fr; }
  .flow-more-views { grid-template-columns: 1fr 1fr; }
  .flow-more-views > div { grid-column: 1 / -1; }
  .flow-company-switcher { grid-column: 1; }
  .flow-company-controls { align-items: flex-start; }
  .flow-proto .flow-chart { height: 590px; }
  .flow-proto .river-source-rail { width: 180px; }
  .flow-proto .river-destination-overlay { right: 12px; width: 156px; }
}

@media (max-width: 680px) {
  .flow-proto .flow-toolbar h1 { font-size: 36px; }
  .flow-proto .company-toggle,
  .flow-theme-switcher { max-width: 100%; flex-wrap: wrap; }
  .flow-proto .flow-topics { gap: 14px; overflow-x: auto; }
  .flow-more-views { grid-template-columns: 1fr; gap: 16px; }
  .flow-more-views > div { grid-column: auto; }
  .flow-proto .flow-chart { height: 540px; }
  .flow-proto .river-source-rail { left: 4px; width: 104px; }
  .flow-proto .river-source-rail button { grid-template-columns: 0 7px minmax(0, 1fr); gap: 4px; padding: 0 2px; }
  .flow-proto .river-source-rail button > span,
  .flow-proto .river-source-rail em { display: none; }
  .flow-proto .river-source-rail strong { font-size: 9px; }
  .flow-proto .river-destination-overlay { right: 4px; width: 92px; padding-left: 9px; }
  .flow-proto .river-destination-overlay > b { font-size: 17px; }
  .flow-proto .river-destination-overlay strong { font-size: 23px; }
  .flow-proto .flow-inspector-summary { align-items: start; flex-direction: column; }
  .flow-proto .flow-inspector-summary > span { margin-left: 0; }
  .flow-proto .target-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-proto .target-summary-card:nth-child(2) { border-right: 0; }
  .flow-proto .target-summary-card:nth-child(n + 3) { border-top: 1px solid var(--flow-line); }
}

body.prototype-active .footer {
  display: none;
}

body.prototype-active .page {
  max-width: none;
  padding: 0;
}

.viz-proto {
  min-height: 100vh;
  color: #171916;
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.viz-proto *,
.viz-proto button,
.viz-proto input,
.viz-proto select {
  letter-spacing: 0;
}

.viz-kicker {
  display: block;
  color: #168e69;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.viz-header {
  position: relative;
  z-index: 12;
  display: grid;
  height: 60px;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  border-bottom: 1px solid #d9ddd6;
  background: rgba(255, 255, 252, 0.95);
  padding: 0 24px;
}

.viz-header-dark {
  border-color: #343a35;
  background: rgba(15, 18, 16, 0.94);
  color: #f7f8f4;
}

.viz-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.viz-brand em {
  margin-left: 2px;
  border-left: 1px solid #d9ddd6;
  padding-left: 10px;
  color: #687168;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.viz-brand span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 4px;
  background: #171916;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.viz-header-dark .viz-brand span {
  background: #72e3bd;
  color: #101310;
}

.viz-header-dark .viz-brand em { border-left-color: #3a443d; color: #bcc7bf; }

.viz-header nav {
  display: flex;
  height: 100%;
  gap: 4px;
}

.viz-header nav a {
  display: grid;
  align-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #737970;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.viz-header nav a.active {
  border-bottom-color: #16a777;
  color: inherit;
}

.viz-mobile-context { display: none; }

.compare-path-button {
  border: 0;
  border-radius: 4px;
  background: #171916;
  color: #fff;
  padding: 9px 13px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.viz-utilities { display: flex; align-items: center; gap: 15px; }
.viz-method-link { color: #687168; font-size: 10px; font-weight: 780; text-decoration: underline; text-decoration-color: var(--flow-accent, #16a777); text-underline-offset: 4px; }
.viz-header-dark .viz-method-link { color: #bdc8c0; }

.viz-header-dark .compare-path-button {
  background: #72e3bd;
  color: #101310;
}

.company-toggle {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(5, minmax(0, auto));
  border: 1px solid #cdd2ca;
  border-radius: 5px;
  background: #fff;
  padding: 3px;
}

.company-toggle button {
  min-width: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #747a72;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.company-toggle button.active {
  background: #171916;
  color: #fff;
}

.viz-chart {
  width: 100%;
  min-height: 320px;
}

.chart-error {
  display: grid;
  height: 100%;
  place-items: center;
  color: #a13b2a;
  font-size: 13px;
}

.prototype-switcher {
  position: fixed;
  z-index: 100;
  bottom: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: 42px minmax(190px, auto) 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 7px;
  background: #111;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
}

.prototype-switcher a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-size: 20px;
}

.prototype-switcher a:hover {
  background: #2c2f2c;
}

.prototype-switcher span {
  border-right: 1px solid #383b38;
  border-left: 1px solid #383b38;
  padding: 7px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

.prototype-switcher small {
  display: block;
  color: #9da29d;
  font-size: 8px;
  font-weight: 850;
}

.flow-chart-switcher {
  position: fixed;
  z-index: 101;
  right: 22px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 38px minmax(145px, auto) 38px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cbd0c8;
  border-radius: 7px;
  background: rgba(250, 251, 247, 0.96);
  box-shadow: 0 12px 30px rgba(23, 25, 22, 0.16);
  backdrop-filter: blur(10px);
}

.flow-chart-switcher button {
  border: 0;
  background: transparent;
  color: #171916;
  cursor: pointer;
  font-size: 17px;
}

.flow-chart-switcher button:hover {
  background: #e5eee8;
}

.flow-chart-switcher span {
  display: grid;
  min-height: 42px;
  align-content: center;
  border-right: 1px solid #d9ddd6;
  border-left: 1px solid #d9ddd6;
  padding: 5px 13px;
  text-align: center;
}

.flow-chart-switcher small,
.flow-chart-switcher b {
  display: block;
}

.flow-chart-switcher small {
  color: #7c837a;
  font-size: 7px;
  font-weight: 850;
}

.flow-chart-switcher b {
  margin-top: 2px;
  color: #171916;
  font-size: 10px;
}

.self-compare {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  display: flex;
  width: min(420px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid #bfc5bc;
  background: #f7f8f4;
  padding: 70px 30px 30px;
  color: #171916;
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.16);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.self-compare.open {
  transform: translateX(0);
}

.self-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #bfc5bc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.self-compare h2 {
  margin: 10px 0 8px;
  color: #171916;
  font-size: 34px;
  line-height: 1;
}

.self-compare p {
  color: #666d64;
  font-size: 12px;
}

.self-compare label {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: #5d635a;
  font-size: 10px;
  font-weight: 800;
}

.self-compare input,
.self-compare select {
  height: 42px;
  border: 1px solid #bcc2b9;
  border-radius: 4px;
  background: #fff;
  padding: 0 11px;
  color: #171916;
}

.self-run {
  margin-top: 24px;
  border: 0;
  border-radius: 4px;
  background: #16a777;
  color: #fff;
  padding: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.self-result {
  margin-top: 20px;
  border-top: 1px solid #cbd0c8;
  padding-top: 20px;
  color: #575e55;
  font-size: 13px;
  line-height: 1.55;
}

.self-result strong,
.self-result span {
  display: block;
}

.self-result strong {
  margin-bottom: 5px;
  color: #171916;
  font-size: 18px;
}

/* Career Lens is private-by-default and deliberately separate from the public map. */
.career-lens {
  overflow-y: auto;
  background: #f7f7f2;
}

.career-lens .viz-kicker {
  color: #00a878;
}

.career-lens h2 {
  max-width: 300px;
  font-size: 38px;
}

.career-lens > p {
  margin: 0;
  line-height: 1.55;
}

.career-lens-privacy {
  margin-top: 18px;
  border-left: 3px solid #00a878;
  background: #e8f5ef;
  color: #245a48;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
}

.career-lens label > span {
  color: #7b8379;
  font-weight: 500;
}

.career-lens label > small {
  color: #778177;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

.career-lens .self-run {
  border-radius: 2px;
  background: #171a17;
}

.career-lens .self-run:hover {
  background: #00a878;
}

.career-lens .self-result {
  display: grid;
  gap: 0;
  border-top-color: #cfd7ce;
}

.career-lens .self-result > header {
  display: grid;
  gap: 3px;
  padding: 2px 0 13px;
}

.career-lens .self-result > header span,
.career-lens .self-result section > span {
  color: #627068;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.career-lens .self-result > header strong {
  margin: 0;
  font-size: 21px;
}

.career-lens .self-result section {
  border-top: 1px solid #d9dfd7;
  padding: 12px 0;
}

.career-lens .self-result section strong {
  margin: 4px 0 0;
  color: #1b241f;
  font-size: 14px;
  line-height: 1.25;
}

.career-lens .self-result section p {
  margin: 5px 0 0;
  color: #647069;
  font-size: 11px;
  line-height: 1.5;
}

.career-lens-footnote {
  margin: 16px 0 0;
  color: #7b8379;
  font-size: 9px;
  line-height: 1.45;
}

.contribution-callout {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-top: 20px;
  border-top: 1px solid var(--flow-line, #d7ddd5);
  border-bottom: 1px solid var(--flow-line, #d7ddd5);
  padding: 18px 0;
}

.contribution-callout > div { display: grid; gap: 5px; max-width: 660px; }
.contribution-callout span { color: var(--flow-accent, #00a878); font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.contribution-callout strong { color: var(--flow-ink, #171a17); font-size: 15px; line-height: 1.25; }
.contribution-callout p { margin: 0; color: var(--flow-muted, #687168); font-size: 10px; line-height: 1.5; }
.contribution-callout button { flex: 0 0 auto; border: 1px solid var(--flow-ink, #171a17); background: transparent; color: var(--flow-ink, #171a17); padding: 9px 11px; cursor: pointer; font-size: 10px; font-weight: 760; }
.contribution-callout button:hover { border-color: var(--flow-accent, #00a878); background: var(--flow-accent-soft, #e4f4ed); color: var(--flow-accent, #00a878); }

.contribution-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  display: flex;
  width: min(440px, 100vw);
  height: 100vh;
  overflow-y: auto;
  flex-direction: column;
  border-left: 1px solid #cbd4cb;
  background: #f7f7f2;
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.16);
  padding: 66px 30px 32px;
  color: #171a17;
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.contribution-drawer.open { transform: translateX(0); }
.contribution-close { position: absolute; top: 18px; right: 20px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #bfc8bf; border-radius: 2px; background: #fff; cursor: pointer; font-size: 20px; }
.contribution-drawer .viz-kicker { color: #00a878; }
.contribution-drawer h2 { margin: 10px 0 8px; font-size: 32px; line-height: 1; }
.contribution-drawer > p { margin: 0; color: #657066; font-size: 12px; line-height: 1.55; }
.contribution-boundary { display: grid; gap: 5px; margin-top: 18px; border-left: 3px solid #00a878; background: #e8f5ef; padding: 10px 12px; color: #285b49; font-size: 11px; line-height: 1.45; }
.contribution-boundary b { font-size: 10px; }
.contribution-drawer label { display: grid; gap: 7px; margin-top: 18px; color: #59645b; font-size: 10px; font-weight: 800; }
.contribution-drawer select { height: 42px; border: 1px solid #bcc6bd; border-radius: 2px; background: #fff; padding: 0 11px; color: #1e2821; }
.contribution-preview { display: grid; gap: 6px; margin-top: 22px; border-top: 1px solid #cfd8cf; border-bottom: 1px solid #cfd8cf; padding: 15px 0; }
.contribution-preview span { color: #68746a; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.contribution-preview strong { color: #1c251f; font-size: 13px; line-height: 1.35; }
.contribution-preview small { color: #728076; font-size: 9px; line-height: 1.4; }
.contribution-consent { grid-template-columns: 16px minmax(0, 1fr); align-items: start; margin-top: 18px !important; color: #3e4b41 !important; font-size: 10px !important; font-weight: 600 !important; line-height: 1.45; }
.contribution-consent input { width: 15px; height: 15px; margin: 0; accent-color: #00a878; }
.contribution-submit { margin-top: 18px; border: 0; border-radius: 2px; background: #171a17; color: #fff; padding: 13px; cursor: pointer; font-size: 12px; font-weight: 800; }
.contribution-submit:not(:disabled):hover { background: #00a878; }
.contribution-submit:disabled { cursor: not-allowed; opacity: 0.45; }
.contribution-status { min-height: 32px; margin-top: 13px; color: #426252; font-size: 10px; line-height: 1.45; }
.contribution-footnote { margin: 0 !important; color: #7b857c !important; font-size: 9px !important; line-height: 1.45 !important; }

.career-lens-trigger {
  justify-self: end;
  border: 1px solid var(--flow-ink, #171916);
  border-radius: 2px;
  background: var(--flow-ink, #171916);
  color: #fff;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.career-lens-trigger:hover {
  border-color: var(--flow-accent, #16a777);
  background: var(--flow-accent, #16a777);
}

/* Full-page Career Lens results. The input is private; the charts use public aggregates. */
.career-results-proto {
  min-height: 100vh;
  background: #f7f7f2;
  color: #171a17;
  font-variant-numeric: tabular-nums;
}

.lens-header {
  display: grid;
  width: min(100% - 48px, 1540px);
  min-height: 64px;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 auto;
  border-bottom: 1px solid #d7ddd5;
  color: #69736b;
  font-size: 10px;
}

.lens-header > span { text-align: center; }
.lens-header a,
.lens-header button { color: #252d28; font: inherit; font-weight: 750; }
.lens-header a { text-decoration: none; }
.lens-header a:hover { color: #00a878; }
.lens-header button { justify-self: end; border: 0; background: transparent; padding: 7px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.lens-main { width: min(100% - 48px, 1540px); margin: 0 auto; padding: 42px 0 92px; }

.lens-hero { display: grid; max-width: 940px; gap: 12px; }
.lens-hero .viz-kicker,
.lens-chart-panel .viz-kicker,
.lens-evidence-grid .viz-kicker,
.lens-next-step .viz-kicker { color: #00a878; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; }
.lens-hero h1 { max-width: 860px; margin: 0; font-size: clamp(38px, 5.2vw, 72px); letter-spacing: 0; line-height: 0.96; }
.lens-hero > p { max-width: 650px; margin: 0; color: #687168; font-size: 14px; line-height: 1.5; }

.lens-company-toggle { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; margin-top: 16px; border: 1px solid #d1d9d0; background: #fff; }
.lens-company-toggle button { min-height: 42px; border: 0; border-right: 1px solid #d1d9d0; background: transparent; color: #69736b; padding: 0 14px; cursor: pointer; font-size: 10px; font-weight: 760; }
.lens-company-toggle button:last-child { border-right: 0; }
.lens-company-toggle button.active { background: #171a17; color: #fff; }

.lens-signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid #d7ddd5; border-bottom: 1px solid #d7ddd5; }
.lens-signal-grid article { display: grid; min-height: 134px; align-content: start; gap: 8px; border-right: 1px solid #d7ddd5; padding: 19px 20px 17px 0; }
.lens-signal-grid article + article { padding-left: 20px; }
.lens-signal-grid article:last-child { border-right: 0; }
.lens-signal-grid span { color: #687168; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.lens-signal-grid strong { color: #1b231e; font-size: 17px; line-height: 1.18; }
.lens-signal-grid small { color: #6e786f; font-size: 10px; line-height: 1.45; }

.lens-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.lens-chart-panel { min-width: 0; border-top: 3px solid #171a17; background: #fff; padding: 20px 22px 14px; }
.lens-chart-panel-wide { grid-column: 1 / -1; border-top-color: #00a878; }
.lens-chart-panel > header { display: flex; justify-content: space-between; gap: 24px; align-items: end; border-bottom: 1px solid #e0e5de; padding-bottom: 14px; }
.lens-chart-panel h2 { margin: 5px 0 0; font-size: 21px; line-height: 1.1; }
.lens-chart-panel header p { max-width: 190px; margin: 0; color: #707a71; font-size: 10px; line-height: 1.4; text-align: right; }
.lens-chart { height: 310px; }
.lens-compare-chart { height: 340px; }
.lens-chart-empty { display: grid; height: 340px; place-items: center; color: #707a71; font-size: 12px; text-align: center; }

.lens-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.lens-evidence-grid article { border-top: 1px solid #bfcabf; padding: 18px 0 0; }
.lens-evidence-grid h2 { margin: 8px 0 0; font-size: 21px; line-height: 1.1; }
.lens-evidence-grid p { max-width: 560px; margin: 10px 0 0; color: #5e685f; font-size: 13px; line-height: 1.55; }

.lens-next-step { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-top: 48px; border-top: 1px solid #d7ddd5; padding-top: 24px; }
.lens-next-step h2 { max-width: 620px; margin: 7px 0 0; font-size: 25px; line-height: 1.12; }
.lens-next-step a { flex: 0 0 auto; border: 1px solid #171a17; background: #171a17; color: #fff; padding: 12px 14px; text-decoration: none; font-size: 11px; font-weight: 760; }
.lens-next-step a:hover { border-color: #00a878; background: #00a878; }

.lens-empty { width: min(100% - 48px, 780px); margin: 0 auto; padding: 120px 0; }
.lens-empty h1 { margin: 8px 0 0; font-size: 50px; }
.lens-empty p { max-width: 480px; color: #687168; line-height: 1.55; }
.lens-empty a { display: inline-block; margin-top: 12px; background: #171a17; color: #fff; padding: 11px 14px; text-decoration: none; font-size: 11px; font-weight: 760; }

@media (max-width: 900px) {
  .lens-header,
  .lens-main { width: min(100% - 28px, 1540px); }
  .lens-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lens-signal-grid article:nth-child(2) { border-right: 0; }
  .lens-signal-grid article:nth-child(n + 3) { border-top: 1px solid #d7ddd5; }
  .lens-chart-grid,
  .lens-evidence-grid { grid-template-columns: 1fr; }
  .lens-chart-panel-wide { grid-column: 1; }
}

@media (max-width: 600px) {
  .lens-header { grid-template-columns: 1fr auto; }
  .lens-header > span { display: none; }
  .lens-main { padding-top: 28px; }
  .lens-hero h1 { font-size: 42px; }
  .lens-company-toggle { width: 100%; }
  .lens-company-toggle button { flex: 1 1 32%; padding: 0 8px; }
  .lens-signal-grid { grid-template-columns: 1fr; }
  .lens-signal-grid article,
  .lens-signal-grid article + article { border-right: 0; border-top: 1px solid #d7ddd5; padding: 16px 0; }
  .lens-signal-grid article:first-child { border-top: 0; }
  .lens-chart-panel { padding: 18px 14px 12px; }
  .lens-chart-panel > header { align-items: start; flex-direction: column; }
  .lens-chart-panel header p { max-width: none; text-align: left; }
  .lens-chart { height: 280px; }
  .lens-next-step { align-items: start; flex-direction: column; }
}

/* Flow Studio */
.flow-proto {
  background: #f7f8f4;
}

.flow-toolbar {
  display: flex;
  min-height: 132px;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  padding: 28px clamp(20px, 4vw, 58px);
}

.flow-toolbar h1 {
  margin: 7px 0 0;
  color: #171916;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.flow-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #d9ddd6;
  border-bottom: 1px solid #d9ddd6;
  padding: 0 clamp(20px, 4vw, 58px);
}

.flow-kpis > div {
  min-height: 94px;
  border-right: 1px solid #d9ddd6;
  padding: 17px 20px 14px 0;
}

.flow-kpis > div + div {
  padding-left: 20px;
}

.flow-kpis > div:last-child {
  border-right: 0;
}

.flow-kpis span {
  display: block;
  color: #747a72;
  font-size: 10px;
}

.flow-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: 29px;
}

.flow-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #d9ddd6;
  padding: 0 clamp(20px, 4vw, 58px);
}

.flow-topics button {
  display: flex;
  min-height: 58px;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #737970;
  padding: 0 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.flow-topics button span {
  color: #a3a9a1;
  font-size: 9px;
}

.flow-topics button:hover,
.flow-topics button.active {
  border-bottom-color: #16a777;
  color: #171916;
}

.flow-baseline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #d9ddd6;
  background: #fbfcf9;
  padding: 15px clamp(20px, 4vw, 58px);
}

.flow-baseline > div > span,
.flow-baseline > div > strong,
.flow-baseline > div > p {
  display: block;
}

.flow-baseline > div > span {
  color: #168e69;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.flow-baseline > div > strong {
  margin-top: 3px;
  color: #171916;
  font-size: 14px;
}

.flow-baseline > div > p {
  max-width: 710px;
  margin: 4px 0 0;
  color: #6f756d;
  font-size: 11px;
  line-height: 1.45;
}

.flow-baseline button {
  display: grid;
  flex: 0 0 auto;
  min-width: 152px;
  gap: 2px;
  border: 1px solid #cdd2ca;
  border-radius: 4px;
  background: #fff;
  color: #4c534b;
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
}

.flow-baseline button:hover,
.flow-baseline button.active {
  border-color: #16a777;
  background: #eaf8f1;
  color: #135942;
}

.flow-baseline button span {
  font-size: 9px;
  font-weight: 800;
}

.flow-baseline button strong {
  font-size: 18px;
}

.flow-target-overview {
  border-bottom: 1px solid #d9ddd6;
  background: #fff;
  padding: 28px clamp(20px, 4vw, 58px) 32px;
}

.flow-target-overview > header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.flow-target-overview h2,
.flow-explorer-intro h2 {
  margin: 6px 0 0;
  color: #171916;
  font-size: 25px;
  line-height: 1.05;
}

.flow-target-overview p,
.flow-explorer-intro p {
  max-width: 700px;
  margin: 7px 0 0;
  color: #6f756d;
  font-size: 11px;
  line-height: 1.5;
}

.target-overview-total {
  flex: 0 0 auto;
  min-width: 132px;
  border-left: 3px solid #16a777;
  padding: 5px 0 5px 12px;
}

.target-overview-total span,
.target-overview-total strong {
  display: block;
}

.target-overview-total span {
  color: #747a72;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.target-overview-total strong {
  margin-top: 3px;
  color: #171916;
  font-size: 29px;
  line-height: 1;
}

.flow-target-overview .target-overview-grid {
  margin-top: 0;
}

.flow-explorer-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid #d9ddd6;
  background: #f7f8f4;
  padding: 20px clamp(20px, 4vw, 58px);
}

.flow-explorer-intro button {
  flex: 0 0 auto;
  border: 1px solid #c7ccc4;
  border-radius: 4px;
  background: #fff;
  color: #3f453d;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.flow-explorer-intro button:hover {
  border-color: #16a777;
  color: #135942;
}

.flow-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #a9d9c7;
  background: #e4f5ee;
  padding: 12px clamp(20px, 4vw, 58px);
}

.flow-filter-bar[hidden] {
  display: none;
}

.flow-filter-bar > span small,
.flow-filter-bar > span strong {
  display: block;
}

.flow-filter-bar > span small {
  color: #43816a;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-filter-bar > span strong {
  margin-top: 3px;
  color: #173b2e;
  font-size: 12px;
}

.flow-filter-bar > div {
  display: flex;
  gap: 7px;
}

.flow-filter-bar button {
  border: 1px solid #8fc7b2;
  border-radius: 4px;
  background: #f8fffb;
  color: #245c48;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.flow-filter-bar > button {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
}

.flow-workspace {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1fr);
  padding: 22px clamp(20px, 4vw, 58px) 90px;
}

.flow-controls {
  border: 1px solid #d3d8d0;
  background: #fff;
  padding: 18px;
}

.flow-controls > label {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: #646a62;
  font-size: 10px;
  font-weight: 800;
}

.flow-controls select {
  width: 100%;
  height: 38px;
  border: 1px solid #c8cec5;
  border-radius: 4px;
  background: #f8f9f6;
  padding: 0 8px;
}

.flow-controls output {
  justify-self: end;
  margin-top: -19px;
  color: #171916;
}

.flow-controls input[type="range"] {
  width: 100%;
  accent-color: #16a777;
}

.flow-controls fieldset {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  border: 1px solid #d3d8d0;
  padding: 12px;
}

.flow-controls legend {
  color: #747a72;
  font-size: 9px;
  font-weight: 850;
}

.flow-controls fieldset label {
  color: #4e554c;
  font-size: 10px;
}

.flow-controls input[type="radio"] {
  accent-color: #16a777;
}

.flow-controls p {
  margin-top: 26px;
  color: #747a72;
  font-size: 10px;
  line-height: 1.5;
}

.flow-canvas-wrap {
  position: relative;
  min-width: 0;
  border-top: 1px solid #d3d8d0;
  border-bottom: 1px solid #d3d8d0;
  background: #fff;
}

.flow-chart-heading {
  display: flex;
  min-height: 76px;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid #e2e5df;
  padding: 16px 20px;
}

.flow-chart-heading h2 {
  margin: 5px 0 0;
  color: #171916;
  font-size: 21px;
}

.flow-chart-heading > span {
  color: #7b8179;
  font-size: 9px;
}

.flow-chart {
  height: 500px;
}

.river-source-rail {
  position: absolute;
  z-index: 4;
  top: 20px;
  bottom: 20px;
  left: 18px;
  width: 142px;
  display: grid;
  grid-template-rows: repeat(var(--source-count), minmax(0, 1fr));
}

.river-source-rail button {
  display: grid;
  min-width: 0;
  grid-template-columns: 18px 7px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #171916;
  cursor: pointer;
  padding: 0 4px;
  text-align: left;
}

.river-source-rail button:hover,
.river-source-rail button.active {
  background: #edf6ef;
}

.river-source-rail button.dimmed {
  opacity: 0.42;
}

.river-source-rail span {
  color: #90988f;
  font-size: 8px;
  font-weight: 850;
  text-align: right;
}

.river-source-rail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.river-source-rail strong {
  overflow: hidden;
  color: #252a25;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.river-source-rail em {
  color: #737b72;
  font-size: 8px;
  font-style: normal;
  text-align: right;
}

.river-destination-overlay {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 18px;
  width: 158px;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
  border-left: 4px solid #72e3bd;
  background: #171916;
  color: #ffffff;
  padding: 18px 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.river-destination-overlay > span {
  color: #aeb6af;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.river-destination-overlay > b {
  font-size: 22px;
  line-height: 1;
}

.river-destination-overlay > div {
  display: grid;
  gap: 2px;
  border-top: 1px solid #39423a;
  padding-top: 10px;
}

.river-destination-overlay strong {
  color: #72e3bd;
  font-size: 30px;
  line-height: 1;
}

.river-destination-overlay small {
  color: #c7cec8;
  font-size: 8px;
  line-height: 1.35;
}

.river-destination-overlay > em {
  color: #8b958c;
  font-size: 8px;
  font-style: normal;
}

.river-gallery,
.river-converge {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  background: #fbfcf9;
}

.river-gallery-source-list,
.river-converge-source-list {
  display: grid;
  align-content: stretch;
  border-right: 1px solid #dde1da;
  background: #f2f4ef;
  padding: 15px 12px;
}

.river-gallery-source,
.river-converge-source {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #dce1d9;
  background: transparent;
  color: #242924;
  cursor: pointer;
  padding: 0 4px;
  text-align: left;
}

.river-gallery-source:last-child,
.river-converge-source:last-child {
  border-bottom: 0;
}

.river-gallery-source:hover,
.river-converge-source:hover {
  background: #fff;
}

.river-gallery-source span,
.river-converge-source span {
  display: flex;
  min-width: 0;
  gap: 7px;
  align-items: center;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.river-gallery-source i,
.river-converge-source i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.river-gallery-source strong,
.river-converge-source strong {
  color: #242924;
  font-size: 10px;
}

.river-gallery-source em {
  min-width: 27px;
  color: #758077;
  font-size: 8px;
  font-style: normal;
  text-align: right;
}

.river-gallery-stage,
.river-converge-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.river-gallery-stage svg,
.river-converge-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

.river-gallery-target {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 112px;
  gap: 3px;
  align-content: center;
  border-left: 4px solid #72e3bd;
  background: #171916;
  color: #fff;
  padding: 14px 12px;
  transform: translateY(-50%);
}

.river-gallery-waterfall .river-gallery-target {
  top: 18px;
  transform: none;
}

.river-gallery-target span,
.river-gallery-target small,
.river-converge-target span,
.river-converge-target small {
  color: #b9c2ba;
  font-size: 8px;
}

.river-gallery-target b,
.river-converge-target b {
  font-size: 15px;
}

.river-gallery-target strong,
.river-converge-target strong {
  color: #72e3bd;
  font-size: 22px;
}

.river-converge-source-list {
  padding: 28px 12px;
}

.river-converge-source {
  grid-template-columns: 8px minmax(0, 1fr) auto;
}

.river-converge-stage {
  background: #111412;
}

.river-converge-stage::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  content: '';
  pointer-events: none;
}

.river-converge-target {
  position: absolute;
  top: 50%;
  right: 13%;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 4px solid #72e3bd;
  border-radius: 50%;
  background: #171916;
  color: #fff;
  padding: 18px;
  text-align: center;
  transform: translateY(-50%);
}

.river-converge-target b {
  line-height: 1;
}

.river-converge-target strong {
  margin-top: -3px;
}

.chart-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7c827a;
  font-size: 11px;
}

.flow-inspector {
  display: grid;
  min-width: 0;
  grid-column: 1;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  grid-template-rows: auto;
  border: 1px solid #d3d8d0;
  border-top: 0;
  background: #fff;
}

.flow-inspector-summary {
  background: #171916;
  color: #fff;
  padding: 22px;
}

.flow-inspector-details {
  min-width: 0;
  padding: 20px;
}

.flow-inspector-summary .viz-kicker {
  color: #72e3bd;
}

.flow-inspector-summary h2 {
  margin: 16px 0 26px;
  color: #fff;
  font-size: 25px;
  line-height: 1.05;
}

.flow-inspector-summary > strong {
  display: block;
  color: #72e3bd;
  font-size: 58px;
  line-height: 1;
}

.flow-inspector-summary > span {
  display: block;
  margin-top: 6px;
  color: #c4cbc5;
  font-size: 11px;
}

.confidence-rule {
  position: relative;
  height: 8px;
  margin: 28px 0;
  background: #d3d8d0;
}

.confidence-rule i {
  position: absolute;
  left: 28%;
  width: 48%;
  height: 100%;
  background: #f4c84a;
}

.confidence-rule b {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 2px;
  height: 16px;
  background: #171916;
}

.flow-inspector-summary p {
  color: #aeb6af;
  font-size: 11px;
  line-height: 1.55;
}

.flow-cohort-profile {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.cohort-profile-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-left: 4px solid #16a777;
  background: #eef7f2;
  padding: 14px 16px;
}

.cohort-profile-heading > div:first-child > span,
.cohort-profile-heading > div:first-child > b,
.cohort-profile-heading > div:first-child > small {
  display: block;
}

.cohort-profile-heading > div:first-child > span {
  color: #168e69;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.cohort-profile-heading b {
  margin-top: 4px;
  color: #171916;
  font-size: 15px;
}

.cohort-profile-heading small {
  margin-top: 4px;
  color: #747a72;
  font-size: 9px;
  line-height: 1.4;
}

.cohort-size {
  flex: 0 0 auto;
  text-align: right;
}

.cohort-size strong,
.cohort-size span {
  display: block;
}

.cohort-size strong {
  color: #0d7f59;
  font-size: 30px;
  line-height: 1;
}

.cohort-size span {
  margin-top: 2px;
  color: #587066;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.cohort-facet {
  --facet-color: #16a777;
  border-top: 3px solid var(--facet-color);
  background: #f8f9f6;
  padding: 16px 0 13px;
}

.cohort-facet[data-facet="careerExperience"] {
  --facet-color: #3975e8;
}

.cohort-facet[data-facet="educationInstitution"] {
  --facet-color: #d69f00;
}

.cohort-facet[data-facet="priorFunction"] {
  --facet-color: #f26b52;
}

.cohort-facet[data-facet="joinYear"] {
  --facet-color: #16a777;
}

.cohort-facet[data-facet="previousCompany"] {
  --facet-color: #725ac1;
}

.cohort-facet header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
}

.cohort-facet header > div:first-child b,
.cohort-facet header > div:first-child span {
  display: block;
}

.cohort-facet header b {
  color: #323730;
  font-size: 15px;
}

.cohort-facet header > div:first-child span {
  margin-top: 3px;
  color: #7a8178;
  font-size: 10px;
}

.cohort-coverage-ring {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--facet-color) calc(var(--coverage) * 1%), #dde1da 0);
}

.cohort-coverage-ring::after {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8f9f6;
  content: '';
}

.cohort-coverage-ring strong {
  position: relative;
  z-index: 1;
  color: #3a4038;
  font-size: 8px;
}

.cohort-facet-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(90px, 1.25fr) minmax(52px, 1fr) 22px 34px;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border: 0;
  background: transparent;
  padding: 0 12px;
  text-align: left;
}

.cohort-facet-row > span {
  overflow: hidden;
  color: #545b52;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cohort-facet-row > i {
  height: 7px;
  overflow: hidden;
  background: #d9ddd6;
}

.cohort-facet-row > i b {
  display: block;
  height: 100%;
  background: var(--facet-color);
}

.cohort-facet-row > strong {
  color: #30352e;
  font-size: 12px;
  text-align: right;
}

.cohort-facet-row > em {
  color: #838981;
  font-size: 10px;
  font-style: normal;
  text-align: right;
}

.cohort-facet-row.pivotable {
  cursor: pointer;
}

.cohort-facet-row.pivotable:hover > span {
  color: var(--facet-color);
  text-decoration: underline;
}

.cohort-facet-row.pivotable:hover {
  background: #fff;
}

.cohort-school-list {
  display: grid;
  border-top: 1px solid #e0e4dc;
}

.cohort-school-row {
  display: grid;
  min-height: 36px;
  grid-template-columns: 26px minmax(0, 1fr) 26px 34px;
  gap: 8px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e8ebe5;
  background: transparent;
  padding: 0 12px;
  color: #545b52;
  text-align: left;
}

.cohort-school-row > span:nth-child(2) {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cohort-rank { color: var(--facet-color); font-size: 9px; font-weight: 850; }
.cohort-school-row strong { color: #30352e; font-size: 12px; text-align: right; }
.cohort-school-row em { color: #838981; font-size: 10px; font-style: normal; text-align: right; }
.cohort-school-row.pivotable { cursor: pointer; }
.cohort-school-row.pivotable:hover { background: #fff; color: var(--facet-color); }

.cohort-work-spectrum {
  display: flex;
  height: 28px;
  gap: 2px;
  align-items: stretch;
  padding: 0 12px;
}

.cohort-work-spectrum span {
  min-width: 8px;
  flex: var(--share) 1 0;
  background: var(--facet-color);
}

.cohort-work-spectrum span:nth-child(3n) { background: #f4c84a; }
.cohort-work-spectrum span:nth-child(3n + 2) { background: #3975e8; }

.cohort-work-key {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 16px;
  margin-top: 11px;
  padding: 0 12px 2px;
}

.cohort-work-key div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px 32px;
  gap: 7px;
  align-items: center;
  min-height: 24px;
  border-bottom: 1px solid #e8ebe5;
}

.cohort-work-key span { overflow: hidden; color: #545b52; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cohort-work-key strong { color: #30352e; font-size: 11px; text-align: right; }
.cohort-work-key em { color: #838981; font-size: 9px; font-style: normal; text-align: right; }

.cohort-join-timeline {
  display: flex;
  min-height: 132px;
  gap: 6px;
  align-items: end;
  border-bottom: 1px solid #dbe1d8;
  margin: 8px 12px 4px;
  padding: 0 4px 22px;
}

.cohort-join-timeline > div {
  position: relative;
  min-width: 20px;
  flex: 1 1 0;
  background: var(--facet-color);
}

.cohort-join-timeline i { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: #f4c84a; }
.cohort-join-timeline span { position: absolute; bottom: -19px; left: 50%; color: #737a71; font-size: 9px; transform: translateX(-50%); }
.cohort-join-timeline strong { position: absolute; top: -17px; left: 50%; color: #30352e; font-size: 11px; transform: translateX(-50%); }

@media (max-width: 980px) {
  .network-main { width: min(100% - 28px, 1540px); }
  .network-topline { grid-template-columns: 1fr; gap: 20px; }
  .network-main .network-chart { height: 560px; }
  .network-footer { align-items: flex-start; flex-direction: column; }
  .network-main .network-legend { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .network-main { gap: 18px; padding-top: 24px; }
  .network-main .network-title h1 { font-size: 38px; }
  .network-main .network-chart { height: 460px; }
  .network-main .network-legend { display: grid; gap: 10px; }
  .network-main .network-legend small { margin-left: 0; }
  .network-path-button { width: 100%; }
  .cohort-work-key { grid-template-columns: 1fr; }
}

.cohort-facet.empty p,
.cohort-unavailable span {
  display: block;
  margin: 5px 0 0;
  color: #767d74;
  font-size: 9px;
  line-height: 1.45;
}

.cohort-unavailable {
  border-top: 1px solid #cbd0c8;
  padding-top: 14px;
}

.cohort-unavailable b {
  color: #3e443c;
  font-size: 10px;
}

.cohort-company-picker {
  border-top: 1px solid #cbd0c8;
  padding-top: 15px;
}

.cohort-company-picker > b,
.cohort-company-picker > span {
  display: block;
}

.cohort-company-picker > b {
  color: #30352e;
  font-size: 12px;
}

.cohort-company-picker > span {
  margin-top: 4px;
  color: #747a72;
  font-size: 9px;
}

.target-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.target-summary-card {
  min-width: 0;
  border: 1px solid #d5d9d2;
  border-radius: 3px;
  background: #f8f9f6;
  padding: 9px;
}

.target-summary-card span,
.target-summary-card strong,
.target-summary-card small {
  display: block;
}

.target-summary-card span {
  color: #777e75;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.target-summary-card strong {
  overflow: hidden;
  margin-top: 4px;
  color: #252a25;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-summary-card small {
  margin-top: 4px;
  color: #747a72;
  font-size: 8px;
  line-height: 1.35;
}

.target-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cohort-company-picker .cohort-picker-divider {
  margin-top: 12px;
  color: #2a3029;
  font-size: 10px;
}

.cohort-company-picker > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 13px;
}

.cohort-company-picker button {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #c7ccc4;
  border-radius: 4px;
  background: #f8f9f6;
  color: #3f453d;
  padding: 8px;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.cohort-company-picker button:hover {
  border-color: #16a777;
  background: #fff;
}

.cohort-company-picker button strong {
  color: #16a777;
}

.method-toggle {
  width: 100%;
  margin-top: 28px;
  border: 1px solid #bfc5bc;
  border-radius: 4px;
  background: transparent;
  color: #3e443c;
  padding: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.method-note {
  display: none;
  margin-top: 12px;
  border-top: 1px solid #cbd0c8;
  padding-top: 12px;
  color: #6a7168;
  font-size: 10px;
  line-height: 1.55;
}

.method-note.open {
  display: block;
}

/* Network Observatory */
.network-proto {
  position: relative;
  overflow: hidden;
  background: #0f1210;
  color: #f7f8f4;
}

.network-chart {
  position: absolute;
  z-index: 1;
  inset: 154px clamp(250px, 20vw, 330px) 72px clamp(300px, 24vw, 390px);
  height: auto;
  min-height: 500px;
}

.network-title {
  position: absolute;
  z-index: 4;
  top: 92px;
  left: clamp(22px, 4vw, 60px);
  max-width: 330px;
  pointer-events: none;
}

.network-title .viz-kicker {
  color: #72e3bd;
}

.network-title h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 0.98;
}

.network-title p {
  max-width: 310px;
  color: #aeb6af;
  font-size: 12px;
  line-height: 1.55;
}

.network-legend,
.network-inspector {
  position: absolute;
  z-index: 4;
  width: 238px;
  border: 1px solid #3a413b;
  background: rgba(20, 24, 21, 0.88);
  backdrop-filter: blur(10px);
  padding: 18px;
}

.network-legend {
  bottom: 40px;
  left: clamp(22px, 4vw, 60px);
}

.network-legend .viz-kicker,
.network-inspector .viz-kicker {
  color: #72e3bd;
}

.network-legend label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: #d7ddd7;
  font-size: 11px;
}

.network-legend hr {
  border: 0;
  border-top: 1px solid #3a413b;
  margin: 18px 0;
}

.network-legend small {
  color: #7f8981;
  font-size: 9px;
  line-height: 1.5;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.target { background: #f26b52; }
.dot.feeder { background: #f4c84a; }
.dot.origin { background: #72e3bd; }

.network-inspector {
  top: 92px;
  right: clamp(22px, 4vw, 60px);
  width: 260px;
}

.network-inspector h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 25px;
}

.network-inspector strong {
  color: #72e3bd;
  font-size: 12px;
}

.network-inspector p {
  margin-bottom: 0;
  color: #aeb6af;
  font-size: 10px;
  line-height: 1.5;
}

.network-actions {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 4vw, 60px);
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.network-actions button {
  border: 1px solid #4d554e;
  border-radius: 4px;
  background: #171b18;
  color: #e5e9e5;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.network-actions button:last-child {
  border-color: #72e3bd;
  color: #72e3bd;
}

/* The relationship canvas owns the center of the screen; supporting context never overlays it. */
.network-proto { min-height: 100vh; overflow: visible; }

.network-main {
  display: grid;
  width: min(100% - 48px, 1540px);
  margin: 0 auto;
  gap: 24px;
  padding: 34px 0 30px;
}

.network-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 44px;
  align-items: start;
}

.network-main .network-title,
.network-main .network-inspector,
.network-main .network-legend,
.network-main .network-actions {
  position: static;
  width: auto;
}

.network-main .network-title { max-width: 620px; }
.network-main .network-title h1 { font-size: clamp(36px, 4.3vw, 62px); }
.network-main .network-title p { max-width: 460px; }

.network-main .network-inspector {
  border-color: #3a413b;
  background: #151a16;
  padding: 19px 22px;
}

.network-main .network-chart {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(500px, 55vw, 680px);
  min-height: 0;
  border-top: 1px solid #2f3831;
  border-bottom: 1px solid #2f3831;
}

.network-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.network-main .network-legend {
  display: flex;
  max-width: 760px;
  gap: 18px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.network-main .network-legend label { margin: 0; white-space: nowrap; }
.network-main .network-legend small { max-width: 310px; margin-left: 6px; }
.network-main .network-legend hr { display: none; }

.network-path-button {
  flex: 0 0 auto;
  border: 1px solid #72e3bd;
  border-radius: 2px;
  background: transparent;
  color: #72e3bd;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
}

.network-path-button:hover { background: #72e3bd; color: #101310; }

/* Cohort Explorer */
.cohort-proto {
  background: #f7f8f4;
}

.cohort-main {
  padding: 34px clamp(20px, 5vw, 76px) 100px;
}

.cohort-intro {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: end;
  border-bottom: 1px solid #d9ddd6;
  padding-bottom: 28px;
}

.cohort-intro h1 {
  max-width: 800px;
  margin: 8px 0 0;
  color: #171916;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.95;
}

.cohort-intro p {
  color: #5f665d;
  font-size: 13px;
  line-height: 1.6;
}

.cohort-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  border: 1px solid #d3d8d0;
  background: #d3d8d0;
}

.cohort-summary > div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  padding: 15px 18px;
}

.cohort-summary i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.cursor-color { background: #16a777; }
.openai-color { background: #f26b52; }

.cohort-summary span {
  color: #6f766d;
  font-size: 11px;
}

.cohort-summary strong {
  font-size: 23px;
}

.cohort-summary > button {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 0;
  background: #171916;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.cohort-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
}

.cohort-timeline-panel,
.cohort-inspector,
.coverage-panel,
.cohort-method {
  border: 1px solid #d3d8d0;
  background: #fff;
}

.cohort-timeline-panel {
  min-width: 0;
  grid-column: 1 / -1;
  padding: 20px;
}

.cohort-timeline-panel header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.cohort-timeline-panel h2,
.coverage-panel h2 {
  margin: 5px 0 0;
  color: #171916;
  font-size: 22px;
}

.cohort-timeline-panel header > span {
  color: #7b8179;
  font-size: 9px;
}

.cohort-chart {
  height: 390px;
}

.cohort-timeline-panel .cohort-inspector {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 170px;
  gap: 24px;
  align-items: center;
  margin-top: 8px;
  border: 0;
  border-top: 1px solid #dce2da;
  background: #f0f7f2;
  color: #1d2921;
  padding: 18px 0 0;
}

.cohort-timeline-panel .cohort-inspector .viz-kicker { color: #168e69; }
.cohort-timeline-panel .cohort-inspector > div:first-child { padding-left: 2px; }
.cohort-timeline-panel .cohort-inspector > div:first-child > strong { display: block; margin-top: 4px; color: #c98d00; font-size: 46px; line-height: 0.9; }
.cohort-timeline-panel .cohort-inspector h2 { margin: 0; color: #1d2921; font-size: 18px; }
.cohort-timeline-panel .cohort-inspector p { margin: 5px 0 0; border: 0; color: #5b695e; padding: 0; font-size: 11px; line-height: 1.45; }
.cohort-timeline-panel .cohort-inspector div:last-child { border-left: 1px solid #cbd9ce; padding-left: 20px; }
.cohort-timeline-panel .cohort-inspector div:last-child b { color: #168e69; font-size: 32px; line-height: 1; }
.cohort-timeline-panel .cohort-inspector div:last-child span { margin-top: 4px; color: #5b695e; font-size: 10px; line-height: 1.35; }

.cohort-inspector {
  background: #171916;
  color: #fff;
  padding: 24px;
}

.cohort-inspector .viz-kicker {
  color: #72e3bd;
}

.cohort-inspector > strong {
  display: block;
  margin-top: 34px;
  color: #f4c84a;
  font-size: clamp(60px, 7vw, 100px);
  line-height: 0.8;
}

.cohort-inspector h2 {
  margin: 20px 0 38px;
  color: #fff;
  font-size: 26px;
}

.cohort-inspector div b,
.cohort-inspector div span {
  display: block;
}

.cohort-inspector div b {
  color: #72e3bd;
  font-size: 40px;
}

.cohort-inspector div span {
  color: #a7afa8;
  font-size: 10px;
}

.cohort-inspector p {
  margin-top: 30px;
  border-top: 1px solid #3f4640;
  padding-top: 18px;
  color: #a7afa8;
  font-size: 10px;
  line-height: 1.55;
}

.coverage-panel {
  min-width: 0;
  padding: 20px;
}

.coverage-panel header {
  display: block;
}

.coverage-company {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.coverage-company > span { color: #737a71; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

.coverage-chart {
  height: 260px;
}

.cohort-method {
  background: #eef1eb;
  padding: 24px;
}

.cohort-method ol {
  margin: 25px 0;
  padding-left: 20px;
}

.cohort-method li {
  border-bottom: 1px solid #cdd2ca;
  color: #3f453d;
  padding: 12px 0;
  font-size: 12px;
}

.cohort-method p {
  color: #737a71;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .flow-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-toolbar .company-toggle {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .flow-toolbar .company-toggle button {
    white-space: normal;
  }

  .flow-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-filter-bar {
    grid-template-columns: 1fr auto;
  }

  .flow-filter-bar > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .flow-inspector {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .flow-cohort-profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cohort-profile-heading,
  .cohort-company-picker,
  .cohort-unavailable {
    grid-column: 1 / -1;
  }

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

  .cohort-inspector {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
  }

  .cohort-inspector > strong,
  .cohort-inspector h2,
  .cohort-inspector p {
    margin: 0;
  }
}

@media (max-width: 680px) {
  .river-source-rail {
    top: 14px;
    bottom: 14px;
    left: 4px;
    width: 96px;
  }

  .river-source-rail button {
    grid-template-columns: 6px minmax(0, 1fr) auto;
    gap: 3px;
    padding: 0 2px;
  }

  .river-source-rail span,
  .river-source-rail i {
    display: none;
  }

  .river-source-rail strong {
    font-size: 8px;
  }

  .river-source-rail em {
    font-size: 7px;
  }

  .river-destination-overlay {
    right: 6px;
    width: 88px;
    gap: 5px;
    padding: 10px 8px;
  }

  .river-destination-overlay > span,
  .river-destination-overlay > em {
    font-size: 7px;
  }

  .river-destination-overlay > b {
    font-size: 13px;
  }

  .river-destination-overlay > div {
    padding-top: 6px;
  }

  .river-destination-overlay strong {
    font-size: 18px;
  }

  .river-destination-overlay small {
    font-size: 7px;
  }

  .river-gallery,
  .river-converge {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .river-gallery-source-list,
  .river-converge-source-list {
    padding: 12px 7px;
  }

  .river-gallery-source,
  .river-converge-source {
    gap: 4px;
    padding: 0 2px;
  }

  .river-gallery-source span,
  .river-converge-source span,
  .river-gallery-source strong,
  .river-converge-source strong {
    font-size: 8px;
  }

  .river-gallery-source em {
    display: none;
  }

  .river-gallery-target {
    right: 6px;
    width: 72px;
    padding: 9px 7px;
  }

  .river-gallery-target b {
    font-size: 11px;
  }

  .river-gallery-target strong {
    font-size: 16px;
  }

  .river-converge-target {
    right: 5%;
    width: 88px;
    height: 88px;
    border-width: 3px;
    padding: 10px;
  }

  .river-converge-target b {
    font-size: 11px;
  }

  .river-converge-target strong {
    font-size: 16px;
  }

  .flow-chart-switcher {
    right: 14px;
    bottom: 72px;
    grid-template-columns: 34px minmax(130px, auto) 34px;
  }

  .viz-header {
    height: 54px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    padding: 0 14px;
  }

  .viz-header nav {
    display: none;
  }

  .viz-brand em { display: none; }
  .viz-mobile-context { display: block; max-width: 142px; overflow: hidden; color: #506057; font-size: 10px; font-weight: 800; text-decoration: underline; text-overflow: ellipsis; text-underline-offset: 3px; white-space: nowrap; }
  .viz-header-dark .viz-mobile-context { color: #d3ded5; }

  .viz-method-link { display: none; }

  .viz-brand strong {
    font-size: 12px;
  }

  .compare-path-button {
    padding: 8px 9px;
  }

  .flow-toolbar {
    min-height: 0;
    align-items: start;
    flex-direction: column;
    padding-top: 24px;
  }

  .flow-toolbar h1 {
    font-size: 38px;
  }

  .flow-toolbar .company-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .flow-kpis > div {
    min-height: 82px;
    padding: 14px 10px;
  }

  .flow-kpis > div + div {
    padding-left: 10px;
  }

  .flow-workspace {
    grid-template-columns: 1fr;
    padding: 14px 14px 90px;
  }

  .flow-inspector {
    grid-template-columns: 1fr;
  }

  .flow-cohort-profile {
    grid-template-columns: 1fr;
  }

  .target-overview-grid {
    grid-template-columns: 1fr;
  }

  .target-summary-grid {
    grid-template-columns: 1fr;
  }

  .flow-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-topics button {
    min-height: 68px;
    gap: 5px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-right: 5px;
    font-size: 10px;
    line-height: 1.25;
  }

  .flow-baseline {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .flow-baseline button {
    width: 100%;
  }

  .flow-target-overview > header,
  .flow-explorer-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-explorer-intro button {
    width: 100%;
  }

  .flow-chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-chart-heading > span {
    line-height: 1.45;
  }

  .flow-chart {
    height: 460px;
  }

  .flow-inspector {
    min-height: 230px;
  }

  .network-title {
    top: 78px;
    right: 18px;
    left: 18px;
  }

  .network-title h1 {
    font-size: 42px;
  }

  .network-title p {
    max-width: 320px;
  }

  .network-chart {
    inset: 238px 14px 210px;
    min-height: 430px;
  }

  .network-legend {
    display: none;
  }

  .network-inspector {
    top: auto;
    right: 14px;
    bottom: 76px;
    left: 14px;
    width: auto;
  }

  .network-actions {
    right: 14px;
    bottom: 25px;
  }

  .cohort-main {
    padding: 26px 14px 90px;
  }

  .cohort-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cohort-intro h1 {
    font-size: 42px;
  }

  .cohort-summary {
    grid-template-columns: 1fr 1fr;
  }

  .cohort-summary > div {
    grid-template-columns: 8px 1fr;
  }

  .cohort-summary strong {
    grid-column: 2;
  }

  .cohort-summary > button {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .cohort-timeline-panel {
    padding: 14px;
  }

  .cohort-chart {
    height: 380px;
  }

  .cohort-inspector {
    display: block;
  }

  .cohort-inspector > strong {
    margin-top: 26px;
  }

  .cohort-inspector h2 {
    margin: 15px 0 24px;
  }

  .coverage-company {
    float: none;
    margin-top: 16px;
  }

  .coverage-chart {
    height: 380px;
  }

  .prototype-switcher {
    bottom: 10px;
    grid-template-columns: 40px minmax(175px, auto) 40px;
  }
}
