:root {
  color-scheme: dark;
  --tf-bg: #020915;
  --tf-bg-2: #051226;
  --tf-panel: rgba(8, 23, 46, 0.86);
  --tf-panel-strong: rgba(7, 19, 38, 0.96);
  --tf-card: rgba(9, 25, 50, 0.88);
  --tf-card-soft: rgba(12, 36, 70, 0.72);
  --tf-line: rgba(105, 139, 184, 0.34);
  --tf-line-soft: rgba(105, 139, 184, 0.18);
  --tf-text: #f3f7ff;
  --tf-muted: #bac5d8;
  --tf-subtle: #7f8fa8;
  --tf-positive: #55eb7b;
  --tf-tech: #28c9ff;
  --tf-teal: #22e2d2;
  --tf-warning: #ff980f;
  --tf-negative: #ff4d46;
  --tf-portfolio: #a86dff;
  --tf-neutral: #9aabc4;
  --tf-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --tf-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--tf-bg);
  scroll-behavior: smooth;
}

body.testhome-body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 12%, rgba(20, 70, 130, 0.24), transparent 34%),
    radial-gradient(circle at 86% 76%, rgba(20, 70, 130, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(4, 13, 29, 0.98), rgba(2, 9, 21, 0.99) 52%, #020915 100%),
    #020915;
  color: var(--tf-text);
  font-family: var(--tf-font);
}

body.testhome-body button,
body.testhome-body input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 40;
  transform: translateY(-140%);
  border-radius: 8px;
  background: #ffffff;
  color: #041022;
  padding: 10px 14px;
  text-decoration: none;
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.testhome-page {
  min-height: 100vh;
  font-family: var(--tf-font);
}

.testhome-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 44px;
}

.testhome-status,
.testhome-error,
.testhome-noscript {
  width: min(900px, calc(100% - 40px));
  margin: 80px auto;
  border: 1px solid var(--tf-line);
  border-radius: 18px;
  background: rgba(8, 23, 46, 0.86);
  box-shadow: var(--tf-shadow);
  padding: 28px;
}

.testhome-status {
  display: grid;
  gap: 14px;
}

.testhome-status-bar {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(85, 235, 123, 0.18), rgba(40, 201, 255, 0.34), rgba(168, 109, 255, 0.18));
  overflow: hidden;
  position: relative;
}

.testhome-status-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: tf-shimmer 1.4s infinite;
}

.testhome-error strong,
.testhome-noscript strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tf-negative);
  font-size: 20px;
}

.testhome-part {
  padding: 34px 0 44px;
  scroll-margin-top: 0;
}

.testhome-part:first-child {
  padding-top: 0;
}

.dashboard-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(80, 133, 196, 0.72) rgba(5, 14, 28, 0.5);
}

.market-dashboard {
  position: relative;
  width: 1800px;
  min-width: 1800px;
  min-height: 1000px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(20, 72, 126, 0.24), transparent 31%),
    radial-gradient(circle at 86% 58%, rgba(21, 101, 153, 0.17), transparent 34%),
    linear-gradient(180deg, rgba(3, 12, 28, 0.98), rgba(4, 15, 33, 0.96));
  box-shadow: none;
  padding: 34px 51px 30px;
  overflow: hidden;
}

.market-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(35, 121, 179, 0.08), transparent 42%),
    linear-gradient(125deg, rgba(28, 108, 179, 0.08), transparent 34%),
    linear-gradient(305deg, rgba(22, 176, 131, 0.06), transparent 32%);
}

.market-dashboard > * {
  position: relative;
  z-index: 1;
}

body[data-scroll-reveal="ready"] .scroll-reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 22px, 0) scale(0.992);
  transition:
    opacity 520ms ease,
    filter 620ms ease,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

body[data-scroll-reveal="ready"] .scroll-reveal.is-revealed {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
}

body[data-scroll-reveal="ready"] .scroll-reveal.reveal-no-motion {
  transition-duration: 1ms;
  transition-delay: 0ms;
}

body[data-scroll-reveal="ready"] .flow-ribbon-layer.scroll-reveal,
body[data-scroll-reveal="ready"] .transit-panel.scroll-reveal,
body[data-scroll-reveal="ready"] .weather-panel.scroll-reveal {
  transform: translate3d(0, 14px, 0);
}

body[data-scroll-reveal="ready"] .flow-ribbon-layer.scroll-reveal.is-revealed,
body[data-scroll-reveal="ready"] .transit-panel.scroll-reveal.is-revealed,
body[data-scroll-reveal="ready"] .weather-panel.scroll-reveal.is-revealed {
  transform: translate3d(0, 0, 0);
}

body[data-scroll-reveal="ready"] .pressure-node.scroll-reveal {
  transform: translate(-50%, calc(-50% + 22px)) scale(0.992);
}

body[data-scroll-reveal="ready"] .pressure-node.scroll-reveal.is-revealed {
  transform: translate(-50%, -50%) scale(1);
}

.view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 12px;
}

.view-title {
  margin: 0;
  color: #f7f7fb;
  font-size: 56px;
  font-weight: 850;
  line-height: 1.06;
}

.view-subtitle {
  margin: 9px 0 0;
  color: var(--tf-muted);
  font-size: 23px;
  line-height: 1.35;
}

.brand-card {
  min-width: 312px;
  border: 1px solid rgba(105, 139, 184, 0.4);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(12, 29, 57, 0.9), rgba(7, 18, 37, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 18px 20px;
  transform: translateY(-12px);
}

.brand-card-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--tf-tech);
  background: rgba(40, 201, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(40, 201, 255, 0.34);
}

.brand-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(24, 183, 131, 0.16);
  box-shadow: inset 0 0 0 1px rgba(24, 183, 131, 0.22);
}

.brand-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #33df8e;
  box-shadow: 0 0 12px rgba(51, 223, 142, 0.76);
}

.brand-title {
  font-size: 22px;
  font-weight: 840;
  color: #ffffff;
}

.brand-sub {
  margin-top: 4px;
  color: var(--tf-muted);
  font-size: 16px;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #83ed75;
  box-shadow: 0 0 18px rgba(131, 237, 117, 0.8);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card,
.node-card,
.timeline-cell,
.timeline-row-label,
.driver-card,
.stop-card,
.forecast-card,
.portfolio-panel,
.portfolio-row,
.pressure-node {
  border: 1px solid rgba(105, 139, 184, 0.36);
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.88), rgba(7, 18, 36, 0.88));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.metric-card {
  min-height: 155px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 25px;
  color: var(--tone);
}

.metric-content {
  min-width: 0;
}

.metric-icon,
.node-icon,
.row-icon,
.forecast-icon,
.driver-icon,
.portfolio-icon {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--tone) 18%, transparent);
  flex: 0 0 auto;
}

.metric-icon {
  width: 68px;
  height: 68px;
}

.metric-kicker {
  margin-bottom: 5px;
  color: var(--tone);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.metric-icon svg,
.node-icon svg,
.row-icon svg,
.forecast-icon svg,
.driver-icon svg,
.portfolio-icon svg,
.brand-mark svg {
  width: 56%;
  height: 56%;
  display: block;
}

.metric-label {
  color: #f2f5fb;
  font-size: 18px;
  line-height: 1.2;
}

.metric-value {
  margin-top: 4px;
  color: #ffffff;
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
}

.metric-card[data-metric-id="risk"] .metric-value {
  font-size: 31px;
  line-height: 1.08;
  overflow-wrap: break-word;
}

.metric-card[data-tone="negative"] .metric-value,
.metric-card[data-tone="warning"] .metric-value,
.metric-card[data-tone="tech"] .metric-value,
.metric-card[data-tone="teal"] .metric-value {
  color: var(--tone);
}

.badge,
.score-badge,
.confidence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  color: var(--tone);
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
  padding: 4px 13px;
}

.metric-card .badge {
  min-width: 120px;
  margin-top: 12px;
}

.flow-panel,
.timeline-panel,
.transit-panel,
.weather-panel,
.weather-forecast {
  border: 1px solid rgba(105, 139, 184, 0.34);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 19, 41, 0.92), rgba(3, 13, 30, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.flow-panel {
  min-height: 1260px;
  position: relative;
  padding: 24px 18px 26px;
  overflow: hidden;
}

.flow-panel::after,
.timeline-panel::after,
.transit-panel::after,
.weather-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 23.6%, rgba(105, 139, 184, 0.28) 23.7%, rgba(105, 139, 184, 0.28) 23.9%, transparent 24%),
    linear-gradient(90deg, transparent 46.1%, rgba(105, 139, 184, 0.28) 46.2%, rgba(105, 139, 184, 0.28) 46.4%, transparent 46.5%),
    linear-gradient(90deg, transparent 71.5%, rgba(105, 139, 184, 0.28) 71.6%, rgba(105, 139, 184, 0.28) 71.8%, transparent 71.9%);
}

.flow-ribbon-layer {
  position: absolute;
  inset: 72px 0 0;
  z-index: 1;
  width: 100%;
  height: calc(100% - 70px);
  pointer-events: none;
}

.flow-ribbon-layer path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-band-glow {
  filter: url("#flow-band-glow");
  opacity: 0.22;
}

.flow-band-body {
  filter: url("#flow-band-soften");
  opacity: 0.9;
}

.flow-band-shade {
  opacity: 0.82;
}

.flow-band-sheen {
  filter: blur(2.6px);
  mix-blend-mode: screen;
  opacity: 0.48;
}

.flow-band-lip {
  fill: none;
  stroke-width: 5px;
  filter: blur(3px);
  mix-blend-mode: screen;
  opacity: 0.1;
}

.flow-grid {
  --flow-row-height: 288px;
  --flow-row-gap: 14px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 340px 290px 340px 500px;
  gap: 61px;
  justify-content: start;
}

.column-title {
  margin-bottom: 10px;
  color: #f4f7ff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.node-stack {
  display: grid;
  grid-template-rows: repeat(5, var(--flow-row-height));
  gap: var(--flow-row-gap);
}

.node-card {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 15px;
  background: linear-gradient(180deg, #0c1d38, #061122);
  color: var(--tone);
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon label score"
    "icon summary summary"
    "icon role role"
    "icon trigger trigger"
    "icon move move"
    "icon lineage lineage";
  align-items: start;
  gap: 0 16px;
  padding: 18px 16px 16px 22px;
}

.flow-column:not(:nth-child(4)) .node-card {
  align-content: center;
}

.node-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--tone);
  box-shadow: 0 0 18px var(--tone);
}

.flow-column:nth-child(2) .node-card::before,
.flow-column:nth-child(3) .node-card::before {
  opacity: 0;
  box-shadow: none;
}

.node-icon {
  grid-area: icon;
  position: static;
  width: 54px;
  height: 54px;
  margin-top: 6px;
}

.node-card > .score-badge {
  grid-area: score;
  position: static;
  justify-self: end;
  align-self: start;
  min-width: 46px;
  min-height: 34px;
  border-radius: 9px;
}

.node-label {
  grid-area: label;
  min-width: 0;
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 820;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.node-summary {
  grid-area: summary;
  min-width: 0;
  margin: 0;
  color: #d8e1ef;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.flow-role {
  grid-area: role;
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 3px;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
  border-left: 4px solid var(--tone);
  border-radius: 9px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tone) 13%, transparent), rgba(5, 16, 32, 0.28)),
    rgba(9, 24, 45, 0.68);
  padding: 7px 9px;
  color: #dce8f8;
}

.flow-role span {
  color: var(--tone);
  font-size: 9px;
  font-weight: 860;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.flow-role strong,
.flow-role em {
  min-width: 0;
  display: block;
  overflow-wrap: break-word;
  white-space: normal;
}

.flow-role strong {
  color: #f3f7ff;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.15;
}

.flow-role em {
  color: #9fb0c8;
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.15;
}

.headline-trigger {
  grid-area: trigger;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(140, 159, 187, 0.26);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  background: rgba(148, 163, 184, 0.08);
  color: #d8e4f4;
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1;
}

.headline-trigger[data-headline-state="active"] {
  border-color: color-mix(in srgb, var(--tone) 46%, transparent);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
}

.headline-trigger span {
  color: var(--tone);
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.headline-trigger strong {
  min-width: 0;
  color: #eef5ff;
  display: block;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headline-trigger[data-headline-state="none"] span {
  color: #98a9c0;
}

.headline-trigger[data-headline-state="none"] strong {
  color: #aebbd0;
}

.est-move {
  grid-area: move;
  display: block;
  margin-top: 8px;
  color: var(--tone);
  font-size: 18px;
  font-weight: 820;
}

.forecast-lineage {
  grid-area: lineage;
  min-width: 0;
  display: grid;
  gap: 6px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
  color: #c7d4e7;
  font-size: 12px;
  line-height: 1.3;
}

.lineage-kicker {
  color: var(--tone);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.lineage-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  min-width: 0;
}

.lineage-step {
  max-width: 100%;
  min-height: 24px;
  border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--tone) 9%, transparent);
  color: #eef5ff;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-arrow {
  color: var(--tone);
  font-weight: 850;
  line-height: 1;
}

.lineage-model {
  color: #aebdd2;
  overflow-wrap: anywhere;
}

.lineage-model strong {
  color: #eaf2ff;
  font-weight: 820;
}

.lineage-compact-inputs {
  color: #8fa1b9;
}

.forecast-explainer {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.explain-kicker {
  color: #eff6ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.forecast-explainer p {
  margin: 0;
  color: #dfeaff;
  font-size: 11.5px;
  font-weight: 620;
  line-height: 1.25;
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.factor-chip {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--factor-tone) 48%, transparent);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  background: color-mix(in srgb, var(--factor-tone) 10%, transparent);
  color: #eef5ff;
  padding: 5px 6px 6px;
}

.factor-chip[data-factor-tone="positive"] {
  --factor-tone: var(--tf-positive);
}

.factor-chip[data-factor-tone="negative"] {
  --factor-tone: var(--tf-negative);
}

.factor-chip[data-factor-tone="warning"] {
  --factor-tone: var(--tf-warning);
}

.factor-chip[data-factor-tone="neutral"] {
  --factor-tone: var(--tf-neutral);
}

.factor-chip strong {
  color: var(--factor-tone);
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.factor-chip strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.factor-chip em {
  min-width: 0;
  color: #f3f7ff;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factor-chip small {
  color: #aebdd2;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.flow-column:nth-child(4) .node-card {
  min-height: 0;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0 10px;
  padding: 12px 14px 12px 20px;
}

.flow-column:nth-child(4) .node-icon {
  width: 44px;
  height: 44px;
  margin-top: 4px;
}

.flow-column:nth-child(4) .node-label {
  margin-bottom: 3px;
  font-size: 18px;
  line-height: 1.12;
}

.flow-column:nth-child(4) .node-summary {
  font-size: 13px;
  line-height: 1.2;
}

.flow-column:nth-child(4) .flow-role {
  margin-top: 4px;
  padding: 5px 7px;
}

.flow-column:nth-child(4) .flow-role span {
  font-size: 7px;
}

.flow-column:nth-child(4) .flow-role strong {
  font-size: 9px;
}

.flow-column:nth-child(4) .flow-role em {
  font-size: 8px;
}

.flow-column:nth-child(4) .headline-trigger {
  gap: 4px;
  margin-top: 4px;
  padding: 3px 5px;
  font-size: 8px;
}

.flow-column:nth-child(4) .headline-trigger span {
  font-size: 7px;
}

.flow-column:nth-child(4) .est-move {
  margin-top: 4px;
  font-size: 14px;
}

.flow-column:nth-child(4) .forecast-lineage {
  gap: 3px;
  margin-top: 5px;
  padding-top: 5px;
  font-size: 10px;
  line-height: 1.2;
}

.flow-column:nth-child(4) .lineage-kicker {
  font-size: 9.5px;
}

.flow-column:nth-child(4) .lineage-trail {
  gap: 3px;
}

.flow-column:nth-child(4) .lineage-step {
  max-width: 110px;
  min-height: 17px;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 8.5px;
}

.flow-column:nth-child(4) .lineage-arrow {
  font-size: 10px;
}

.flow-column:nth-child(4) .lineage-model {
  font-size: 9px;
}

.flow-column:nth-child(4) .forecast-explainer p {
  font-size: 10px;
  line-height: 1.2;
}

.flow-column:nth-child(4) .explain-kicker {
  font-size: 9px;
}

.flow-column:nth-child(4) .factor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.flow-column:nth-child(4) .factor-chip {
  border-radius: 6px;
  padding: 3px 5px 4px;
}

.flow-column:nth-child(4) .lineage-model,
.flow-column:nth-child(4) .lineage-compact-inputs {
  display: none;
}

.flow-column:nth-child(4) .node-card[data-node-id="portfolio-review"] {
  min-height: 0;
  padding-right: 62px;
}

.flow-column:nth-child(4) .node-card[data-node-id="portfolio-review"] .node-summary {
  padding-right: 16px;
}

.flow-column:nth-child(4) .portfolio-action {
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
}

.portfolio-action {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(40, 201, 255, 0.52);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(40, 201, 255, 0.12);
  color: var(--tf-tech);
}

.main-read {
  min-height: 74px;
  margin-top: 18px;
  border: 1px solid rgba(85, 235, 123, 0.52);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(8, 54, 50, 0.58);
  color: #eef5ff;
  padding: 16px 26px;
  font-size: 23px;
  line-height: 1.35;
}

.main-read svg {
  width: 28px;
  height: 28px;
  color: var(--tf-positive);
  flex: 0 0 auto;
}

.main-read strong {
  color: var(--tf-positive);
  font-weight: 850;
  white-space: nowrap;
}

.dashboard--flow {
  min-height: 2220px;
}

.data-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 2px 0;
  color: #8fa1bb;
  font-size: 13px;
  line-height: 1.45;
}

.data-note strong {
  color: #c8d7ee;
}

.dashboard--timeline {
  min-height: 920px;
}

.timeline-panel {
  position: relative;
  padding: 24px 22px;
  overflow: hidden;
}

.timeline-panel::after,
.transit-panel::after,
.weather-panel::after {
  opacity: 0;
}

.event-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--tf-line-soft);
  padding: 0 0 18px;
  margin-bottom: 16px;
}

.event-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.event-icon {
  width: 62px;
  height: 62px;
  border: 1px solid var(--tf-negative);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--tf-negative);
  background: rgba(255, 77, 70, 0.08);
}

.event-icon svg {
  width: 34px;
  height: 34px;
}

.event-strip h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 840;
}

.event-strip p {
  margin: 6px 0 0;
  color: var(--tf-muted);
  font-size: 16px;
}

.propagation {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--tf-muted);
  font-size: 16px;
}

.propagation .score-badge {
  position: static;
  color: var(--tf-tech);
  --tone: var(--tf-tech);
  min-width: 92px;
  min-height: 40px;
  font-size: 22px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 218px repeat(6, minmax(0, 1fr));
  gap: 16px 30px;
  align-items: stretch;
}

.timeline-grid-head {
  min-height: 92px;
  display: grid;
  align-content: start;
  text-align: center;
  position: relative;
  padding-top: 2px;
}

.timeline-grid-head::before {
  content: "";
  position: absolute;
  top: 72px;
  left: -30px;
  right: -30px;
  height: 1px;
  background: rgba(142, 171, 211, 0.4);
}

.timeline-grid-head::after {
  content: "";
  position: absolute;
  top: 63px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #a7c1e9;
  border-radius: 999px;
  background: #061326;
  transform: translateX(-50%);
}

.timeline-time {
  color: #ffffff;
  font-size: 18px;
  font-weight: 780;
}

.timeline-subtime {
  margin-top: 5px;
  color: var(--tf-muted);
  font-size: 14px;
  line-height: 1.25;
}

.timeline-row-label {
  min-height: 98px;
  border-radius: 12px;
  color: var(--tone);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.row-icon {
  width: 48px;
  height: 48px;
}

.timeline-row-label strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.1;
}

.timeline-row-label span {
  display: block;
  margin-top: 5px;
  color: #c8d4e6;
  font-size: 14px;
  line-height: 1.35;
}

.timeline-cell {
  min-height: 98px;
  border-radius: 12px;
  color: var(--tone);
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px 16px;
  position: relative;
}

.timeline-cell::before {
  content: "";
  position: absolute;
  left: -31px;
  right: calc(100% - 1px);
  top: 50%;
  height: 6px;
  border-radius: 999px;
  background: var(--tone);
  opacity: 0.72;
  box-shadow: 0 0 18px var(--tone);
}

.timeline-cell strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.2;
}

.timeline-cell span {
  color: #d5dfec;
  font-size: 15px;
  line-height: 1.25;
}

.timeline-cell .confidence-pill {
  width: 100%;
  margin-top: 3px;
  min-height: 28px;
  border-radius: 8px;
  font-size: 14px;
}

.best-for {
  min-height: 68px;
  margin-top: 24px;
  border: 1px solid rgba(40, 201, 255, 0.48);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(8, 49, 78, 0.48);
  color: #cbd7e8;
  padding: 16px 24px;
  font-size: 20px;
}

.best-for svg {
  width: 34px;
  height: 34px;
  color: #7bbcff;
}

.best-for strong {
  color: var(--tf-tech);
}

.dashboard--transit {
  min-height: 890px;
}

.transit-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  width: min(940px, 100%);
  min-height: 56px;
  border: 1px solid var(--tf-line);
  border-radius: 14px;
  background: rgba(6, 18, 37, 0.82);
  padding: 12px 28px;
  margin-bottom: 16px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 760;
}

.legend-line {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--tone);
  box-shadow: 0 0 14px var(--tone);
  position: relative;
}

.legend-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--tone);
  transform: translate(-50%, -50%);
}

.transit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 530px;
  gap: 28px;
  padding: 22px 24px 24px;
}

.transit-map {
  display: grid;
  grid-template-rows: repeat(var(--driver-count), minmax(124px, 1fr));
  gap: 24px;
  isolation: isolate;
  min-height: 740px;
  position: relative;
  padding-right: 270px;
}

.transit-paths {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.transit-path {
  fill: none;
  stroke: var(--tone);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.9;
  filter: drop-shadow(0 0 18px var(--tone));
  vector-effect: non-scaling-stroke;
}

.transit-path-dot {
  fill: var(--tone);
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 0 16px var(--tone));
  vector-effect: non-scaling-stroke;
}

.portfolio-target {
  position: absolute;
  right: 36px;
  top: 50%;
  z-index: 4;
  width: 172px;
  height: 172px;
  transform: translateY(-50%);
  border: 3px solid #64bfff;
  border-radius: 999px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  text-align: center;
  color: #ffffff;
  background: radial-gradient(circle, rgba(63, 168, 255, 0.62), rgba(11, 47, 89, 0.98) 62%, #041225);
  box-shadow: 0 0 0 10px rgba(45, 153, 255, 0.12), 0 0 40px rgba(71, 166, 255, 0.7);
  overflow: hidden;
  font-size: 25px;
  font-weight: 850;
  line-height: 1.12;
}

.portfolio-target::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #041225;
  z-index: -1;
}

.portfolio-target span {
  display: grid;
  justify-items: center;
}

.portfolio-target svg {
  width: 42px;
  height: 42px;
  color: #8fd1ff;
  margin: 0 auto 8px;
}

.driver-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  color: var(--tone);
  min-height: 124px;
  position: relative;
  z-index: 2;
}

.driver-card {
  min-height: 112px;
  border-radius: 14px;
  color: var(--tone);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.driver-icon {
  width: 44px;
  height: 44px;
}

.driver-card strong {
  display: block;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.1;
  hyphens: manual;
  overflow-wrap: normal;
  text-wrap: pretty;
  word-break: normal;
}

.driver-card span {
  display: block;
  margin-top: 7px;
  color: var(--tone);
  font-size: 15px;
  line-height: 1.18;
}

.driver-card small {
  display: block;
  color: var(--tf-muted);
  font-size: 12px;
  margin-top: 4px;
}

.driver-stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  align-items: center;
  isolation: isolate;
}

.driver-stops::before {
  content: "";
  position: absolute;
  left: -26px;
  right: -34px;
  top: 50%;
  z-index: 0;
  height: 5px;
  border-radius: 999px;
  background: var(--tone);
  box-shadow: 0 0 24px var(--tone);
  opacity: 0.9;
}

.driver-stops::after {
  display: none;
}

.stop-card {
  min-height: 92px;
  border-radius: 12px;
  color: var(--tone);
  position: relative;
  z-index: 2;
  padding: 12px 12px 10px;
  text-align: center;
}

.stop-card strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
}

.stop-value {
  margin-top: 6px;
  color: var(--tone);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.15;
}

.stop-card .confidence-pill {
  width: 100%;
  min-height: 26px;
  margin-top: 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #b7c8e2;
  --tone: #3189d9;
}

.portfolio-panel {
  border-radius: 20px;
  padding: 26px 30px 24px;
  background: linear-gradient(180deg, rgba(9, 26, 53, 0.96), rgba(5, 17, 35, 0.96));
}

.portfolio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.portfolio-heading-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portfolio-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
}

.portfolio-heading .badge {
  color: var(--tf-positive);
  --tone: var(--tf-positive);
  min-width: 110px;
  min-height: 38px;
}

.portfolio-copy {
  color: var(--tf-muted);
  font-size: 19px;
  line-height: 1.42;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tf-line-soft);
}

.portfolio-impact-list {
  display: grid;
}

.portfolio-row {
  border: 0;
  border-bottom: 1px solid var(--tf-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 100px 86px;
  align-items: center;
  gap: 16px;
  color: var(--tone);
  min-height: 80px;
}

.portfolio-icon {
  width: 52px;
  height: 52px;
}

.portfolio-name {
  color: #ffffff;
  font-size: 21px;
  font-weight: 820;
  line-height: 1.1;
}

.portfolio-holdings {
  color: var(--tf-muted);
  margin-top: 4px;
  font-size: 15px;
}

.portfolio-value {
  color: var(--tone);
  font-size: 25px;
  font-weight: 850;
  line-height: 1.1;
}

.portfolio-value span,
.portfolio-confidence span {
  display: block;
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.portfolio-button {
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  border: 1px solid rgba(103, 178, 255, 0.78);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(48, 130, 255, 0.96), rgba(10, 79, 179, 0.92));
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(32, 111, 241, 0.28);
}

.portfolio-button svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.transit-note {
  min-height: 70px;
  margin-top: 18px;
  border: 1px solid rgba(90, 139, 194, 0.34);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: rgba(6, 18, 36, 0.76);
  color: #c7d2e1;
  padding: 14px 28px;
  font-size: 17px;
}

.note-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.note-left svg {
  width: 34px;
  height: 34px;
  color: #75bdff;
}

.note-legend {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}

.note-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-tag {
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 4px 12px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  font-weight: 760;
}

.dashboard--weather {
  min-height: 1040px;
}

.weather-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(390px, 1fr);
  gap: 18px;
}

.weather-panel {
  min-height: 700px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  isolation: isolate;
}

.weather-radar {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 400px;
  height: 400px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    repeating-radial-gradient(circle, rgba(75, 165, 235, 0.28) 0 1px, transparent 1px 44px),
    conic-gradient(from 0deg, rgba(85, 235, 123, 0.22), rgba(40, 201, 255, 0.2), rgba(168, 109, 255, 0.2), rgba(255, 152, 15, 0.22), rgba(85, 235, 123, 0.22));
  opacity: 0.82;
}

.weather-radar::before,
.weather-radar::after {
  content: "";
  position: absolute;
  background: rgba(145, 177, 220, 0.32);
}

.weather-radar::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.weather-radar::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.weather-logo {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, #20d799, #237bff 68%, #071a37);
  box-shadow: 0 0 30px rgba(40, 201, 255, 0.5);
  font-size: 44px;
  font-weight: 900;
}

.pressure-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  width: var(--node-size);
  height: 188px;
  min-height: 0;
  border-radius: 16px;
  color: var(--tone);
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  isolation: isolate;
  overflow: visible;
}

.pressure-node::before {
  content: "";
  position: absolute;
  left: var(--node-line-anchor-x, 50%);
  top: var(--node-line-anchor-y, 50%);
  width: var(--node-line-length, 140px);
  height: 1px;
  transform-origin: left center;
  transform: rotate(var(--node-line-angle, 0deg));
  background: var(--tone);
  opacity: 0.72;
  box-shadow: 0 0 16px var(--tone);
  z-index: -1;
}

.pressure-node .node-icon {
  grid-area: auto;
  position: static;
  width: 58px;
  height: 58px;
  margin-top: 0;
  z-index: 1;
}

.pressure-node > span:not(.node-icon) {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.pressure-node strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.08;
  hyphens: manual;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.pressure-kind,
.forecast-kind {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  margin-bottom: 6px;
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--tone), #ffffff 20%);
  border-radius: 999px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone), transparent 84%);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.pressure-node em {
  display: block;
  margin-top: 4px;
  color: var(--tone);
  font-size: 17px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.15;
}

.pressure-node b {
  display: block;
  margin-top: 5px;
  color: var(--tone);
  font-size: 32px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.pressure-node .confidence-pill {
  margin-top: 9px;
  min-height: 26px;
  max-width: 100%;
  min-width: 145px;
  font-size: 13px;
  box-sizing: border-box;
}

.weather-forecast {
  min-height: 600px;
  padding: 22px;
}

.weather-forecast h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.1;
}

.forecast-list {
  display: grid;
  gap: 12px;
}

.forecast-card {
  min-height: 118px;
  border-radius: 16px;
  color: var(--tone);
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}

.forecast-icon {
  width: 72px;
  height: 72px;
}

.forecast-title {
  display: block;
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.1;
}

.forecast-body {
  color: #d5deeb;
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.25;
}

.forecast-value {
  text-align: right;
  color: var(--tone);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.forecast-value span {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 720;
}

.forecast-value small {
  display: block;
  margin-top: 7px;
  color: #b9c8dd;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
}

.tone-positive {
  --tone: var(--tf-positive);
}

.tone-tech {
  --tone: var(--tf-tech);
}

.tone-teal {
  --tone: var(--tf-teal);
}

.tone-warning {
  --tone: var(--tf-warning);
}

.tone-negative {
  --tone: var(--tf-negative);
}

.tone-portfolio {
  --tone: var(--tf-portfolio);
}

.tone-neutral {
  --tone: var(--tf-neutral);
}

[data-tone="positive"] {
  --tone: var(--tf-positive);
}

[data-tone="tech"] {
  --tone: var(--tf-tech);
}

[data-tone="teal"] {
  --tone: var(--tf-teal);
}

[data-tone="warning"] {
  --tone: var(--tf-warning);
}

[data-tone="negative"] {
  --tone: var(--tf-negative);
}

[data-tone="portfolio"] {
  --tone: var(--tf-portfolio);
}

[data-tone="neutral"] {
  --tone: var(--tf-neutral);
}

.signed-percent {
  white-space: nowrap;
  font-weight: inherit;
}

.signed-percent[data-sign-tone="positive"],
[data-value-tone="positive"] {
  color: var(--tf-positive);
}

.signed-percent[data-sign-tone="negative"],
[data-value-tone="negative"] {
  color: var(--tf-negative);
}

.metric-card .metric-value[data-value-tone="neutral"],
.node-card .est-move[data-value-tone="neutral"],
.stop-card .stop-value[data-value-tone="neutral"],
.portfolio-row .portfolio-value[data-value-tone="neutral"],
.pressure-node b[data-value-tone="neutral"],
.forecast-card .forecast-value[data-value-tone="neutral"] {
  color: var(--tf-muted);
}

.metric-card .metric-value[data-value-tone="positive"],
.node-card .est-move[data-value-tone="positive"],
.stop-card .stop-value[data-value-tone="positive"],
.portfolio-row .portfolio-value[data-value-tone="positive"],
.pressure-node b[data-value-tone="positive"],
.forecast-card .forecast-value[data-value-tone="positive"] {
  color: var(--tf-positive);
}

.metric-card .metric-value[data-value-tone="negative"],
.node-card .est-move[data-value-tone="negative"],
.stop-card .stop-value[data-value-tone="negative"],
.portfolio-row .portfolio-value[data-value-tone="negative"],
.pressure-node b[data-value-tone="negative"],
.forecast-card .forecast-value[data-value-tone="negative"] {
  color: var(--tf-negative);
}

.node-summary .signed-percent,
.forecast-body .signed-percent,
.factor-chip .signed-percent {
  font-weight: 780;
}

.testhome-section-nav {
  position: sticky;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1800px);
  min-height: 54px;
  margin: 0 auto;
  border-top: 1px solid rgba(105, 139, 184, 0.22);
  border-bottom: 1px solid rgba(105, 139, 184, 0.38);
  background: rgba(3, 13, 29, 0.94);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  padding: 7px 51px;
}

.testhome-section-nav a {
  position: relative;
  min-width: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(105, 139, 184, 0.24);
  color: #aebdd1;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.testhome-section-nav a:last-child {
  border-right: 0;
}

.testhome-section-nav a:hover,
.testhome-section-nav a:focus-visible {
  color: #ffffff;
  background: rgba(40, 201, 255, 0.08);
  outline: none;
}

.testhome-section-nav a:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(40, 201, 255, 0.72);
}

.testhome-section-nav a[aria-current="location"] {
  color: #ffffff;
  background: rgba(40, 201, 255, 0.12);
}

.testhome-section-nav a[aria-current="location"]::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 2px;
  background: var(--tf-tech);
  box-shadow: 0 0 12px rgba(40, 201, 255, 0.66);
}

.section-nav-label--mobile {
  display: none;
}

.testhome-section-nav + .testhome-part,
.testhome-section-nav ~ .testhome-part {
  scroll-margin-top: 66px;
}

@keyframes tf-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1320px) {
  .dashboard-wrap {
    scrollbar-width: thin;
  }
}

@media (max-width: 760px) {
  body.testhome-body {
    background:
      linear-gradient(180deg, rgba(4, 15, 32, 0.99), rgba(2, 9, 21, 0.99)),
      #020915;
  }

  .testhome-shell {
    padding-bottom: 24px;
  }

  .testhome-part,
  .testhome-part:first-child {
    padding: 12px 0 24px;
    scroll-margin-top: 58px;
  }

  .dashboard-wrap {
    width: 100%;
    overflow: visible;
  }

  .market-dashboard.market-dashboard--mobile {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 20px 14px 24px;
    overflow: visible;
  }

  .market-dashboard--mobile::before {
    background: linear-gradient(180deg, rgba(28, 108, 179, 0.06), transparent 24%);
  }

  .testhome-section-nav {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    border-bottom: 1px solid rgba(105, 139, 184, 0.34);
    background: rgba(3, 13, 29, 0.94);
    backdrop-filter: blur(16px);
    padding: 8px;
  }

  .testhome-section-nav a {
    min-width: 0;
    min-height: 38px;
    display: grid;
    place-items: center;
    border-right: 1px solid rgba(105, 139, 184, 0.24);
    color: #c7d4e8;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }

  .testhome-section-nav a:last-child {
    border-right: 0;
  }

  .section-nav-label--desktop {
    display: none;
  }

  .section-nav-label--mobile {
    display: inline;
  }

  .market-dashboard--mobile .view-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
  }

  .market-dashboard--mobile .view-title {
    font-size: 32px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .market-dashboard--mobile .view-subtitle {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.45;
  }

  .market-dashboard--mobile .brand-card {
    min-width: 0;
    width: 100%;
    transform: none;
    border-radius: 8px;
    padding: 10px 12px;
  }

  .market-dashboard--mobile .brand-title {
    font-size: 16px;
  }

  .market-dashboard--mobile .brand-sub {
    margin-top: 2px;
    font-size: 12px;
  }

  .metric-grid--mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }

  .metric-grid--mobile .metric-card {
    min-width: 0;
    min-height: 118px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    border-radius: 8px;
    padding: 12px 10px;
  }

  .metric-grid--mobile .metric-card[data-metric-id="risk"] {
    grid-column: 1 / -1;
    min-height: 108px;
  }

  .metric-grid--mobile .metric-icon {
    width: 42px;
    height: 42px;
  }

  .metric-grid--mobile .metric-kicker {
    font-size: 8px;
  }

  .metric-grid--mobile .metric-label {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .metric-grid--mobile .metric-value,
  .metric-grid--mobile .metric-card[data-metric-id="risk"] .metric-value {
    font-size: 24px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .metric-grid--mobile .badge {
    min-width: 0;
    min-height: 26px;
    margin-top: 8px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .mobile-flow-list {
    display: grid;
    gap: 34px;
  }

  .mobile-flow-lane {
    min-width: 0;
    color: var(--tone);
  }

  .mobile-lane-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 2px 12px;
  }

  .mobile-lane-heading h2 {
    min-width: 0;
    margin: 0;
    color: #f6f8ff;
    font-size: 19px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-lane-swatch {
    width: 22px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--tone);
    box-shadow: 0 0 14px var(--tone);
  }

  .mobile-flow-steps,
  .mobile-timeline-stages,
  .mobile-route-stops {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-flow-steps {
    position: relative;
    display: grid;
    gap: 18px;
    padding-left: 18px;
  }

  .mobile-flow-steps::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 999px;
    background: var(--tone);
    box-shadow: 0 0 15px color-mix(in srgb, var(--tone) 60%, transparent);
    opacity: 0.8;
  }

  .mobile-flow-step {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(105, 139, 184, 0.38);
    border-left: 4px solid var(--tone);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(13, 31, 60, 0.94), rgba(7, 18, 36, 0.94));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    color: var(--tone);
    padding: 14px 12px;
  }

  .mobile-flow-step::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 27px;
    width: 10px;
    height: 10px;
    border: 2px solid #eaf3ff;
    border-radius: 999px;
    background: var(--tone);
    box-shadow: 0 0 12px var(--tone);
  }

  .mobile-flow-connector {
    position: absolute;
    left: -26px;
    bottom: -20px;
    color: var(--tone);
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-step-heading {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .mobile-step-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tone) 12%, transparent);
  }

  .mobile-step-icon svg {
    width: 23px;
    height: 23px;
  }

  .mobile-step-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-stage-label {
    color: var(--tone);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-step-copy strong {
    min-width: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .mobile-flow-step > p {
    margin: 10px 0 0 50px;
    color: #cdd9ea;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .mobile-flow-step .score-badge {
    min-width: 40px;
    min-height: 30px;
    border-radius: 7px;
    font-size: 13px;
  }

  .mobile-step-move {
    display: block;
    margin: 10px 0 0 50px;
    font-size: 19px;
    font-weight: 850;
  }

  .mobile-headline-context {
    display: grid;
    gap: 3px;
    margin: 10px 0 0 50px;
    border-top: 1px solid rgba(105, 139, 184, 0.28);
    padding-top: 9px;
  }

  .mobile-headline-context span {
    color: var(--tone);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-headline-context strong {
    color: #d8e2f1;
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-forecast-details {
    margin: 12px 0 0 50px;
    border-top: 1px solid rgba(105, 139, 184, 0.3);
    color: #d8e2f1;
    padding-top: 9px;
  }

  .mobile-forecast-details summary {
    color: var(--tone);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-input-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
  }

  .mobile-input-list span {
    max-width: 100%;
    border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
    border-radius: 6px;
    background: color-mix(in srgb, var(--tone) 9%, transparent);
    color: #dce7f6;
    padding: 5px 7px;
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .mobile-forecast-details p {
    margin: 8px 0 0;
    color: #8fa3bd;
    font-size: 10px;
    line-height: 1.4;
  }

  .mobile-event-card,
  .mobile-timeline-row,
  .mobile-driver-route,
  .mobile-pressure-row,
  .mobile-forecast-row,
  .mobile-impact-row {
    border: 1px solid rgba(105, 139, 184, 0.36);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(13, 31, 60, 0.9), rgba(7, 18, 36, 0.9));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  }

  .mobile-event-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    border-left: 4px solid var(--tf-negative);
    padding: 14px 12px;
  }

  .mobile-event-card .event-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tf-negative);
    border-radius: 999px;
    color: var(--tf-negative);
  }

  .mobile-event-card .event-icon svg {
    width: 24px;
    height: 24px;
  }

  .mobile-event-card > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .mobile-event-card small {
    color: var(--tf-negative);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .mobile-event-card strong {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .mobile-event-card em {
    color: #91a5bf;
    font-size: 10px;
    font-style: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .mobile-timeline-list,
  .mobile-driver-list,
  .mobile-pressure-list,
  .mobile-forecast-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
  }

  .mobile-timeline-row,
  .mobile-driver-route {
    color: var(--tone);
    padding: 14px 12px 4px;
  }

  .mobile-row-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
  }

  .mobile-row-heading .row-icon,
  .mobile-row-heading .driver-icon {
    width: 42px;
    height: 42px;
  }

  .mobile-row-heading > span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mobile-row-heading strong {
    color: #ffffff;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .mobile-row-heading small {
    color: #9fb0c8;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .mobile-timeline-stages li,
  .mobile-route-stops li {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(105, 139, 184, 0.22);
    color: var(--tone);
    padding: 11px 0;
  }

  .mobile-timeline-stages li::before,
  .mobile-route-stops li::before {
    content: "";
    position: absolute;
    left: -13px;
    width: 4px;
    height: 24px;
    border-radius: 999px;
    background: var(--tone);
  }

  .mobile-stage-time,
  .mobile-route-stops li > span {
    color: var(--tone);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .mobile-stage-name {
    color: #cbd7e8;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .mobile-timeline-stages li > strong,
  .mobile-route-stops li > strong {
    max-width: 118px;
    color: #f3f7ff;
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .mobile-timeline-stages li > small,
  .mobile-route-stops li > small {
    grid-column: 2 / 4;
    color: #7f91aa;
    font-size: 9px;
    text-align: right;
  }

  .mobile-portfolio-summary {
    margin-top: 22px;
    border-top: 1px solid rgba(40, 201, 255, 0.5);
    padding-top: 18px;
  }

  .mobile-portfolio-summary > header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .mobile-portfolio-summary h2,
  .mobile-weather-section h2 {
    margin: 0;
    color: #f4f7ff;
    font-size: 20px;
  }

  .mobile-impact-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: var(--tone);
    padding: 10px;
  }

  .mobile-impact-row .portfolio-icon {
    width: 38px;
    height: 38px;
  }

  .mobile-impact-row > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-impact-row strong {
    color: #ffffff;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .mobile-impact-row small {
    color: #91a3bb;
    font-size: 9px;
    overflow-wrap: anywhere;
  }

  .mobile-impact-value {
    max-width: 104px;
    color: var(--tone);
    font-size: 16px;
    font-weight: 850;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .mobile-impact-value small {
    display: block;
    margin-top: 3px;
  }

  .market-dashboard--mobile .portfolio-button {
    min-height: 48px;
    margin-top: 14px;
    border-radius: 8px;
    font-size: 15px;
  }

  .market-dashboard--mobile .portfolio-button svg {
    width: 20px;
    height: 20px;
  }

  .market-dashboard--mobile .transit-note {
    min-height: 0;
    margin-top: 16px;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  .market-dashboard--mobile .note-left {
    align-items: flex-start;
    gap: 10px;
  }

  .market-dashboard--mobile .note-left svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
  }

  .mobile-weather-section {
    margin-top: 22px;
  }

  .mobile-pressure-row,
  .mobile-forecast-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--tone);
    color: var(--tone);
    padding: 12px 10px;
  }

  .mobile-pressure-row .node-icon,
  .mobile-forecast-row .forecast-icon {
    grid-area: auto;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .mobile-pressure-row > span:nth-child(2),
  .mobile-forecast-row > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-pressure-row > span:nth-child(2) small,
  .mobile-forecast-row > span:nth-child(2) small {
    color: var(--tone);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-pressure-row > span:nth-child(2) strong,
  .mobile-forecast-row > span:nth-child(2) strong {
    color: #ffffff;
    font-size: 15px;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .mobile-pressure-row em,
  .mobile-forecast-row em {
    color: #9fb0c6;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .mobile-pressure-value,
  .mobile-forecast-value {
    max-width: 96px;
    font-size: 19px;
    font-weight: 850;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .mobile-pressure-value small,
  .mobile-forecast-value small {
    display: block;
    margin-top: 4px;
    color: #8fa1b8;
    font-size: 8px;
    font-weight: 700;
  }

  .market-dashboard--mobile .main-read {
    min-height: 0;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 22px;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.45;
  }

  .market-dashboard--mobile .main-read svg {
    width: 20px;
    height: 20px;
  }

  .market-dashboard--mobile .main-read strong {
    white-space: normal;
  }

  .market-dashboard--mobile .data-note {
    display: grid;
    gap: 7px;
    margin: 14px 2px 0;
    font-size: 10px;
    line-height: 1.45;
  }

  .market-dashboard--mobile .best-for {
    min-height: 0;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  .market-dashboard--mobile .best-for svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .testhome-status-bar::after {
    animation: none;
  }

  body[data-scroll-reveal="ready"] .scroll-reveal,
  body[data-scroll-reveal="ready"] .scroll-reveal.is-revealed,
  body[data-scroll-reveal="ready"] .flow-ribbon-layer.scroll-reveal,
  body[data-scroll-reveal="ready"] .flow-ribbon-layer.scroll-reveal.is-revealed,
  body[data-scroll-reveal="ready"] .transit-panel.scroll-reveal,
  body[data-scroll-reveal="ready"] .transit-panel.scroll-reveal.is-revealed,
  body[data-scroll-reveal="ready"] .weather-panel.scroll-reveal,
  body[data-scroll-reveal="ready"] .weather-panel.scroll-reveal.is-revealed,
  body[data-scroll-reveal="ready"] .scroll-reveal.reveal-no-motion {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  body[data-scroll-reveal="ready"] .pressure-node.scroll-reveal,
  body[data-scroll-reveal="ready"] .pressure-node.scroll-reveal.is-revealed {
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%);
    transition: none;
  }
}
