:root {
  color-scheme: light;
  --ink: #333;
  --muted: #6f6f6f;
  --quiet: #8a8a8a;
  --line: #c9c9c9;
  --panel: #fff;
  --panel-2: #f7f7f7;
  --blue: #2b78d4;
  --cyan: #35c9c3;
  --gray: #a7a7a7;
  --green: #007a4d;
  --amber: #d69a1b;
  --red: #b3262d;
  --chart-gutter: 0px;
  --content-max: 1560px;
  --page-gutter: 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  overflow-x: hidden;
}

.js .seo-fallback {
  display: none;
}

.seo-fallback,
.seo-page {
  width: min(var(--content-max), calc(100vw - var(--page-gutter)));
  margin: 0 auto;
  padding: 48px 0 72px;
  color: var(--ink);
}

.seo-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(var(--content-max), calc(100vw - var(--page-gutter)));
  margin: 0 auto;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.seo-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.seo-nav > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 950;
}

.seo-nav > a:first-child::before {
  width: 42px;
  height: 28px;
  content: "";
  background: url("/assets/favicon.svg") center / contain no-repeat;
}

.seo-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.seo-hero,
.seo-article-header {
  max-width: 980px;
  padding: 36px 0 42px;
}

.seo-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.seo-hero h1,
.seo-article-header h1 {
  margin: 0 0 20px;
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  text-decoration: none;
}

.seo-article-header h1 {
  font-size: clamp(38px, 4.8vw, 68px);
}

.seo-hero p,
.seo-article-header p,
.seo-content p,
.seo-card p,
.seo-faq p,
.seo-page li {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
}

.seo-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
}

.seo-button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0 44px;
}

.seo-card,
.seo-content,
.seo-disclaimer,
.seo-faq {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-card {
  padding: 26px;
}

.seo-card h2,
.seo-content h2,
.seo-faq h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.03;
  letter-spacing: 0;
}

.seo-card a,
.seo-content a,
.seo-breadcrumb a {
  color: var(--blue);
  font-weight: 950;
}

.seo-content,
.seo-faq {
  padding: 32px;
  margin: 22px 0;
}

.seo-content ul {
  margin: 18px 0 0;
  padding-left: 24px;
}

.seo-disclaimer {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 18px;
}

.seo-breadcrumb {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.seo-footer {
  width: min(var(--content-max), calc(100vw - var(--page-gutter)));
  margin: 48px auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.seo-footer a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.seo-footer-disclaimer {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.seo-footer button,
.footer-link-button,
.legal-inline-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.seo-footer button:hover,
.footer-link-button:hover,
.legal-inline-button:hover {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .seo-fallback,
  .seo-page {
    width: min(100vw - 40px, 720px);
    padding: 42px 0;
  }

  .seo-nav {
    width: min(100vw - 40px, 720px);
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }

  .seo-nav-links {
    justify-content: flex-end;
    margin-left: auto;
  }

  .seo-nav-links a:not(:last-child) {
    display: none;
  }

  .seo-article-header {
    padding: 28px 0 34px;
  }

  .seo-article-header h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .seo-content-grid {
    grid-template-columns: 1fr;
  }

  .seo-card,
  .seo-content,
  .seo-faq {
    padding: 22px;
  }
}

#app {
  min-height: 100vh;
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  overflow-x: clip;
}

.landing-page section[id] {
  scroll-margin-top: 92px;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(28px, calc((100vw - var(--content-max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.landing-brand b {
  font-size: 19px;
  font-weight: 950;
}

.landing-mark {
  width: 42px;
  height: 28px;
  display: block;
  color: var(--ink);
}

.landing-guide-logo {
  width: 42px;
  height: 28px;
  object-fit: contain;
}

.guide-hub-page .guide-hub-library {
  flex: 1;
  display: block;
  padding-top: 64px;
}

.guide-hub-page .landing-section-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.guide-hub-page .landing-section-copy {
  max-width: 880px;
  margin-bottom: 34px;
}

.guide-hub-page .landing-copy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-hub-page .landing-guide-card {
  min-height: 152px;
  padding: 22px;
}

.landing-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.landing-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.landing-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.landing-nav a:hover {
  color: var(--blue);
}

.landing-nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}

.landing-hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 86px max(28px, calc((100vw - var(--content-max)) / 2)) 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.landing-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0.08) 68%, rgba(255, 255, 255, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.landing-hero-copy {
  position: relative;
  z-index: 3;
  width: min(640px, 100%);
  padding: 42px 0;
}

.landing-eyebrow,
.landing-section-copy span,
.landing-band span {
  display: block;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
  text-decoration: none;
}

.landing-hero h1 span {
  color: var(--blue);
}

.landing-lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: #4d4d4d;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.3;
}

.landing-lede strong {
  color: var(--ink);
  font-weight: 950;
}

.landing-hero-original {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  min-height: auto;
  padding-top: 58px;
  padding-bottom: 62px;
  text-align: center;
}

.landing-hero-original:after {
  display: none;
}

.landing-hero-original .landing-hero-copy {
  width: min(980px, 100%);
  justify-self: center;
  padding: 16px 0 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.landing-hero-original .landing-lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.landing-hero-original .landing-actions {
  justify-content: center;
}

.landing-hero-media {
  width: min(980px, 100%);
  justify-self: center;
  height: auto;
  overflow: visible;
  border-bottom: 0;
  background: transparent;
}

.landing-hero-media video {
  display: none;
}

.landing-proof-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.landing-proof-row span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d3dce8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.landing-proof-row b {
  color: var(--ink);
  font-size: 15px;
}

.landing-index-coverage-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #617084;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.landing-index-coverage-compact span {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.landing-index-coverage-compact span + span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.landing-index-coverage-compact b {
  color: var(--blue);
  font-size: 16px;
  font-weight: 950;
}

.landing-index-coverage:not(.landing-index-coverage-compact) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  max-width: 410px;
}

.landing-index-coverage:not(.landing-index-coverage-compact) span {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #c9d8ed;
  border-radius: 6px;
  background: #f6f9fe;
  color: #526171;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.landing-index-coverage:not(.landing-index-coverage-compact) b {
  display: block;
  color: var(--blue);
  font-size: 23px;
  line-height: 1;
  margin-bottom: 4px;
}

.landing-index-coverage:not(.landing-index-coverage-compact) small {
  grid-column: 1 / -1;
  color: #697587;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.landing-primary,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.landing-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.landing-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 1px solid var(--line);
}

.landing-visual {
  position: absolute;
  right: max(22px, calc((100vw - var(--content-max)) / 2));
  bottom: 82px;
  width: min(1080px, 64vw);
  height: min(480px, 56vh);
  opacity: 0.98;
  z-index: 1;
}

.landing-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.landing-grid {
  stroke: #d6d6d6;
  stroke-width: 1;
}

.landing-window {
  fill: rgba(255, 255, 255, 0.96);
  stroke: #c8c8c8;
  stroke-width: 1;
}

.landing-window-top {
  fill: #f7f7f7;
}

.landing-dot {
  fill: #c8c8c8;
}

.landing-area {
  fill: #385b95;
  opacity: 0.92;
}

.landing-fan {
  fill: url(#landingFan);
  animation: landingFanBreathe 4.8s ease-in-out infinite;
  transform-origin: 726px 150px;
}

.landing-future {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: landingDrawLine 4.8s ease-in-out infinite;
}

.landing-future-positive {
  stroke: #006f49;
}

.landing-future-negative {
  stroke: #b3262d;
  opacity: 0.72;
  animation-delay: 0.2s;
}

.landing-pattern {
  fill: none;
  stroke: #9fc4f0;
  stroke-width: 8;
  stroke-dasharray: 13 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dashoffset: 0;
  animation: landingPatternMarch 2.8s linear infinite;
}

.landing-scan {
  fill: none;
  stroke: #111;
  stroke-width: 5;
  stroke-dasharray: 18 900;
  stroke-linecap: round;
  opacity: 0.68;
  animation: landingScan 3.4s ease-in-out infinite;
}

.landing-boundary {
  stroke: #333;
  stroke-width: 3;
  stroke-dasharray: 8 9;
  opacity: 0.72;
}

.landing-visual text {
  fill: #5d5d5d;
  font-size: 20px;
  font-weight: 900;
}

.landing-callout {
  fill: #0d6f49;
}

.landing-callout-text {
  fill: #fff !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

.landing-pulse {
  fill: #2b78d4;
  stroke: #fff;
  stroke-width: 5;
  animation: landingPulse 2.2s ease-in-out infinite;
}

.landing-visual-readout {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.landing-visual-readout b {
  color: #007a4d;
}

.landing-band,
.landing-steps,
.landing-showcase,
.landing-copy-section,
.landing-faq-section,
.landing-evidence,
.landing-mode-showcase,
.landing-final {
  width: min(calc(100% - var(--page-gutter)), var(--content-max));
  margin: 0 auto;
}

.landing-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.landing-showcase-copy {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(transparent 31px, rgba(43, 120, 212, 0.13) 32px),
    linear-gradient(90deg, transparent 31px, rgba(43, 120, 212, 0.13) 32px);
  background-size: 32px 32px;
}

.landing-showcase-copy span {
  display: block;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-showcase-copy h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 0.96;
}

.landing-showcase-copy p {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.28;
}

.landing-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-showcase-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.landing-showcase-grid article:nth-child(2) {
  border-color: #9fc4f0;
  background: #f7fbff;
}

.landing-showcase-grid article:nth-child(3) {
  background: #fbfbfb;
}

.landing-showcase-grid strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 25px;
  line-height: 1.02;
}

.landing-showcase-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.landing-original-grid {
  border-top: 1px solid var(--line);
}

.landing-media-section {
  width: min(var(--content-max), calc(100vw - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 30px 0 86px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.landing-media-section figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.landing-media-section img,
.landing-media-section video {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  background: #fff;
}

.landing-media-section img.landing-outcome-image {
  display: block;
  object-fit: contain;
  object-position: center;
}

.landing-media-section figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.landing-product-shot {
  min-height: 260px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.landing-hero-comparison {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.landing-hero-chart {
  position: relative;
  min-height: clamp(360px, 36vw, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.hero-result-head {
  position: absolute;
  left: 28px;
  top: 24px;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 4px;
  color: var(--ink);
  text-align: left;
}

.hero-result-head strong {
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1;
  font-weight: 950;
}

.hero-result-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.hero-result-head em {
  color: var(--blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.hero-result-tools {
  position: absolute;
  left: 28px;
  top: 102px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-result-tools span,
.hero-result-tools i {
  display: inline-grid;
  place-items: center;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 900;
}

.hero-result-tools span {
  min-width: 92px;
}

.hero-result-tools i {
  width: 34px;
}

.hero-result-tools i:before {
  display: none;
  content: none;
}

.hero-result-tools .icon-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #333;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-hero-chart svg {
  position: absolute;
  inset: 94px 24px 26px;
  width: calc(100% - 48px);
  height: calc(100% - 120px);
}

.hero-grid {
  fill: none;
  stroke: #d6d6d6;
  stroke-width: 1.5;
}

.hero-area {
  fill: #3f6198;
}

.hero-area-mid {
  fill: rgba(63, 97, 152, 0.38);
}

.hero-search-line {
  fill: none;
  stroke: #111;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 8;
}

.hero-divider {
  fill: none;
  stroke: #656565;
  stroke-width: 3;
  stroke-dasharray: 8 8;
}

.hero-future-band {
  fill: #9fc4f0;
  opacity: 0.35;
}

.hero-future-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-pattern-line {
  fill: none;
  stroke: #7fb1eb;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 8;
}

.hero-actual-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-fan-stripes {
  fill: url(#heroFanStripes);
}

.hero-callout {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 950;
}

.hero-callout-left {
  left: 24px;
  top: 70px;
  border: 1px solid #b8cfea;
  background: #eef6ff;
  color: var(--blue);
}

.hero-callout-right {
  right: 28px;
  top: 70px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.landing-pattern-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing-pattern-row span,
.shot-card-grid span {
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.landing-pattern-row span {
  min-height: 102px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.landing-pattern-row b,
.shot-card-grid b {
  font-size: 16px;
  line-height: 1.05;
}

.landing-pattern-row .pattern-card-preview,
.shot-card-grid .pattern-card-preview {
  width: 100%;
  height: 48px;
}

.landing-pattern-row .pattern-card-preview path,
.shot-card-grid .pattern-card-preview path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-hero-shot {
  min-height: 410px;
  padding: 20px;
  align-content: stretch;
}

.shot-top {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.shot-top span:first-child {
  color: var(--blue);
}

.shot-chart {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent 24%, rgba(0, 0, 0, 0.12) 24.4%, transparent 24.8%),
    linear-gradient(to bottom, transparent 49%, rgba(0, 0, 0, 0.12) 49.4%, transparent 49.8%),
    linear-gradient(to bottom, transparent 74%, rgba(0, 0, 0, 0.12) 74.4%, transparent 74.8%);
}

.shot-chart svg {
  position: absolute;
  inset: 30px 22px 24px;
  width: calc(100% - 44px);
  height: calc(100% - 54px);
}

.shot-chart .area {
  fill: #3f6198;
}

.shot-chart .pattern-line {
  fill: none;
  stroke: #9fc4f0;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 5;
}

.shot-chart i {
  position: absolute;
  left: var(--x);
  bottom: 24px;
  width: 2px;
  height: var(--h);
  background: rgba(159, 196, 240, 0.35);
}

.shot-label {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  background: #5f6874;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.shot-result-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shot-result-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shot-result-row b {
  display: block;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.shot-result-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.landing-media-section .landing-product-shot {
  min-height: 350px;
  aspect-ratio: auto;
}

.landing-feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature-strip article {
  min-height: 188px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
}

.landing-feature-strip .landing-icon {
  margin-bottom: 0;
}

.landing-feature-strip strong {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
}

.landing-feature-strip p {
  font-size: 16px;
}

.landing-method-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-method-shot {
  min-height: 350px;
  aspect-ratio: auto;
  overflow: visible;
}

.shot-form {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 8px 14px;
  align-content: start;
  min-width: 0;
}

.shot-form b {
  grid-column: 1 / -1;
  font-size: 22px;
}

.shot-form span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.shot-form strong {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shot-form small {
  color: var(--muted);
  font-size: 0.8em;
}

.shot-mini-chart {
  min-height: 170px;
  align-self: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.shot-mini-chart svg {
  display: block;
  width: 100%;
  height: 170px;
}

.shot-mini-chart path {
  fill: none;
}

.shot-mini-grid {
  stroke: #d8d8d8;
  stroke-width: 1.2;
}

.shot-mini-area {
  fill: #3f6198 !important;
}

.shot-mini-line {
  fill: none !important;
  stroke: #2f5f9b;
  stroke-width: 1.25;
  opacity: 0.9;
}

.shot-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.shot-card-grid span {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.05;
}

.shot-card-grid span:nth-child(3) {
  border-color: var(--blue);
  background: #f4f8ff;
}

.shot-duration {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shot-duration b {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.shot-duration i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9fc4f0 0 42%, #e8f1ff 42%);
}

.landing-outcome-shot {
  overflow: hidden;
  padding: 14px;
  align-content: center;
}

.landing-outcome-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  min-height: 0;
  object-fit: contain;
}

.landing-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: end;
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--line);
}

.landing-band h2,
.landing-section-copy h2,
.landing-final h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-band p,
.landing-section-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.34;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 36px 0 80px;
}

.landing-steps article,
.landing-mode-list article,
.landing-evidence-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.04);
}

.landing-steps article {
  min-height: 220px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.landing-steps article:after {
  display: none;
}

.landing-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid #cfe0f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
}

.landing-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-steps span,
.landing-mode-list b,
.landing-evidence-grid b {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-steps h3 {
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1.03;
}

.landing-steps p,
.landing-mode-list p,
.landing-evidence-grid span,
.landing-copy-grid p,
.landing-faq-list p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}

.landing-copy-section,
.landing-faq-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 32px;
  align-items: start;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.landing-copy-grid,
.landing-faq-list {
  display: grid;
  gap: 12px;
}

.landing-copy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-copy-grid article,
.landing-faq-list article {
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.landing-copy-grid article:nth-child(2n),
.landing-faq-list article:nth-child(2n) {
  background: #f8fbff;
  border-color: #d5e5f8;
}

.landing-copy-grid h3,
.landing-faq-list h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.04;
}

.landing-guide-card {
  display: block;
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.landing-guide-card:nth-child(2n) {
  background: #f8fbff;
  border-color: #d5e5f8;
}

.landing-guide-card:hover,
.landing-guide-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(43, 120, 212, 0.12);
  transform: translateY(-2px);
}

.landing-guide-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-guide-card h3 {
  margin: 14px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.04;
}

.landing-guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}

.landing-evidence,
.landing-mode-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.landing-section-copy {
  position: sticky;
  top: 102px;
}

.landing-section-copy p {
  margin-top: 22px;
}

.landing-evidence-grid {
  display: grid;
  gap: 12px;
}

.landing-evidence-grid div {
  padding: 22px;
}

.landing-evidence-grid strong {
  display: block;
  margin: 16px 0 6px;
  color: #007a4d;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.9;
}

.landing-evidence-grid div:nth-child(2) strong {
  color: var(--blue);
}

.landing-evidence-grid div:nth-child(3) strong {
  color: var(--ink);
}

.landing-bar {
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  background: #ddd;
}

.landing-bar-green {
  background: linear-gradient(90deg, #f08b8f 0 44%, #24ba72 44% 100%);
}

.landing-bar-blue {
  background: linear-gradient(90deg, #b8cfea 0%, #2b78d4 100%);
}

.landing-bar-gray {
  background: linear-gradient(90deg, #2b78d4 0 54%, #a7a7a7 54% 91%, #e6e6e6 91% 100%);
}

.landing-mode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-mode-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  column-gap: 18px;
  row-gap: 22px;
  min-height: 168px;
  padding: 22px;
}

.landing-mode-list article .landing-icon {
  margin-bottom: 0;
}

.landing-mode-list b {
  display: block;
  min-width: 0;
}

.landing-mode-list p {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 18px;
}

.landing-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 76px 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.landing-final .landing-primary {
  min-width: 180px;
}

@media (max-width: 1320px) {
  .landing-hero {
    min-height: calc(100vh - 72px);
    align-items: start;
    padding-top: 84px;
    padding-bottom: 96px;
  }

  .landing-hero:after {
    display: none;
  }

  .landing-hero-copy {
    width: min(600px, 48vw);
    padding: 0;
  }

  .landing-hero h1 {
    max-width: 590px;
    font-size: clamp(46px, 6.1vw, 78px);
  }

  .landing-lede {
    max-width: 560px;
    font-size: clamp(18px, 1.8vw, 24px);
  }

  .landing-visual {
    left: auto;
    right: max(28px, calc((100vw - var(--content-max)) / 2));
    top: 148px;
    bottom: auto;
    width: min(620px, 47vw);
    height: 390px;
  }

  .landing-hero-original {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    text-align: center;
  }

  .landing-hero-original .landing-hero-copy {
    width: min(900px, 100%);
    justify-self: center;
  }

  .landing-hero-original .landing-lede,
  .landing-hero-original h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-media-section {
    gap: 14px;
  }

  .landing-method-shot {
    padding: 14px;
  }

  .shot-form {
    grid-template-columns: 1fr;
  }

  .shot-form b {
    font-size: 20px;
  }

  .shot-form strong {
    font-size: 16px;
  }
}

@keyframes landingDrawLine {
  0%, 20% {
    stroke-dashoffset: 420;
  }
  45%, 78% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -420;
  }
}

@keyframes landingPatternMarch {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -50;
  }
}

@keyframes landingScan {
  0% {
    stroke-dashoffset: 900;
    opacity: 0;
  }
  12%, 70% {
    opacity: 0.68;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes landingPulse {
  0%, 100% {
    r: 7;
    opacity: 0.8;
  }
  50% {
    r: 13;
    opacity: 1;
  }
}

@keyframes landingFanBreathe {
  0%, 100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .landing-nav {
    grid-template-columns: auto 1fr;
    height: 64px;
    gap: 16px;
    padding: 0 20px;
  }

  .landing-nav nav {
    justify-content: flex-end;
    gap: 12px;
    overflow-x: auto;
  }

  .landing-header-actions {
    gap: 14px;
  }

  .landing-nav a {
    font-size: 13px;
  }

  .landing-hero,
  .landing-hero-original {
    min-height: auto;
    padding: 44px 20px 48px;
  }

  .landing-hero:after {
    display: none;
  }

  .landing-hero-copy {
    width: 100%;
    padding: 0;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 10vw, 72px);
  }

  .landing-lede {
    max-width: 720px;
    margin: 18px auto 0;
    font-size: clamp(18px, 3.4vw, 24px);
  }

  .landing-actions {
    justify-content: center;
    margin-top: 24px;
  }

  .landing-visual {
    left: 28px;
    right: 28px;
    bottom: 92px;
    width: auto;
    height: 330px;
  }

  .landing-hero-original {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .landing-hero-media {
    width: 100%;
  }

  .landing-hero-comparison {
    padding: 10px;
  }

  .landing-hero-chart {
    min-height: clamp(320px, 56vw, 420px);
  }

  .landing-media-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .landing-pattern-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-pattern-row span {
    min-height: 96px;
    padding: 12px;
  }

  .landing-feature-strip {
    grid-template-columns: 1fr;
  }

  .landing-method-section {
    grid-template-columns: 1fr;
    padding-bottom: 54px;
  }

  .landing-feature-strip article {
    min-height: 0;
    padding: 16px;
  }

  .landing-band,
  .landing-showcase,
  .landing-copy-section,
  .landing-faq-section,
  .landing-evidence,
  .landing-mode-showcase,
  .landing-final {
    grid-template-columns: 1fr;
  }

  .landing-band,
  .landing-showcase,
  .landing-copy-section,
  .landing-faq-section,
  .landing-evidence,
  .landing-mode-showcase,
  .landing-final,
  .landing-media-section {
    width: min(var(--content-max), calc(100vw - 40px));
  }

  .landing-showcase {
    padding: 44px 0;
  }

  .landing-showcase-copy h2,
  .landing-band h2,
  .landing-section-copy h2,
  .landing-final h2 {
    font-size: clamp(34px, 7vw, 54px);
  }

  .landing-showcase-copy p,
  .landing-band p,
  .landing-section-copy p {
    font-size: clamp(17px, 3.4vw, 22px);
  }

  .landing-section-copy {
    position: static;
  }

  .landing-steps {
    grid-template-columns: 1fr;
  }

  .landing-copy-grid {
    grid-template-columns: 1fr;
  }

  .landing-showcase-copy {
    min-height: auto;
  }

  .landing-showcase-grid {
    grid-template-columns: 1fr;
  }

  .landing-showcase-grid article,
  .landing-showcase-grid article:nth-child(2),
  .landing-showcase-grid article:nth-child(3) {
    min-height: 170px;
    transform: none;
  }

  .landing-method-shot {
    min-height: 0;
    width: 100%;
    min-width: 0;
    aspect-ratio: auto;
  }

  .landing-media-section .landing-product-shot {
    width: 100%;
    min-width: 0;
    aspect-ratio: auto;
  }

  .shot-form,
  .shot-card-grid,
  .shot-duration,
  .shot-mini-chart,
  .shot-mini-chart svg {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 20px;
  }

  .landing-nav {
    padding: 0 16px;
  }

  .landing-page section[id] {
    scroll-margin-top: 76px;
  }

  .landing-nav nav {
    gap: 8px;
  }

  .landing-header-actions {
    gap: 10px;
  }

  .landing-index-coverage-compact {
    gap: 7px;
    font-size: 9px;
  }

  .landing-index-coverage-compact b {
    font-size: 13px;
  }

  .landing-index-coverage-compact span + span {
    padding-left: 7px;
  }

  .landing-brand b {
    display: none;
  }

  .landing-nav nav a:not(.landing-nav-cta) {
    display: none;
  }

  .landing-nav-cta {
    padding: 8px 12px;
  }

  .landing-hero,
  .landing-hero-original {
    padding: 34px 16px 38px;
  }

  .landing-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .landing-lede {
    font-size: 17px;
  }

  .landing-hero-chart {
    min-height: 300px;
  }

  .hero-result-head {
    left: 16px;
    top: 16px;
  }

  .hero-result-head strong {
    font-size: 18px;
  }

  .hero-result-head span,
  .hero-result-head em {
    font-size: 12px;
  }

  .hero-result-tools {
    left: 16px;
    top: 82px;
    gap: 7px;
  }

  .landing-hero-chart svg {
    inset: 82px 10px 14px;
    width: calc(100% - 20px);
    height: calc(100% - 96px);
  }

  .landing-visual {
    left: 16px;
    right: 16px;
    height: 280px;
  }

  .landing-pattern-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .landing-pattern-row span {
    min-height: 88px;
    padding: 10px;
  }

  .landing-pattern-row b,
  .shot-card-grid b {
    font-size: 13px;
  }

  .landing-pattern-row .pattern-card-preview,
  .shot-card-grid .pattern-card-preview {
    height: 38px;
  }

  .landing-showcase,
  .landing-band,
  .landing-media-section,
  .landing-method-section,
  .landing-copy-section,
  .landing-faq-section,
  .landing-evidence,
  .landing-mode-showcase,
  .landing-final {
    width: calc(100vw - 32px);
  }

  .landing-showcase-copy {
    min-height: 0;
    padding: 22px;
  }

  .landing-showcase-copy h2,
  .landing-band h2,
  .landing-section-copy h2,
  .landing-final h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .landing-band {
    gap: 18px;
    padding: 42px 0 24px;
  }

  .landing-copy-section,
  .landing-faq-section {
    gap: 18px;
    padding: 42px 0;
  }

  .landing-copy-grid article,
  .landing-faq-list article {
    min-height: 0;
    padding: 18px;
  }

  .landing-copy-grid h3,
  .landing-faq-list h3 {
    font-size: 22px;
  }

  .landing-method-shot {
    padding: 12px;
    min-height: 0;
  }

  .shot-form {
    grid-template-columns: 1fr;
  }

  .shot-mini-chart,
  .shot-mini-chart svg {
    min-height: 124px;
    height: 124px;
  }

  .shot-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-card-grid span {
    min-height: 82px;
  }

  .landing-outcome-image {
    max-height: 240px;
    min-height: 0;
  }

  .landing-visual-readout {
    left: 0;
    right: 0;
    bottom: -38px;
    grid-template-columns: 1fr;
    border-radius: 8px;
    text-align: center;
  }

  .landing-actions,
  .landing-final {
    align-items: stretch;
    padding: 46px 0;
    gap: 18px;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .landing-primary,
  .landing-secondary,
  .landing-final .landing-primary {
    width: 100%;
  }

  .landing-mode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .landing-mode-list article {
    min-height: 132px;
    padding: 16px;
    column-gap: 14px;
    row-gap: 14px;
  }

  .landing-mode-list p {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.32;
  }

  .landing-steps .landing-icon,
  .landing-evidence-grid .landing-icon {
    margin-bottom: 14px;
  }

  .landing-steps h3 {
    font-size: 24px;
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 160px 1fr auto 320px;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.96);
  position: relative;
  z-index: 20;
}

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

.control-rail {
  min-width: 0;
  width: min(calc(100% - var(--page-gutter)), var(--content-max));
  margin: 0 auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.surface {
  width: min(calc(100% - var(--page-gutter)), var(--content-max));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.mark {
  width: 42px;
  height: 28px;
  display: block;
  color: var(--ink);
  flex: 0 0 auto;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 720px;
  justify-self: center;
  width: 100%;
}

.mode-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  height: 42px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mode-tab.active {
  border-color: var(--blue);
  color: white;
  background: #12325f;
}

.onboarding-help {
  justify-self: end;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  display: grid;
  place-items: center;
}

.onboarding-help:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.status-pill {
  justify-self: end;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  min-width: 240px;
  text-align: center;
}

.auth-slot {
  position: relative;
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  width: 250px;
  z-index: 20;
}

.google-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.google-entry:hover {
  border-color: #333;
}

.google-entry:disabled {
  opacity: 0.6;
  cursor: wait;
}

.google-g {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #4285f4;
  font-weight: 950;
}

.google-mark {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 286px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  z-index: 30;
}

.auth-popover b {
  display: block;
  font-size: 15px;
}

.auth-popover p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.auth-popover .auth-error,
.auth-inline-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
}

.auth-inline-error {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, #fff);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  z-index: 25;
}

.auth-popover div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.auth-popover .auth-actions {
  grid-template-columns: 1fr auto;
}

.auth-popover button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  padding: 0 12px;
  cursor: pointer;
}

.auth-popover button:first-child {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.auth-link-button {
  margin-top: 8px;
  width: 100%;
  background: transparent !important;
  border-color: transparent !important;
  color: var(--muted) !important;
}

.auth-link-button:hover {
  color: var(--ink) !important;
  text-decoration: underline;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

.legal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  width: min(calc(100% - var(--page-gutter)), var(--content-max));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.landing-page > .legal-footer,
.app-shell > .legal-footer {
  margin-top: auto;
}

.footer-main,
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-main b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.footer-main span,
.legal-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  justify-content: flex-end;
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.legal-footer a:hover,
.footer-link-button:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-link-button {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.legal-footer p {
  grid-column: 1 / -1;
  font-size: 12px;
}

.legal-page {
  width: min(760px, calc(100% - 48px));
  margin: 48px auto;
  color: var(--ink);
}

.legal-page a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page h1 {
  color: var(--blue);
  font-size: 34px;
  margin: 28px 0 18px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-page h2 {
  color: var(--ink);
  font-size: 21px;
  margin: 30px 0 10px;
}

.legal-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.legal-page ul {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-page li {
  margin: 0 0 8px;
}

.legal-page strong {
  color: var(--ink);
}

.legal-page .legal-updated {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-inline-button {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 15px;
}

.cookie-consent {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(720px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.cookie-consent b {
  display: block;
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-consent button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.cookie-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.cookie-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  padding: 0;
}

.text-button:hover {
  text-decoration: underline;
}

.control-rail {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: #0b1118;
  padding: 24px;
  width: min(calc(100% - var(--page-gutter)), var(--content-max));
  margin: 0 auto;
}

.layout.mode-draw .control-rail {
  width: min(calc(100% - var(--page-gutter)), var(--content-max));
}

.surface {
  padding: 24px 0;
  display: grid;
  gap: 22px;
  align-content: start;
  width: min(calc(100% - var(--page-gutter)), var(--content-max));
  margin: 0 auto;
}

.mode-kicker {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-size: 32px;
  line-height: 1.08;
  margin: 8px 0 10px;
  letter-spacing: 0;
}

.mode-copy {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 24px;
}

.feeling-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.feeling {
  border: 1px solid #25475d;
  color: #bceeff;
  background: #0b2630;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.field-group {
  display: grid;
  gap: 14px;
}

.pattern-fields {
  gap: 18px;
}

.pattern-controls-row {
  display: grid;
  grid-template-columns: minmax(360px, 0.62fr) minmax(380px, 0.38fr);
  align-items: stretch;
  gap: 18px;
}

.pattern-action-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pattern-action-row .search-button {
  width: 100%;
  height: 58px;
  margin-top: 0;
  border-radius: 10px;
}

.pattern-action-row .search-action {
  width: 100%;
  height: 58px;
  margin-top: 0;
}

.pattern-action-row .search-action .search-button {
  height: 100%;
  border-radius: 0;
}

.pattern-action-row .active-filter-summary {
  order: -1;
  justify-content: flex-end;
  margin-top: 0;
}

.pattern-duration-control {
  margin-top: 2px;
  min-width: 0;
  align-self: center;
}

.pattern-duration-control .duration-scale {
  gap: 7px;
}

.pattern-duration-control .duration-scale-head b {
  font-size: 15px;
}

.pattern-duration-control .duration-scale-track {
  height: 10px;
}

.pattern-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  height: 348px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#fff 30%, rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), #fff 70%) 0 100%,
    linear-gradient(rgba(43, 120, 212, 0.14), rgba(43, 120, 212, 0)),
    linear-gradient(rgba(43, 120, 212, 0), rgba(43, 120, 212, 0.12)) 0 100%;
  background-attachment: local, local, scroll, scroll;
  background-repeat: no-repeat;
  background-size: 100% 28px, 100% 28px, 100% 10px, 100% 10px;
  scrollbar-color: rgba(43, 120, 212, 0.45) transparent;
  scrollbar-width: thin;
}

.pattern-card-grid::-webkit-scrollbar {
  width: 9px;
}

.pattern-card-grid::-webkit-scrollbar-track {
  background: transparent;
}

.pattern-card-grid::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: rgba(43, 120, 212, 0.42);
}

.pattern-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: start;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 16px;
  text-align: left;
}

.pattern-card:hover,
.pattern-card.active {
  border-color: var(--blue);
}

.pattern-card.active {
  background: #f4f8ff;
}

.pattern-card span {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}

.pattern-card b {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.pattern-card-preview {
  grid-column: 1 / -1;
  width: 100%;
  height: 70px;
}

.pattern-card-preview path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0d141d;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
}

.search-button {
  margin-top: 18px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #050505;
  color: white;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-action {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  position: relative;
  width: 100%;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #050505;
}

.search-action .search-button {
  margin-top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.search-action .search-button-main {
  font-size: 20px;
  letter-spacing: 0.1em;
}

.search-action .market-settings {
  position: relative;
  min-width: 0;
}

.search-action .market-settings summary {
  width: 54px;
  min-height: 100%;
  height: 100%;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 0;
  justify-content: center;
  background: #050505;
  color: #fff;
}

.search-action .market-settings summary:hover,
.search-action .market-settings[open] summary {
  background: #1d1d1d;
}

.search-action .market-settings summary span {
  display: none;
}

.search-action .market-settings summary i,
.search-action .market-settings summary .icon-svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.search-action .market-settings .market-settings-body {
  right: 0;
}

.search-button-recent {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  background: #1f73d8;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.search-action.is-loading .search-button-recent {
  opacity: 0.5;
}

.search-button:disabled {
  cursor: wait;
}

.search-button.is-loading {
  letter-spacing: 0;
}

.active-filter-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.active-filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 20px 3px 8px;
  border: 1px solid #b7c9e5;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: inherit;
  line-height: 1;
  text-transform: inherit;
  cursor: pointer;
}

.active-filter-chip-static {
  padding-right: 8px;
  cursor: default;
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  border-color: var(--blue);
  background: #e5f0ff;
  outline: 0;
}

.active-filter-chip-static:hover {
  border-color: #b7c9e5;
  background: #edf4ff;
}

.active-filter-chip > span {
  color: inherit;
}

.active-filter-chip > i {
  position: absolute;
  top: 1px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  color: #6f8ec2;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.active-filter-chip-remove > i {
  top: 0;
  font-size: 14px;
}

.active-filter-chip .icon-svg {
  width: 10px;
  height: 10px;
}

.search-loading-canvas {
  width: 38px;
  height: 38px;
  display: block;
}

/* The settings segment remains visible while searching. Center the loading
   animation against the complete control, rather than the left grid cell. */
.search-action.is-loading .search-loading-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.secondary-button {
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #121b26;
  color: var(--ink);
  font-weight: 800;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.draw-fields .button-row {
  grid-template-columns: 1fr;
}

.draw-workspace {
  display: grid;
  grid-template-columns: 73.383% 26.617%;
  align-items: start;
  width: 100%;
}

.draw-original-stage {
  display: block;
  align-items: stretch;
  background: transparent;
  min-height: 260px;
  width: 100%;
  margin: 8px 0 0;
}

.draw-side-meta {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 24px 22px 0 0;
  border-right: 1px solid #e1e1e1;
}

.draw-side-meta span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.draw-side-meta b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 7px;
  border-bottom: 1px solid #999;
}

.draw-chart-area {
  position: relative;
  min-width: 0;
  background: #fff;
  width: 100%;
}

.draw-chart-settings {
  position: absolute;
  top: 6px;
  right: 16px;
  z-index: 7;
}

.draw-chart-settings .chart-settings-trigger,
.search-chart-actions .chart-settings-trigger {
  width: 32px;
  min-height: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  justify-content: center;
  background: #fff;
  color: #050505;
  box-shadow: 0 1px 3px rgba(20, 38, 68, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.draw-chart-settings .chart-settings-trigger:hover,
.search-chart-actions .chart-settings-trigger:hover {
  background: #fff;
  color: #050505;
}

.draw-chart-settings .chart-settings-trigger .icon-svg,
.search-chart-actions .chart-settings-trigger .icon-svg {
  width: 14px;
  height: 14px;
}

.draw-node-actions {
  position: absolute;
  top: 6px;
  right: 54px;
  z-index: 3;
  display: grid;
  grid-template-columns: 48px repeat(2, 32px);
  gap: 7px;
  align-items: center;
}

.draw-node-actions button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1.5px solid #3a6099;
  border-radius: 999px;
  background: #fff;
  color: #3a6099;
  font-size: 0;
  line-height: 1;
  display: grid;
  place-items: center;
  font-weight: 900;
  padding: 0;
  font-family: Arial, sans-serif;
}

.draw-node-actions button::before,
.draw-node-actions button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.draw-node-actions button::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

#removeDrawPoint::after {
  display: none;
}

.draw-node-actions .draw-clear-action {
  width: 48px;
  border-color: #c7cbd1;
  color: #3e434a;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.draw-node-actions .draw-clear-action::before,
.draw-node-actions .draw-clear-action::after {
  display: none;
}

.draw-node-actions .draw-clear-action:hover,
.draw-node-actions .draw-clear-action:focus-visible {
  border-color: #3a6099;
  color: #1f5da6;
  outline: 0;
}

.draw-pad {
  width: 100%;
  height: 260px;
  display: block;
  border: 0;
  border-radius: 0;
  background: #fff;
  touch-action: none;
  cursor: grab;
}

.draw-pad:active {
  cursor: grabbing;
}

.draw-duration-visual {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.draw-query-card {
  display: grid;
  gap: 14px;
  border-left: 1px solid var(--line);
  background: #fff;
  padding: 8px 0 0 18px;
  margin-left: 18px;
  align-self: start;
}

.draw-query-card > select#dataset {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.draw-query-card .draw-duration-visual {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
}

.draw-query-card .settings-accordion {
  margin-top: 0;
}

.duration-scale {
  display: grid;
  gap: 8px;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  outline: none;
}

.duration-scale:focus-visible {
  outline: 2px solid rgba(43, 120, 212, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.duration-scale-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.duration-scale-head b {
  color: var(--ink);
  font-size: 16px;
}

.duration-scale-head span,
.duration-scale-ticks {
  color: var(--muted);
  font-size: 12px;
}

.duration-scale-track {
  height: 12px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}

.duration-scale-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    #9fc4f0 0,
    #9fc4f0 8px,
    #cfe2f8 8px,
    #cfe2f8 12px
  );
}

.duration-scale-ticks {
  display: flex;
  justify-content: space-between;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.query-panel {
  padding: 18px;
}

.visual-query {
  border-color: #33496a;
  scroll-margin-top: 16px;
}

.query-chart-block {
  min-width: 0;
}

.query-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.query-title h2 {
  margin: 0;
  font-size: 20px;
}

.query-title span {
  color: var(--muted);
  font-size: 13px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.query-stats {
  display: grid;
  gap: 10px;
}

.query-summary-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.query-summary-line span {
  white-space: nowrap;
}

.query-summary-line i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--quiet);
}

.query-stats div,
.lead-stat-strip div,
.stats-board div {
  border: 1px solid var(--line);
  background: #0c141d;
  border-radius: 6px;
  padding: 12px;
}

.query-stats b,
.lead-stat-strip b,
.stats-board b {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: var(--quiet);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-stat-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1;
}

.query-stats span,
.lead-stat-strip span,
.stats-board span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.metric {
  border: 1px solid var(--line);
  background: #0c141d;
  border-radius: 6px;
  padding: 12px;
}

.metric-label {
  color: var(--quiet);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.metric-value {
  margin-top: 5px;
  font-size: 22px;
  font-weight: 900;
}

.chart-frame {
  position: relative;
  width: 100%;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #071018;
  overflow: hidden;
  transition: border-color 140ms ease;
}

.chart-frame:hover,
.activity-strip:hover,
.outcome-rail:hover,
.news-columns > div:hover {
  border-color: #456896;
}

.lead-result,
.match-workbench {
  padding: 20px 18px 18px;
}

.combined-results {
  display: grid;
  gap: 38px;
}

.combined-result-section {
  min-width: 0;
  scroll-margin-top: 18px;
}

.combined-result-section + .combined-result-section {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.combined-result-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0 0 12px;
}

.combined-result-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.visual-lead {
  border: 0;
  background: transparent;
  padding: 0;
}

.result-view-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(130px, auto));
  gap: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.results-navigation {
  position: sticky;
  top: 10px;
  z-index: 16;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid #d7e2ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(23, 40, 65, 0.08);
}

.results-navigation .result-view-tabs,
.results-navigation .find-recent-action {
  margin: 0;
}

.results-navigation .find-recent-action {
  justify-content: flex-end;
}

.result-view-tabs button {
  min-width: 132px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 16px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.result-view-tabs button:last-child {
  border-right: 0;
}

.result-view-tabs button.active {
  background: #eaf3ff;
  color: var(--blue);
}

.result-view-tabs b {
  color: #6d7580;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.result-view-tabs button.active b {
  color: var(--blue);
}

.match-flow,
.mini-flow {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.mini-flow {
  max-width: 520px;
}

.flow-node,
.mini-flow span {
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.query-node,
.mini-flow span:nth-of-type(1) {
  color: #bfe8ff;
  background: #0d2637;
  border-color: #24567b;
}

.match-node,
.mini-flow span:nth-of-type(2) {
  color: #c5d9ff;
  background: #102a54;
  border-color: #315b9d;
}

.after-node,
.mini-flow span:nth-of-type(3) {
  color: #e1e5e9;
  background: #2a3037;
  border-color: #5c6874;
}

.flow-arrow,
.mini-flow i {
  height: 2px;
  background: var(--line);
  position: relative;
}

.flow-arrow:after,
.mini-flow i:after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: rotate(45deg);
}

.lead-visual-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  margin-bottom: 2px;
}

/* Keep the result identity compact on wide result pages. The chart below is
   the primary comparison surface, so ticker metadata should use its spare
   horizontal space instead of creating another vertical block. */
.result-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 3px;
}

.result-identity .ticker-subtitle {
  margin-top: 0;
}

.lead-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  padding-top: 0;
}

.lead-badges .chart-actions {
  order: 1;
}

.lead-badges .match-rotator {
  order: 2;
  margin-left: auto;
}

.match-rotator {
  display: inline-grid;
  grid-template-columns: 30px auto 30px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 3px 6px;
}

.match-rotator button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
}

.match-rotator button:hover {
  background: #2b2b2b;
}

.match-rotator span {
  min-width: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

/* The selected-match navigator is the primary desktop result control. Keep it
   distinct from chart tools and large enough to scan or click repeatedly. */
@media (min-width: 1281px) {
  .lead-visual-head {
    position: relative;
    padding-right: 190px;
  }

  .lead-badges .match-rotator {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
    grid-template-columns: 44px minmax(62px, auto) 44px;
    gap: 8px;
    padding: 4px 7px;
  }

  .lead-badges .match-rotator button {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .lead-badges .match-rotator span {
    min-width: 62px;
    font-size: 18px;
  }
}

.chart-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.journey-next-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 8px 0 16px;
  padding: 14px 16px;
  border: 1px solid #a9c9f3;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(231, 240, 251, 0.95), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(43, 120, 212, 0.08);
}

.journey-dismiss {
  position: absolute;
  top: 7px;
  right: 8px;
  display: none;
  width: 24px;
  height: 24px;
  border: 1px solid #c8ddf8;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  padding: 0 0 2px;
  cursor: pointer;
}

.journey-step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  border: 1px solid #bfdbfb;
}

.journey-step-icon .icon-svg {
  width: 22px;
  height: 22px;
}

.journey-next-step b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.journey-next-step span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.journey-next-step button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.journey-next-step button:hover {
  filter: brightness(0.95);
}

.result-filter-menu {
  position: relative;
}

.result-filter-menu summary {
  list-style: none;
  cursor: pointer;
}

.result-filter-menu summary::-webkit-details-marker {
  display: none;
}

.result-filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: auto;
  left: 0;
  z-index: 15;
  width: min(260px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.asset-filter-group > b {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.asset-filter-group {
  margin-bottom: 12px;
}

.asset-filter-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.asset-filter-options button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  padding: 7px 8px;
  font: inherit;
  cursor: pointer;
}

.asset-filter-options button.active {
  border-color: var(--blue);
  background: #eaf2ff;
  color: var(--blue);
}

.asset-filter-options span,
.asset-filter-options small {
  display: block;
}

.asset-filter-options span {
  font-size: 12px;
  font-weight: 900;
}

.asset-filter-options small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.icon-action,
.comparison-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #333;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.icon-action:hover,
.comparison-toggle:hover {
  border-color: #333;
  background: #f6f6f6;
}

.icon-action:active,
.comparison-toggle:active {
  transform: translateY(1px);
}

.icon-action.active,
.comparison-toggle.active {
  border-color: #222;
  color: #222;
  background: #f5f5f5;
}

.icon-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare-icon {
  display: grid;
  gap: 5px;
  width: 21px;
}

.compare-icon i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
}

.compare-icon i:after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid currentColor;
}

.compare-icon i:first-child:after {
  left: 2px;
}

.compare-icon i:last-child:after {
  right: 2px;
}

.future-badge {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 950;
}

.future-badge.up {
  background: #123a29;
  color: #a8ffd1;
}

.future-badge.down {
  background: #3a1518;
  color: #ffb4b4;
}

.future-badge.neutral {
  background: #28313b;
  color: #d4dbe3;
}

.visual-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.visual-legend span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.visual-legend span:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 4px;
  margin-right: 7px;
  vertical-align: middle;
}

.legend-query:before {
  background: var(--cyan);
}

.legend-match:before {
  background: var(--blue);
}

.legend-after:before {
  background: var(--gray);
}

.legend-boundary:before {
  width: 4px !important;
  height: 14px !important;
  background: repeating-linear-gradient(to bottom, var(--ink), var(--ink) 3px, transparent 3px, transparent 6px);
}

.lead-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.common-indicator {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.common-indicator-copy b {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.common-indicator-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 34px;
  line-height: 0.95;
}

.common-indicator-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.common-indicator-scale {
  display: grid;
  gap: 8px;
}

.common-indicator-scale small {
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.common-indicator-track,
.common-indicator-fill {
  display: block;
  height: 12px;
  border-radius: 999px;
}

.common-indicator-scale {
  position: relative;
}

.common-indicator-track {
  width: 100%;
  background:
    linear-gradient(90deg, #eef2f6 0%, #dce5f1 100%);
  box-shadow: inset 0 0 0 1px rgba(56, 91, 149, 0.08);
}

.common-indicator-fill {
  position: absolute;
  top: 0;
  left: 0;
  background:
    repeating-linear-gradient(135deg, #9fc4f0 0 8px, #385b95 8px 16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.lead-head,
.section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.section-title h2,
.lead-head h2 {
  margin: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  align-self: center;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 260px;
  gap: 14px;
}

.story-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c141d;
  padding: 14px;
  min-width: 0;
}

.story-panel h3 {
  margin: 6px 0 12px;
  font-size: 16px;
}

.story-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

.step-label {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.ticker.small {
  font-size: 18px;
}

.ticker-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.result-query-context {
  margin-top: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.rank {
  color: var(--muted);
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.quality {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.quality.excellent,
.quality.strong {
  background: #123a29;
  color: #a8ffd1;
}

.quality.good {
  background: #342a0e;
  color: #ffe09a;
}

.quality.weak {
  background: #3a1518;
  color: #ffb4b4;
}

.outcome-panel {
  display: grid;
  align-content: start;
}

.big-number {
  font-size: 48px;
  font-weight: 950;
  margin-top: 16px;
}

.big-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.lead-stats {
  display: grid;
  gap: 10px;
}

.lead-stats div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.lead-stats b,
.row-stat b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.lead-stats span,
.row-stat span {
  display: block;
  margin-top: 3px;
  font-weight: 800;
}

.cyan-dot,
.blue-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.cyan-dot {
  background: var(--cyan);
}

.blue-dot {
  background: var(--blue);
}

.match-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.match-toolbar h2 {
  margin: 3px 0 6px;
  font-size: 24px;
}

.match-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.match-picker {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.25fr) minmax(170px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
}

.toggle-row {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d141d;
  color: var(--ink);
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.time-context {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  /* Keep the card row vertically centered below the title notch. */
  padding: 13px 8px;
  border: 1px solid #d8e5f1;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(43, 120, 212, 0.08) 0 2px, transparent 2px 10px),
    #f8fbff;
  align-items: stretch;
}

/* Recent results have Pattern and Time frame only: use the whole row. */
.time-context.recent-specific {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.time-context > div {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 0;
  min-width: 0;
}

.time-context.outcome-up {
  border-color: color-mix(in srgb, var(--green) 24%, #cfe0f4);
  background: #edf8f2;
}

.time-context.outcome-down {
  border-color: color-mix(in srgb, var(--red) 24%, #cfe0f4);
  background: #fff0f1;
}

.time-context.outcome-up > div:not(.metric-group-title) {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  background: #fff;
}

.time-context.outcome-down > div:not(.metric-group-title) {
  border-color: color-mix(in srgb, var(--red) 26%, var(--line));
  background: #fff;
}

.time-context > div > span,
.time-context .card-label,
.distribution-panel span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.time-context b,
.distribution-panel b {
  display: block;
  margin-top: 5px;
}

.time-context small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.insight-card {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  position: relative;
  overflow: visible;
}

.insight-card b {
  margin-top: 0;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 0.95;
  letter-spacing: 0;
}

.insight-card.up b {
  color: var(--green);
}

.insight-card.down b {
  color: var(--red);
}

.insight-card.neutral b {
  color: var(--ink);
}

.insight-card.selected b,
.insight-card.selected.up b,
.insight-card.selected.down b {
  color: var(--blue);
}

.insight-card.primary {
  border-color: #9fb7d8;
}

.label-short {
  display: none;
}

.insight-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.insight-card-top > span,
.card-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.metric-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.metric-tools .info-tip {
  display: inline-grid;
  align-self: center;
  color: var(--blue);
  letter-spacing: 0;
  text-transform: none;
}

.metric-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}

.metric-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--quiet);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
}

.metric-switch button.active {
  background: rgba(43, 120, 212, 0.12);
  color: var(--blue);
}

.find-recent-action {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
}

.find-recent-action button {
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  padding: 12px 18px;
}

.find-recent-action button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.onboarding-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 12, 0.08);
  pointer-events: none;
}

.onboarding-spotlight {
  position: fixed;
  z-index: 101;
  display: none;
  border: 3px solid var(--blue);
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(5, 8, 12, 0.18),
    0 8px 26px rgba(18, 62, 120, 0.25);
  pointer-events: none;
  transition: left 160ms ease, top 160ms ease, width 160ms ease, height 160ms ease;
}

.onboarding-target-highlight {
  scroll-margin: 120px;
}

.onboarding-card {
  position: fixed;
  z-index: 103;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(5, 12, 24, 0.2);
  padding: 18px;
  pointer-events: auto;
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
}

.onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-top span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.onboarding-top button,
.onboarding-skip {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.onboarding-top button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(var(--tour-step-count, 5), minmax(0, 1fr));
  gap: 6px;
}

.onboarding-progress i {
  height: 4px;
  border-radius: 999px;
  background: #e5e9ef;
}

.onboarding-progress i.active {
  background: var(--blue);
}

.onboarding-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}

.onboarding-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.onboarding-card small {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.onboarding-card small:empty {
  display: none;
}

.onboarding-restart-note {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
  margin-top: 2px;
}

.onboarding-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
}

.onboarding-actions button:last-child {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.onboarding-actions button:disabled {
  cursor: default;
  opacity: 0.4;
}

.onboarding-skip {
  justify-self: center;
  padding: 2px 8px;
}

.selected-explain {
  gap: 7px;
}

.insight-card.outcome-only,
.insight-card.shape-only,
.insight-card.duration-card {
  min-height: 74px;
}

.historical-path-card {
  grid-column: 1 / -1;
}

.historical-path-opportunity {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.historical-path-opportunity strong {
  color: var(--green);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
}

.historical-path-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.historical-path-summary {
  display: grid;
  gap: 7px;
}

.historical-path-summary > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.historical-path-summary b {
  color: var(--ink);
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.05;
}

.historical-path-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.historical-path-summary small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.historical-path-horizon-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.historical-path-horizon-state button {
  appearance: none;
  border: 1px solid #a8c4e8;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
  color: #215eaa;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.historical-path-horizon-state button:hover,
.historical-path-horizon-state button:focus-visible {
  background: #e9f1fb;
  outline: none;
}

.historical-path-visual {
  display: grid;
  gap: 0;
  margin-top: 2px;
  padding: 10px 0 0;
}

.historical-path-forecast {
  position: relative;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.historical-path-plot {
  position: relative;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 1360 / 220;
}

.historical-path-forecast svg {
  display: block;
  width: 100%;
  height: 100%;
}

.historical-path-axis-labels {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 48px;
  pointer-events: none;
  color: #657d9b;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.6px;
  line-height: 1;
}

.historical-path-axis-labels span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.historical-path-axis-labels .observed,
.historical-path-axis-labels .forecast {
  top: 7px;
}

.historical-path-axis-labels .forecast {
  color: #2b78d4;
}

.historical-path-axis-labels .now {
  top: 27px;
  padding: 0 4px;
  background: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.historical-path-forecast-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.historical-path-forecast-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 28px;
  gap: 8px;
  padding: 4px 10px 2px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 850;
}

.historical-path-comparison-toggle {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #c8d7ea;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: #657d9b;
  cursor: pointer;
  flex: 0 0 auto;
}

.historical-path-card .historical-path-opportunity {
  padding-right: 0;
}

.historical-path-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.historical-path-zoom-controls {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c8d7ea;
  border-radius: 999px;
  background: #fff;
}

.historical-path-zoom-controls button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-right: 1px solid #d8e2ef;
  padding: 0 0 1px;
  background: transparent;
  color: #315d9d;
  cursor: pointer;
  font: 900 17px/1 Arial, sans-serif;
}

.historical-path-zoom-controls button:last-child {
  border-right: 0;
}

.historical-path-zoom-controls button:hover:not(:disabled),
.historical-path-zoom-controls button:focus-visible,
.historical-path-zoom-reset.active {
  background: #e9f1fb;
}

.historical-path-zoom-controls button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.historical-path-zoom-controls button:disabled {
  color: #b7c3d1;
  cursor: default;
}

.historical-path-zoom-controls .historical-path-zoom-reset {
  font-size: 11px;
  font-weight: 900;
}

.historical-path-zoom-controls .icon-svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.historical-path-comparison-toggle.active {
  border-color: #7898bd;
  background: #e9f1fb;
  color: #315d9d;
}

.historical-path-comparison-toggle .icon-svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.historical-path-entry-note {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.historical-path-series-note {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.historical-path-legend-swatch {
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: 4px;
  border-radius: 2px;
  background: #315d9d;
}

.historical-path-legend-swatch.forecast {
  background: repeating-linear-gradient(90deg, #2b78d4 0 6px, transparent 6px 10px);
}

.historical-path-legend-swatch.selected {
  background: #6f7782;
}

.historical-path-entry-marker,
.historical-path-exit-marker,
.historical-path-trade-summary {
  cursor: help;
}

.historical-path-entry-marker:focus-visible,
.historical-path-exit-marker:focus-visible,
.historical-path-trade-summary:focus-visible {
  outline: 2px solid #2b78d4;
  outline-offset: 2px;
  border-radius: 3px;
}

.historical-path-entry-note i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 50%;
}

.historical-path-entry-note i.entry { background: #f2a900; }
.historical-path-entry-note i.exit { background: var(--green); }

.historical-path-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 8px;
  color: var(--quiet);
  font-size: 9px;
  font-weight: 800;
}

.historical-path-dates span:last-child { text-align: right; }

.historical-path-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe7f7;
  border-radius: 6px;
  background: #fff;
}

.historical-path-route span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.historical-path-route-end {
  text-align: right;
}

.historical-path-route small {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.historical-path-route b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.historical-path-route em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.historical-path-route i {
  color: #8aa0b9;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.historical-path-route .up,
.historical-path-step.up strong {
  color: var(--green);
}

.historical-path-route .down,
.historical-path-step.down strong {
  color: var(--red);
}

.historical-path-steps {
  display: grid;
  gap: 2px;
}

.historical-path-disclaimer {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.historical-path-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 64px;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.historical-path-step > span {
  color: var(--quiet);
  font-weight: 950;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.historical-path-step > span b {
  color: var(--ink);
  display: inline;
}

.historical-path-step > span i {
  font-style: normal;
}

.historical-path-step strong,
.historical-path-step em {
  text-align: right;
  font-style: normal;
}

.historical-path-step em {
  color: var(--ink);
}

.historical-path-table-wrap {
  max-height: 224px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.historical-path-table-title {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 10px 6px;
  background: #fff;
  border-bottom: 1px solid #edf0f3;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.historical-path-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.historical-path-table th,
.historical-path-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #edf0f3;
  text-align: right;
  white-space: nowrap;
}

.historical-path-table th {
  position: sticky;
  top: 31px;
  z-index: 1;
  background: #fafbfc;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.historical-path-table th:first-child,
.historical-path-table td:first-child,
.historical-path-table th:nth-child(2),
.historical-path-table td:nth-child(2) {
  text-align: left;
}

.historical-path-table tr:last-child td {
  border-bottom: 0;
}

.historical-path-table td {
  color: var(--ink);
  font-weight: 800;
}

.historical-path-table td.up {
  color: var(--green);
}

.historical-path-table td.down {
  color: var(--red);
}

.selected-summary {
  display: block;
}

.selected-summary b {
  font-size: clamp(26px, 2.6vw, 36px);
}

.match-index {
  position: static;
  color: var(--quiet);
  font-style: normal;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.selected-facts {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 46px;
}

.selected-facts div {
  display: grid;
  gap: 4px;
}

.selected-facts strong {
  color: var(--blue);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.selected-facts.selected-facts-scale small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.selected-facts i {
  height: 10px;
  border-radius: 999px;
  background: #e7e7e7;
  overflow: hidden;
}

.selected-facts u {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9fb7d8, var(--blue));
  text-decoration: none;
}

.uncertainty-copy {
  color: #7a7a7a;
}

.composition-bar {
  height: 12px;
  border-radius: 999px;
  display: flex;
  overflow: hidden;
  background: #f0f0f0;
  margin: 0;
}

.composition-bar i {
  display: block;
  height: 100%;
}

.composition-bar .negative {
  background: #ee8a8f;
}

.composition-bar .positive {
  background: var(--green);
}

.composition-bar.unavailable i {
  background: #d9d9d9;
}

.insight-bar {
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(207, 79, 79, 0.22), rgba(43, 120, 212, 0.12), rgba(46, 157, 99, 0.24));
  position: relative;
  margin: 4px 0;
}

.insight-bar .zero {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(51, 51, 51, 0.45);
}

.insight-bar .marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  transform: translate(-50%, -50%);
}

.insight-card.down .insight-bar .marker {
  border-color: var(--red);
}

.stats-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stats-board b {
  font-size: 19px;
}

.distribution-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  background: #0c141d;
  min-height: 116px;
}

.distribution-empty {
  height: 86px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.activity-strip {
  min-height: 84px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  background: #071018;
  position: relative;
}

.chart-frame + .activity-strip {
  margin-top: -1px;
}

.strip-label {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(36, 50, 71, 0.72);
}

.strip-label b {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.activity-strip svg {
  height: 58px;
  display: block;
}

.activity-bar,
.evidence-point,
.evidence-dot,
.evidence-hit,
.evidence-bar,
.evidence-marker,
.chart-hit-point {
  transition: opacity 120ms ease, filter 120ms ease, stroke-width 120ms ease;
}

.evidence-point {
  cursor: pointer;
}

.activity-bar:hover,
.evidence-point:hover .evidence-dot,
.evidence-point:focus .evidence-dot,
.evidence-dot:hover,
.evidence-bar:hover,
.evidence-marker:hover,
.chart-hit-point:hover {
  opacity: 1 !important;
}

.evidence-hit {
  fill: transparent;
  pointer-events: all;
}

.activity-bar:hover {
  stroke: #f4f7fb;
  stroke-width: 1.5px;
}

.evidence-point:hover .evidence-dot,
.evidence-point:focus .evidence-dot,
.evidence-dot:hover {
  stroke: #050505;
  stroke-width: 4px;
}

.evidence-point.selected .evidence-dot {
  fill: #fff;
  opacity: 1;
  stroke: #050505;
  stroke-width: 5px;
}

.evidence-point.selected:hover .evidence-dot,
.evidence-point.selected:focus .evidence-dot {
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.28));
}

.chart-hit-point {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.chart-hit-point:hover {
  fill: rgba(244, 247, 251, 0.18);
  stroke: #f4f7fb;
  stroke-width: 1.5px;
}

.chart-hover-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  touch-action: auto;
}

.chart-hover-target {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  touch-action: auto;
  cursor: crosshair;
}

@media (pointer: coarse) {
  .search-chart {
    cursor: default;
  }
}

@media (hover: none), (pointer: coarse) {
  .search-chart,
  .forecast-chart .chart-frame {
    touch-action: none;
  }

  .chart-hover-layer,
  .chart-hover-marker {
    visibility: hidden;
  }

  .chart-hover-marker {
    display: none;
  }
}

.chart-hover-marker {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 80ms ease;
}

.chart-hover-target:focus .chart-hover-marker,
.chart-hover-target.chart-hover-active .chart-hover-marker {
  opacity: 1;
}

.hover-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 28px));
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.38;
  white-space: pre-line;
  transform: translateY(2px);
  transition: opacity 45ms ease, transform 45ms ease;
  box-shadow: 0 10px 24px rgba(35, 45, 60, 0.16);
}

.hover-tooltip-rich {
  padding: 10px 11px;
  white-space: normal;
}

.info-tooltip-card {
  display: grid;
  gap: 7px;
  width: min(320px, calc(100vw - 44px));
}

.info-tooltip-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.info-tooltip-card p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.info-tooltip-card .info-tooltip-lead {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.32;
}

.info-tooltip-card em {
  display: block;
  margin-top: 1px;
  padding-top: 7px;
  border-top: 1px solid #dbe5f0;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
}

.chart-tooltip-card {
  display: grid;
  gap: 8px;
}

.chart-tooltip-title {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.chart-tooltip-rows {
  display: grid;
  gap: 5px;
}

.chart-tooltip-row {
  display: grid;
  grid-template-columns: 18px minmax(54px, auto) 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.chart-tooltip-row-value {
  grid-template-columns: minmax(54px, auto) 1fr;
}

.chart-tooltip-row strong {
  justify-self: end;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  text-align: right;
}

.chart-tooltip-row-up strong {
  color: var(--green);
}

.chart-tooltip-row-down strong {
  color: var(--red);
}

.chart-tooltip-swatch {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 999px;
}

.chart-tooltip-swatch-price {
  background: #385b95;
}

.chart-tooltip-swatch-pattern {
  background:
    repeating-linear-gradient(135deg, #9fc4f0 0 2px, #d8e8fb 2px 6px);
  border: 1px solid #9fc4f0;
}

.chart-tooltip-swatch-future,
.chart-tooltip-swatch-median {
  height: 4px;
  background: #2b78d4;
}

.chart-tooltip-swatch-selected {
  height: 3px;
  background: #6f7782;
}

.chart-tooltip-swatch-band {
  background: #d8e8fb;
  border: 1px solid #9fc4f0;
}

.chart-tooltip-swatch-volume {
  width: 18px;
  height: 14px;
  border-radius: 0;
  background: none;
}

.chart-tooltip-swatch-volume::before,
.chart-tooltip-swatch-volume::after {
  content: "";
  position: absolute;
  background: #7b8490;
}

.chart-tooltip-swatch-volume::before {
  left: 4px;
  bottom: 2px;
  width: 2px;
  height: 5px;
  border-radius: 1px 1px 0 0;
  box-shadow:
    5px -3px 0 #7b8490,
    10px -7px 0 #7b8490;
}

.chart-tooltip-swatch-volume::after {
  left: 3px;
  right: 3px;
  bottom: 1px;
  height: 1.5px;
  border-radius: 999px;
}

.chart-tooltip-swatch-actual-positive {
  height: 4px;
  background: #007a4d;
}

.chart-tooltip-swatch-actual-negative {
  height: 4px;
  background: #b3262d;
}

.evidence-tooltip-card {
  width: min(260px, calc(100vw - 44px));
  display: grid;
  gap: 5px;
}

.evidence-tooltip-title {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.evidence-tooltip-identity {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.18;
}

.evidence-tooltip-rows {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 9px;
  padding-top: 4px;
  border-top: 1px solid #e1e5eb;
}

.evidence-tooltip-rows span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
}

.evidence-tooltip-rows b {
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 950;
  text-align: right;
}

.hover-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  margin-top: 14px;
  transition: border-color 140ms ease;
}

.news-section:hover {
  border-color: #8aa8cf;
}

.evidence-board {
  width: 100%;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
}

.outcome-agreement-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  /* Match the horizontal inset used by the specific-pattern group below. */
  width: calc(100% - 16px);
  margin: 14px 8px 10px;
  /* Keep the card row vertically centered below the title notch. */
  padding: 13px 8px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(43, 120, 212, 0.11) 0 2px, transparent 2px 10px),
    #edf5ff;
}

.metric-group-title {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 1px solid #d6e1ee;
  background: #fff;
  border-radius: 0 0 999px 999px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  min-height: 0;
  padding: 5px 11px 4px;
  text-align: center;
  text-transform: uppercase;
}

.time-context > .metric-group-title {
  background: #fff;
  border-radius: 0 0 999px 999px;
}

.outcome-agreement-all {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid #dbe7f5;
  border-radius: 7px;
  background: #fff;
  padding: 11px 13px;
  min-height: 112px;
  height: 100%;
  box-sizing: border-box;
}

.monthly-pace-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.outcome-agreement-all > div {
  min-width: 0;
}

.outcome-agreement-confidence {
  position: relative;
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  grid-template-areas:
    "score spread"
    "meter meter";
  align-items: center;
  align-content: center;
  gap: 10px 18px;
  min-width: 0;
  border: 1px solid #dbe7f5;
  border-radius: 7px;
  background: #fff;
  padding: 10px 14px;
  min-height: 112px;
  height: 100%;
  box-sizing: border-box;
}

.monthly-pace-summary > span,
.outcome-agreement-main {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.monthly-pace-summary > span,
.outcome-agreement-main span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.outcome-agreement-main {
  grid-area: score;
  justify-content: flex-start;
}

.monthly-pace-summary > b,
.outcome-agreement-main b {
  color: var(--ink);
  font-size: 32px;
  line-height: 1.08;
}

.monthly-pace-summary > b {
  font-size: 36px;
}

.monthly-pace-summary > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.outcome-agreement-all.up .monthly-pace-summary > b {
  color: var(--green);
}

.outcome-agreement-all.down .monthly-pace-summary > b {
  color: var(--red);
}

.outcome-agreement-main b {
  color: var(--blue);
}

.outcome-agreement-strip.limited .outcome-agreement-main b,
.outcome-agreement-strip.low .outcome-agreement-main b {
  color: var(--quiet);
}

.outcome-agreement-strip.strong .outcome-agreement-main b,
.outcome-agreement-strip.very-strong .outcome-agreement-main b {
  color: var(--green);
}

.outcome-agreement-meter {
  grid-area: meter;
  height: 10px;
  border-radius: 999px;
  background: #e7edf3;
  overflow: hidden;
}

.outcome-agreement-meter i {
  display: block;
  width: var(--agreement);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.outcome-agreement-strip.limited .outcome-agreement-meter i,
.outcome-agreement-strip.low .outcome-agreement-meter i {
  background: var(--muted);
}

.outcome-agreement-strip.strong .outcome-agreement-meter i,
.outcome-agreement-strip.very-strong .outcome-agreement-meter i {
  background: var(--green);
}

.outcome-agreement-detail {
  grid-area: spread;
  display: grid;
  justify-items: end;
  gap: 2px;
  padding-right: 22px;
  min-width: 0;
  text-align: right;
  align-self: center;
}

.outcome-agreement-detail span,
.outcome-agreement-detail small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.outcome-agreement-detail b {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.05;
}

.evidence-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.evidence-head h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.evidence-result {
  display: grid;
  justify-items: end;
  gap: 1px;
  min-width: 120px;
}

.evidence-result span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-result b {
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: 0;
}

.evidence-result.up b {
  color: var(--green);
}

.evidence-result.down b {
  color: var(--red);
}

.outcome-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}

.outcome-view-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--quiet);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
}

.outcome-view-switch button.active {
  background: rgba(43, 120, 212, 0.12);
  color: var(--blue);
}

.outcome-rail {
  display: grid;
  grid-template-rows: 218px 32px;
  align-items: start;
  height: 266px;
  min-height: 266px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 28px 8px;
}

.outcome-rail svg {
  display: block;
  height: 100%;
  width: 100%;
}

.typical-outcome-marker,
.selected-outcome-marker {
  transition: opacity 120ms ease;
}

.typical-outcome-marker:hover,
.selected-outcome-marker:hover {
}

.forecast-chart {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 4px auto 0;
}

.forecast-chart .chart-frame {
  border: 0;
  border-radius: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 1360 / 220;
}

.forecast-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
}

.forecast-title b {
  color: var(--ink);
  font-size: 14px;
}

.forecast-title span {
  color: var(--muted);
}

.forecast-title i {
  display: inline-block;
  width: 20px;
  height: 3px;
  border-radius: 999px;
  margin: 0 5px 3px 10px;
  vertical-align: middle;
}

.forecast-dates {
  display: grid;
  gap: 0;
  color: var(--muted);
  font-size: 11px;
  margin-top: 0;
  padding: 0;
}

.forecast-date-match {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px 0 10px;
}

.forecast-date-future {
  text-align: right;
  padding: 0 10px 0 8px;
}

.forecast-dates-recent {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
}

.forecast-title i:first-child {
  margin-left: 0;
}

.legend-selected {
  background: var(--green);
}

.legend-fan {
  background: #9fc4f0;
}

.outcome-legend {
  align-self: end;
  margin-top: 0;
  padding: 0 6px 2px;
  font-size: 16px;
}

.outcome-legend .legend-outcome-selected {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #050505;
}

.outcome-legend .legend-outcome-result {
  position: relative;
  width: 18px;
  height: 24px;
  background: transparent;
}

.outcome-legend .legend-outcome-result::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  bottom: 1px;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #007a4d;
}

.outcome-legend .legend-outcome-result::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  border: 2px solid #007a4d;
  border-radius: 50%;
  background: #fff;
}

.context-line {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.context-line b {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.context-line span {
  color: var(--muted);
}

.muted-line b,
.muted-line span {
  color: var(--quiet);
}

.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  cursor: help;
  flex: 0 0 auto;
  overflow: visible;
  padding: 0;
  vertical-align: middle;
}

.info-tip > i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

/* Panel help belongs in a stable corner, not inside the metric label. */
.panel-info-tip {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  width: 16px;
  height: 16px;
}

.panel-info-tip > i {
  font-size: 10px;
}

.outcome-agreement-all .monthly-pace-summary > span,
.outcome-agreement-confidence .outcome-agreement-main > span,
.time-context .card-label,
.historical-path-card .card-label {
  padding-right: 22px;
}

.time-context > div:not(.metric-group-title) {
  position: relative;
}

.info-tip > span {
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: calc(100% + 8px);
  width: min(260px, 72vw);
  transform: translateX(-50%) translateY(2px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid #456896;
  border-radius: 6px;
  background: #0b1118;
  color: var(--ink);
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  transition: opacity 70ms ease, transform 70ms ease;
}

.info-tip:hover > span,
.info-tip:focus > span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.news-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.news-columns > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #071018;
  padding: 12px;
}

.news-columns h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.news-timeline {
  height: 70px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.news-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
}

.news-list a {
  display: grid;
  gap: 4px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 8px;
}

.news-list a:hover {
  border-color: #36537b;
  background: #101923;
}

.news-list a span,
.news-empty {
  color: var(--muted);
  font-size: 12px;
}

.news-list a b {
  line-height: 1.3;
}

.news-empty {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 18px;
}

.mini-chart .chart-frame {
  min-height: 70px;
  height: 70px;
  border-radius: 4px;
}

.mini-chart svg {
  display: block;
}

.empty-state,
.error-state {
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.intro-state {
  display: grid;
  gap: 9px;
}

.visual-intro {
  min-height: 180px;
  align-content: center;
}

.intro-state b {
  color: var(--ink);
  font-size: 18px;
}

.intro-state span {
  display: block;
}

.error-state {
  border-color: #623037;
  color: #ffb6be;
}

.no-matches-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(43, 120, 212, 0.08), rgba(255, 255, 255, 0) 42%),
    #fff;
}

.no-matches-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #9bbbe5;
  border-radius: 999px;
  color: var(--blue);
  background: #eef5ff;
}

.no-matches-icon .icon-svg {
  width: 24px;
  height: 24px;
}

.no-matches-state b {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 7px;
}

.no-matches-state p {
  margin: 0;
  color: #555;
  font-weight: 750;
}

.no-matches-state small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.no-matches-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.no-matches-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.no-matches-actions button:first-child {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.no-matches-actions button:hover {
  border-color: var(--blue);
}

.sparse-results-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d7a53c;
  border-radius: 8px;
  background: #fff8e8;
  color: #3a3323;
}

.sparse-results-notice b {
  display: block;
  color: #8a5a00;
  font-size: 15px;
  font-weight: 950;
}

.sparse-results-notice span {
  display: block;
  margin-top: 3px;
  color: #6b6252;
  font-size: 13px;
  line-height: 1.35;
}

.sparse-results-notice button {
  flex: 0 0 auto;
  border: 1px solid #8a5a00;
  border-radius: 999px;
  background: #fff;
  color: #8a5a00;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.sparse-results-notice button:hover {
  background: #fff1cc;
}

.pulse-focus {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.loading {
  height: 76px;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid transparent;
  overflow: hidden;
  position: relative;
  margin: 0 0 20px;
  display: grid;
  align-items: center;
  background: #fff;
}

.loading span {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #112233;
  transform-origin: center;
  animation: searchPulse 1.6s infinite cubic-bezier(0.42, 0, 0.18, 1);
}

.loading i {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  transform: translateY(-50%);
}

.loading i:before {
  content: "";
  position: absolute;
  top: 0;
  left: -22%;
  width: 22%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  animation: searchGlint 1.6s infinite cubic-bezier(0.42, 0, 0.18, 1);
}

@keyframes searchPulse {
  0% {
    transform: scaleX(0.96);
    opacity: 0.72;
  }
  45% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.96);
    opacity: 0.72;
  }
}

@keyframes searchGlint {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18% {
    opacity: 0.8;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(560%);
    opacity: 0;
  }
}

svg text {
  font-family: inherit;
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 8px;
  margin-right: 6px;
  vertical-align: middle;
}

.legend .blue {
  background: var(--blue);
}

.legend .gray {
  background: var(--gray);
}

.legend .cyan {
  background: var(--cyan);
}

.topbar,
.control-rail,
.surface,
.visual-lead,
.story-panel,
.metric,
.query-stats div,
.lead-stat-strip div,
.stats-board div,
.time-context > div,
.distribution-panel,
.evidence-board,
.news-section,
.news-columns > div,
.panel {
  background: #fff;
}

.time-context.outcome-up {
  border-color: color-mix(in srgb, var(--green) 24%, #cfe0f4);
  background: #edf8f2;
}

.time-context.outcome-down {
  border-color: color-mix(in srgb, var(--red) 24%, #cfe0f4);
  background: #fff0f1;
}

.time-context.outcome-up > div:not(.metric-group-title) {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  background: #fff;
}

.time-context.outcome-down > div:not(.metric-group-title) {
  border-color: color-mix(in srgb, var(--red) 26%, var(--line));
  background: #fff;
}

.time-context > .metric-group-title {
  border: 1px solid #d6e1ee;
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px 4px;
}

.visual-lead.panel,
.visual-lead {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 24px;
}

.topbar {
  grid-template-columns: 100px 1fr auto 250px;
  height: 66px;
}

.brand span {
  display: none;
}

.mode-tab {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 20px;
}

.mode-tab.active {
  background: transparent;
  color: var(--blue);
}

.status-pill,
.feeling,
.toggle-row,
input,
select,
.secondary-button {
  background: #fff;
  color: var(--ink);
}

.control-rail {
  border-right: 0;
  padding-top: 28px;
}

.mode-kicker,
.mode-copy,
.feeling-row {
  display: none;
}

h1 {
  color: var(--blue);
  font-size: 28px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-grid label:nth-child(3),
.field-grid label:nth-child(4) {
  grid-column: span 1;
}

label {
  color: var(--blue);
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
}

input,
select {
  border: 0;
  border-bottom: 1px solid #999;
  border-radius: 0;
  height: 36px;
}

.market-query-card {
  display: grid;
  gap: 16px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 2px 0 0 18px;
  margin-left: 18px;
  align-self: start;
}

.market-workspace {
  display: grid;
  grid-template-columns: 73.383% 26.617%;
  align-items: start;
  width: 100%;
}

.market-query-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(220px, 0.58fr);
  gap: 14px;
  align-items: end;
}

.ticker-control,
.date-range-control label {
  display: grid;
  gap: 6px;
}

.ticker-control > label,
.ticker-control > span,
.interval-control > span,
.date-range-control span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.ticker-picker {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  border-bottom: 1px solid #999;
}

.ticker-control input {
  height: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
  background: #fff;
  color: var(--ink);
}

.ticker-control input:focus {
  outline: 0;
}

.ticker-menu-toggle {
  width: 30px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.ticker-suggestion-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: none;
  max-height: 285px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.ticker-picker:focus-within .ticker-suggestion-panel {
  display: grid;
  gap: 4px;
}

.ticker-option {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.ticker-option:hover,
.ticker-option:focus {
  outline: 0;
  background: #eef5ff;
}

.ticker-option span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.ticker-option small,
.ticker-option-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.company-control {
  gap: 4px;
}

.company-primary {
  display: block;
  min-height: 32px;
  color: var(--ink);
  font-size: clamp(20px, 1.75vw, 30px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.company-control small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.interval-control {
  display: grid;
  gap: 6px;
}

.interval-control select,
.market-query-card > select#dataset {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.segment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 48px;
}

.segment-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f8f8;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.segment-row button:hover {
  border-color: #8aa8cf;
  background: #f4f8ff;
}

.segment-row button.active {
  border-color: var(--blue);
  background: #eaf3ff;
  color: var(--blue);
}

.date-range-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.date-range-control i {
  height: 2px;
  background: #9aa0a8;
  border-radius: 999px;
  margin: 0 10px 17px;
}

.date-range-control input {
  height: 30px;
  border: 0;
  border-bottom: 1px solid #aaa;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.date-time-control {
  position: relative;
  display: grid;
  gap: 6px;
}

.date-time-trigger {
  width: 100%;
  height: 30px;
  border: 0;
  border-bottom: 1px solid #aaa;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-align: left;
}

.date-time-trigger:hover,
.date-time-trigger:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: 0;
}

.date-time-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
  width: min(320px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.date-time-popover label {
  display: grid;
  gap: 6px;
}

.date-time-popover span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.date-time-popover input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.search-button {
  border-radius: 10px;
  height: 54px;
  margin-top: 0;
}

.search-action {
  height: 54px;
  margin-top: 0;
  border-radius: 10px;
}

.search-action .search-button {
  height: 100%;
  border-radius: 0;
}

.search-action .search-button-main {
  font-size: 24px;
  letter-spacing: 0.1em;
}

.search-action .search-button-recent {
  font-size: 24px;
  letter-spacing: 0.1em;
}

.compact-button {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
}

.market-settings {
  position: relative;
  flex: 0 0 auto;
}

.market-settings summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px 0 12px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.market-settings summary::-webkit-details-marker {
  display: none;
}

.market-settings summary:hover {
  border-color: #333;
  background: #f6f6f6;
}

.market-settings summary i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #333;
}

.market-settings summary .icon-svg {
  width: 20px;
  height: 20px;
}

.search-chart-actions .market-settings summary {
  width: 38px;
  min-height: 38px;
  height: 38px;
  border: 0;
  padding: 0;
  justify-content: center;
  background: #fff;
  color: #050505;
  box-shadow: 0 1px 3px rgba(20, 38, 68, 0.12);
}

.search-chart-actions .market-settings summary:hover {
  background: #fff;
  color: #050505;
}

.search-chart-actions .market-settings summary i {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.search-chart-actions .market-settings summary .icon-svg {
  width: 16px;
  height: 16px;
}

.market-settings-body {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 8;
  width: min(340px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 36px 12px 12px;
}

.settings-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
}

.search-settings-section {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.search-settings-section > b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-settings-section small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.settings-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.settings-segmented button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.settings-segmented button.active {
  border-color: var(--blue);
  background: #eaf2ff;
  color: var(--blue);
}

.search-setting-toggles {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.search-setting-toggle {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 62px;
  padding: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.search-setting-toggle.active {
  border-color: var(--blue);
  background: #f2f7ff;
}

.search-setting-toggle.locked {
  background: #fafafa;
}

.search-setting-toggle.locked b::after {
  content: "Sign in";
  display: inline-block;
  margin-left: 8px;
  border: 1px solid #d6e5fb;
  border-radius: 999px;
  padding: 1px 6px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.search-setting-toggle.locked .toggle-indicator {
  background: #d5dae1;
}

.search-setting-toggle span {
  display: grid;
  gap: 2px;
}

.search-setting-toggle b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.search-setting-toggle small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.toggle-indicator {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #b7bcc3;
  position: relative;
  margin-top: 1px;
}

.toggle-indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d0d3d7;
}

.search-setting-toggle.active .toggle-indicator {
  background: var(--blue);
}

.search-setting-toggle.active .toggle-indicator::after {
  left: 16px;
}

.settings-popover-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 10px;
}

.chart-frame,
.activity-strip,
.outcome-rail,
.search-chart,
.draw-pad,
.empty-state,
.error-state {
  background: #fff;
  border-color: var(--line);
}

.chart-frame {
  min-height: 172px;
}

.search-chart-shell {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  min-width: 0;
}

.search-chart-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.search-chart-title b {
  color: var(--blue);
}

.search-chart-title span,
.search-chart-tools span {
  color: var(--muted);
  font-size: 12px;
}

.search-chart-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 28px;
}

.search-chart-tools button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 4px;
  height: 26px;
  padding: 0 8px;
  font-weight: 800;
  font-size: 13px;
}

.search-chart {
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
  touch-action: none;
  cursor: grab;
  background: #fff;
  position: relative;
}

.search-chart > svg[data-chart-svg="market-search"] {
  display: block;
  overflow: hidden;
  transform-box: fill-box;
  transition: none;
}

.search-chart-touching > svg[data-chart-svg="market-search"] {
  pointer-events: none;
  will-change: transform;
}

.candle line,
.candle rect {
  vector-effect: non-scaling-stroke;
}

.candle {
  opacity: 0.92;
}

.volume-bar {
  vector-effect: non-scaling-stroke;
}

.volume-layer {
  pointer-events: none;
}

.search-chart-actions {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-view-toggle {
  width: 38px;
  min-height: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #222;
  box-shadow: 0 1px 3px rgba(20, 38, 68, 0.12);
  font: inherit;
  cursor: pointer;
}

.chart-view-toggle:hover {
  border-color: #333;
  background: #fff;
}

.chart-view-toggle i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.chart-view-toggle .icon-svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
}

.chart-actions .chart-view-toggle {
  width: 36px;
  min-height: 36px;
  height: 36px;
  flex: 0 0 auto;
  box-shadow: none;
}

.chart-actions .chart-view-toggle .icon-svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.chart-view-toggle.unavailable,
.icon-action.unavailable {
  opacity: 0.38;
  cursor: not-allowed;
}

.search-chart-actions .chart-view-toggle,
.search-chart-actions .icon-action,
.search-chart-actions .market-settings summary {
  width: 28px;
  min-height: 28px;
  height: 28px;
  box-shadow: 0 1px 3px rgba(20, 38, 68, 0.12);
}

.search-chart-actions .chart-view-toggle i,
.search-chart-actions .market-settings summary i {
  width: 20px;
  height: 20px;
}

.search-chart-actions .chart-view-toggle .icon-svg,
.search-chart-actions .icon-action .icon-svg,
.search-chart-actions .market-settings summary .icon-svg {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.chart-overlay-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  border-radius: 4px;
  height: 30px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.chart-overlay-button:hover {
  border-color: #333;
  background: #fff;
}

.search-chart-dates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  padding-top: 8px;
}

.search-chart-selected {
  border-color: #7e8791;
}

.search-chart-glare {
  animation: search-chart-glare-sweep 1.35s ease-in-out infinite;
  pointer-events: none;
}

@keyframes search-chart-glare-sweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  16% {
    opacity: 0.9;
  }

  74% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(240%);
    opacity: 0;
  }
}

.search-pattern-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid #b7c9e5;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.settings-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  background: #fff;
}

.settings-accordion summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 12px;
  color: var(--blue);
  font-weight: 900;
}

.settings-accordion summary b {
  color: var(--muted);
  font-size: 12px;
}

.settings-body {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.settings-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.threshold-control {
  display: grid;
  gap: 8px;
}

.threshold-control span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.threshold-control input[type="range"] {
  width: 100%;
  height: 24px;
  border: 0;
  padding: 0;
}

.duration-card {
  grid-column: span 1;
}

.duration-visual,
.paired-signal-visual {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.duration-row,
.paired-signal-row {
  display: grid;
  grid-template-columns: minmax(42px, max-content) minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.duration-row span,
.paired-signal-row span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
}

.duration-row b,
.paired-signal-row b {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
  min-width: 0;
}

.duration-track,
.paired-signal-row i {
  height: 8px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}

.duration-fill,
.paired-signal-row u {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.query-fill {
  background: var(--blue);
}

.match-fill {
  background: var(--gray);
}

.paired-signal-row u.query {
  background: var(--blue);
}

.paired-signal-row u.match {
  background: var(--gray);
}

.duration-visual small,
.paired-signal-visual small {
  color: var(--muted);
  font-size: 12px;
}

.search-chart:active {
  cursor: grabbing;
}

.empty-chart {
  display: grid;
  place-items: center;
  color: var(--muted);
  min-height: 160px;
}

.strip-label {
  background: #fff;
  border-bottom-color: var(--line);
}

.hover-tooltip {
  background: #fff;
  color: #333;
  border-color: var(--blue);
}

.info-tip span {
  background: #fff;
  color: #333;
  border-color: var(--blue);
}

.quality.excellent,
.quality.strong,
.future-badge.up {
  background: #d9f0e5;
  color: var(--green);
}

.quality.good {
  background: #fff3d8;
  color: #805800;
}

.quality.weak,
.future-badge.down {
  background: #f9dddd;
  color: var(--red);
}

.future-badge.neutral {
  background: #eee;
  color: #555;
}

.news-empty {
  border-color: var(--line);
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 14px;
  }

  .result-view-tabs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 14px;
    border-radius: 8px;
  }

  .combined-results {
    gap: 28px;
  }

  .combined-result-section + .combined-result-section {
    padding-top: 24px;
  }

  .combined-result-heading {
    margin-bottom: 10px;
  }

  .combined-result-heading h2 {
    font-size: 22px;
  }

  .results-navigation {
    top: 6px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 7px;
    margin-bottom: 12px;
  }

  .results-navigation .find-recent-action,
  .results-navigation .find-recent-action button {
    width: 100%;
  }

  .result-view-tabs button {
    min-width: 0;
    padding: 9px 8px;
    grid-template-columns: 1fr;
    gap: 2px;
    text-align: center;
  }

  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
    padding: 18px;
  }

  .brand {
    justify-content: flex-start;
    padding-right: 54px;
  }

  .mode-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-self: stretch;
    justify-content: space-between;
    gap: 14px;
  }

  .mode-tab {
    flex: 0 1 auto;
    height: 34px;
    min-width: 0;
    padding: 0;
    font-size: clamp(20px, 6.2vw, 28px);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .auth-slot {
    position: absolute;
    top: 16px;
    right: 18px;
    justify-self: auto;
    justify-content: flex-end;
    width: auto;
  }

  .onboarding-help {
    position: absolute;
    top: 20px;
    right: 70px;
    z-index: 22;
    width: 34px;
    height: 34px;
  }

  .onboarding-card {
    width: calc(100vw - 24px);
    padding: 12px 14px;
    max-height: min(360px, calc(100vh - 24px));
    gap: 7px;
  }

  .onboarding-card.place-top {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .onboarding-card.place-bottom {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .onboarding-card h2 {
    font-size: 18px;
  }

  .onboarding-card p {
    font-size: 13px;
    line-height: 1.32;
  }

  .onboarding-card small {
    font-size: 11px;
    line-height: 1.25;
  }

  .onboarding-restart-note {
    font-size: 10.5px !important;
  }

  .onboarding-progress {
    gap: 4px;
  }

  .onboarding-progress i {
    height: 3px;
  }

  .onboarding-actions {
    gap: 7px;
  }

  .onboarding-actions button {
    min-height: 36px;
    font-size: 13px;
  }

  .onboarding-skip {
    font-size: 13px;
  }

  .google-entry {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
  }

  .google-entry > span:not(.google-g) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .google-g {
    width: 26px;
    height: 26px;
  }

  .auth-popover {
    top: calc(100% + 8px);
    right: 0;
    width: min(300px, calc(100vw - 36px));
  }

  .pattern-controls-row {
    grid-template-columns: 1fr;
  }

  .pattern-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Keep the search action above Safari's bottom chrome on first load. */
    height: 300px;
    gap: 8px;
    padding: 8px;
  }

  .pattern-card {
    min-height: 96px;
    padding: 9px;
  }

  .pattern-card span {
    font-size: 14px;
  }

  .pattern-card b {
    font-size: 13px;
  }

  .pattern-card-preview {
    height: 38px;
  }

  .pattern-action-row {
    min-width: 0;
  }

  .pattern-action-row .search-button {
    width: auto;
  }

  .pattern-action-row .search-action {
    width: 100%;
  }

  .market-settings[open] .market-settings-body {
    position: fixed;
    left: var(--page-gutter);
    right: var(--page-gutter);
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 1200;
    width: auto;
    max-height: min(78vh, 620px);
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  }

  .status-pill {
    justify-self: stretch;
  }

  .layout,
  .query-panel,
  .market-workspace,
  .draw-workspace {
    grid-template-columns: 1fr;
  }

  .surface {
    padding: 30px 0 18px;
  }

  .layout.has-results {
    padding-bottom: 0;
  }

  .visual-lead.panel,
  .visual-lead {
    padding: 0 12px;
  }

  .match-workbench.visual-lead {
    padding-top: 0;
    margin-top: 6px;
  }

  .market-workspace {
    gap: 18px;
    width: 100%;
    min-width: 0;
  }

  .market-query-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-left: 0;
    padding: 16px 0 0;
    min-width: 0;
  }

  .company-primary {
    min-height: 0;
    font-size: 30px;
  }

  .date-range-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .date-time-control {
    min-width: 0;
  }

  .date-time-control > span {
    font-size: 12px;
  }

  .date-time-trigger {
    height: 28px;
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-chart-shell {
    margin-top: 0;
  }

  .search-chart {
    height: clamp(200px, 56vw, 300px);
    min-width: 0;
  }

  .search-chart-actions {
    top: 8px;
    right: 8px;
  }

  .search-chart-dates {
    font-size: 13px;
    line-height: 1.12;
    text-align: center;
    padding-top: 10px;
  }

  .search-chart-dates span {
    min-width: 72px;
  }

  .search-button {
    width: 100%;
  }

  .search-action {
    width: 100%;
    height: 54px;
  }

  .search-action .search-button-main {
    font-size: 20px;
    letter-spacing: 0.09em;
  }

  .search-action .search-button-recent {
    font-size: 20px;
    letter-spacing: 0.09em;
  }

  .journey-next-step {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 1400;
    grid-template-columns: 30px minmax(0, 1fr);
    width: min(330px, calc(100vw - 24px));
    gap: 9px;
    margin: 0;
    padding: 12px 38px 12px 12px;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(20, 38, 68, 0.22);
  }

  .journey-dismiss {
    display: grid;
    place-items: center;
  }

  .journey-step-icon {
    width: 30px;
    height: 30px;
  }

  .journey-step-icon .icon-svg {
    width: 17px;
    height: 17px;
  }

  .journey-next-step b {
    font-size: 12px;
    line-height: 1.18;
  }

  .journey-next-step span {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
  }

  .journey-next-step button {
    grid-column: 2;
    width: auto;
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  .journey-next-step .journey-dismiss {
    grid-column: auto;
    width: 24px;
    min-height: 24px;
    padding: 0 0 2px;
    font-size: 17px;
  }

  .time-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
    padding: 13px 7px;
  }

  .time-context > div {
    padding: 7px 8px;
    border-radius: 5px;
  }

  .metric-group-title,
  .time-context > .metric-group-title {
    font-size: 10px;
    letter-spacing: 0.07em;
    padding: 4px 9px 3px;
  }

  .time-context > div > span,
  .time-context .card-label,
  .distribution-panel span {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }

  .insight-card {
    gap: 4px;
  }

  .insight-card b,
  .selected-summary b {
    font-size: clamp(19px, 6.2vw, 25px);
  }

  .insight-card.outcome-only,
  .insight-card.shape-only,
  .insight-card.duration-card {
    min-height: 62px;
  }

  .recent-setup-card {
    grid-column: 1 / -1;
  }

  .historical-path-card-body {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .historical-path-summary b {
    font-size: 19px;
  }

  .historical-path-summary p,
  .historical-path-summary small,
  .historical-path-summary > span {
    font-size: 11px;
  }

  .historical-path-visual {
    padding: 8px 0 0;
  }

  .historical-path-forecast {
    min-height: 208px;
  }

  .historical-path-plot {
    height: auto;
    aspect-ratio: 760 / 250;
  }

  .historical-path-forecast svg {
    height: auto;
    aspect-ratio: 760 / 250;
  }

  .historical-path-axis-labels {
    height: 44px;
    font-size: 13px;
    letter-spacing: 1.2px;
  }

  .historical-path-axis-labels .observed,
  .historical-path-axis-labels .forecast {
    top: 6px;
  }

  .historical-path-axis-labels .now {
    top: 24px;
    font-size: 12px;
  }

  .historical-path-forecast-controls {
    top: 8px;
    right: 8px;
  }

  .historical-path-header-actions {
    gap: 5px;
  }

  .historical-path-zoom-controls button {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }

  .historical-path-zoom-controls .historical-path-zoom-reset {
    font-size: 10px;
  }

  .historical-path-forecast-legend {
    gap: 6px;
    padding: 4px 8px 2px;
    font-size: 9px;
  }

  .historical-path-entry-note {
    text-align: left;
  }

  .historical-path-legend-swatch {
    width: 12px;
    margin-right: 3px;
    height: 2px;
  }

  .historical-path-dates {
    padding: 0 8px 7px;
    font-size: 8px;
  }

  .historical-path-route {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 4px;
    padding: 7px 8px;
  }

  .historical-path-route b {
    font-size: 13px;
  }

  .historical-path-step {
    grid-template-columns: minmax(0, 1fr) 76px 50px;
    gap: 6px;
    font-size: 10px;
  }

  .historical-path-table-wrap {
    max-height: 188px;
  }

  .historical-path-table th,
  .historical-path-table td {
    padding: 6px 7px;
    font-size: 11px;
  }

  .quality-row,
  .duration-row {
    gap: 6px;
  }

  .duration-row,
  .paired-signal-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .duration-row span,
  .paired-signal-row span,
  .duration-row b,
  .paired-signal-row b {
    font-size: 11px;
  }

  .duration-track,
  .paired-signal-row i {
    min-width: 0;
  }

  .draw-query-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-left: 0;
    padding: 14px 0 0;
  }

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

  .story-grid,
  .visual-legend,
  .lead-stat-strip,
  .common-indicator,
  .match-toolbar,
  .match-picker,
  .stats-board,
  .distribution-panel,
  .evidence-head,
  .context-line,
  .news-columns {
    grid-template-columns: 1fr;
  }

  .lead-visual-head {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 6px;
  }

  .lead-visual-head .ticker {
    font-size: clamp(24px, 7.4vw, 30px);
    line-height: 1.02;
    max-width: 100%;
  }

  .result-identity {
    display: block;
  }

  .result-identity .ticker-subtitle {
    margin-top: 4px;
  }

  .lead-visual-head .result-ticker-name {
    min-height: calc(2 * 1.02em);
    max-height: calc(2 * 1.02em);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
  }

  .lead-visual-head .ticker-subtitle {
    font-size: 14px;
    line-height: 1.2;
  }

  .lead-visual-head .match-window {
    display: none;
  }

  .lead-visual-head .result-query-context {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.25;
  }

  .lead-badges {
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }

  .lead-badges .chart-actions {
    order: 1;
  }

  .lead-badges .match-rotator {
    order: 2;
    margin-left: auto;
  }

  .match-rotator {
    grid-template-columns: 28px auto 28px;
    gap: 4px;
    padding: 2px 5px;
  }

  .match-rotator button,
  .icon-action,
  .chart-actions .chart-view-toggle {
    width: 28px;
    min-height: 28px;
    height: 28px;
  }

  .chart-actions .icon-svg,
  .lead-badges .icon-svg {
    width: 18px;
    height: 18px;
    min-height: 0;
  }

  .match-rotator span {
    min-width: 42px;
    font-size: 13px;
  }

  .chart-actions {
    gap: 6px;
    flex: 0 0 auto;
  }

  .forecast-chart {
    width: 100%;
    margin-top: 2px;
  }

  .forecast-chart .chart-frame {
    height: clamp(140px, 38vw, 165px);
    aspect-ratio: auto;
  }

  .insight-card-top {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .insight-card-top > span,
  .time-context .card-label {
    flex: 1 1 0;
    width: auto;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
  }

  /* The forecast controls must remain a compact right-hand cluster on
     phones. The generic card-header rule above made this direct span grow
     into the title area, which caused the controls to cover the return. */
  .historical-path-card .insight-card-top > .historical-path-header-actions {
    flex: 0 0 auto;
    width: auto;
    gap: 5px;
    white-space: normal;
    align-self: flex-start;
  }

  .historical-path-card .insight-card-top > .historical-path-opportunity {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 0;
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 3px;
  }

  .time-context .label-full {
    display: none;
  }

  .time-context .label-short {
    display: inline;
  }

  .time-context .insight-card.primary .card-label,
  .time-context .insight-card.outcome-only .card-label {
    font-size: 0;
  }

  .time-context .insight-card.primary .card-label::before {
    content: "All";
    font-size: 9.5px;
  }

  .time-context .insight-card.outcome-only .card-label::before {
    content: "Outcome";
    font-size: 9.5px;
  }

  .time-context .insight-card.primary .card-label .info-tip,
  .time-context .insight-card.outcome-only .card-label .info-tip {
    font-size: 9.5px;
    margin-left: 1px;
  }

  .time-context .metric-tools {
    gap: 3px;
  }

  .metric-switch button {
    font-size: 9.5px;
    padding: 4px 6px;
  }

  .metric-switch {
    padding: 1px;
    gap: 2px;
  }

  .time-context .info-tip {
    width: 15px;
    height: 15px;
  }

  .time-context .info-tip > i {
    font-size: 9.5px;
  }

  .composition-bar {
    display: none;
  }

  .duration-visual,
  .paired-signal-visual {
    gap: 5px;
    margin-top: 5px;
  }

  .outcome-agreement-strip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(112px, 1fr));
    gap: 8px;
    margin-top: 14px;
    padding: 13px 9px;
  }

  .outcome-agreement-all,
  .outcome-agreement-confidence {
    height: 100%;
    box-sizing: border-box;
  }

  .outcome-agreement-all {
    padding: 10px;
  }

  .outcome-agreement-confidence {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "score"
      "meter"
      "spread";
    gap: 8px;
    padding: 10px;
  }

  .outcome-agreement-main {
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
  }

  .monthly-pace-summary > b {
    font-size: 30px;
  }

  .outcome-agreement-main b {
    font-size: 27px;
    line-height: 1.2;
  }

  .monthly-pace-summary > span,
  .outcome-agreement-main span {
    font-size: 10px;
  }

  .monthly-pace-summary {
    align-items: flex-start;
  }

  .outcome-agreement-meter {
    height: 10px;
  }

  .outcome-agreement-detail {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    justify-items: stretch;
    gap: 8px;
    min-width: 0;
    text-align: left;
  }

  .outcome-agreement-detail b {
    justify-self: end;
    text-align: right;
  }

  .outcome-agreement-detail span {
    font-size: 10px;
  }

  .outcome-agreement-detail b {
    font-size: 14px;
  }

  .evidence-board {
    margin-top: 16px;
  }

  .evidence-board .outcome-rail {
    padding: 10px 8px 8px;
  }

  .no-matches-state {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .no-matches-icon {
    width: 36px;
    height: 36px;
  }

  .no-matches-state b {
    font-size: 20px;
  }

  .no-matches-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .outcome-rail {
    grid-template-rows: 178px 26px;
    height: 220px;
    min-height: 220px;
    padding: 8px 6px 4px;
  }

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

  .flow-arrow,
  .mini-flow i {
    display: none;
  }

  .control-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 12px;
    padding-right: 12px;
  }

  .legal-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .cookie-consent {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent button {
    flex: 1;
  }

  .evidence-result,
  .outcome-view-switch {
    justify-self: start;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .query-panel,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .query-title {
    display: block;
  }

  .query-title span {
    display: block;
    margin-top: 4px;
  }

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

  .flow-arrow,
  .mini-flow i {
    display: none;
  }

  .lead-visual-head {
    grid-template-columns: 1fr;
  }

  .lead-badges {
    justify-content: flex-start;
  }

  .visual-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-toolbar,
  .match-picker,
  .common-indicator,
  .distribution-panel,
  .evidence-head,
  .news-columns {
    grid-template-columns: 1fr;
  }

  .evidence-result,
  .outcome-view-switch {
    justify-self: start;
  }

  .stats-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .time-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gesture-debug-shell {
  min-height: 100vh;
}

.gesture-debug-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 28px 34px 48px;
}

.gesture-debug-chart h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
}

.gesture-debug-chart p {
  margin: 0 0 18px;
  max-width: 760px;
  color: var(--muted);
  font-weight: 700;
  font-size: 17px;
}

.gesture-debug-chart .search-chart-shell {
  max-width: none;
}

.gesture-debug-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  align-self: start;
  background: #fff;
  position: sticky;
  top: 16px;
}

.gesture-debug-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gesture-debug-stats {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.gesture-debug-stats div,
.gesture-debug-trace div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #eceff3;
  padding: 6px 0;
}

.gesture-debug-stats dt {
  color: var(--muted);
  font-weight: 800;
}

.gesture-debug-stats dd {
  margin: 0;
  font-weight: 900;
}

.gesture-debug-actions {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.gesture-debug-actions button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 900;
  text-align: left;
}

.gesture-debug-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.gesture-debug-result {
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  display: grid;
  gap: 4px;
  font-weight: 800;
}

.gesture-debug-result dl {
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.gesture-debug-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 6px;
}

.gesture-debug-result dt,
.gesture-debug-result dd {
  margin: 0;
}

.gesture-debug-result dt {
  color: inherit;
  opacity: 0.78;
}

.gesture-debug-result dd {
  font-weight: 900;
}

.gesture-debug-result dl div.pass dd {
  color: #007a4d;
}

.gesture-debug-result dl div.fail dd {
  color: #b3262d;
}

.gesture-debug-result.pass {
  background: #edf8f1;
  color: #007a4d;
}

.gesture-debug-result.fail {
  background: #fff0f1;
  color: #b3262d;
}

.gesture-debug-trace {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.gesture-debug-trace div {
  grid-template-columns: 72px 1fr;
}

.gesture-debug-trace p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 900px) {
  .gesture-debug-layout {
    grid-template-columns: 1fr;
    padding: 18px 14px 34px;
  }

  .gesture-debug-panel {
    position: static;
  }
}

/* Result metric groups share one shell so their edges and title treatment stay aligned. */
.outcome-agreement-strip,
.time-context {
  --metric-group-inset: 10px;
  box-sizing: border-box;
  width: 100%;
  margin: 26px 0 12px;
  padding: var(--metric-group-inset);
  overflow: visible;
}

.metric-group-title,
.time-context > .metric-group-title {
  top: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  box-sizing: border-box;
  padding: 3px 11px;
  transform: translateX(-50%);
  border: 1px solid #d6e1ee;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  white-space: nowrap;
}

.recent-path-preview {
  margin-top: 14px;
}

.recent-path-preview .recent-setup-card {
  margin: 0;
}

.historical-only-results-note {
  display: grid;
  gap: 2px;
  width: min(100%, 760px);
  margin: 0 auto 14px;
  padding: 10px 12px;
  border: 1px solid #d9e5f2;
  border-radius: 7px;
  background: #f8fbff;
  color: var(--ink);
}

/* The historical-only explanation is the intentional post-search landing
   point, so leave room for mobile browser chrome when it is scrolled to. */
[data-result-scroll-target] {
  scroll-margin-top: 72px;
}

.historical-only-results-note strong {
  font-size: 14px;
}

.historical-only-results-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .outcome-agreement-strip,
  .time-context {
    --metric-group-inset: 9px;
    margin-top: 24px;
    margin-bottom: 10px;
    padding: var(--metric-group-inset);
  }

  .metric-group-title,
  .time-context > .metric-group-title {
    min-height: 20px;
    padding: 3px 9px;
  }

  .historical-only-results-note {
    margin-bottom: 10px;
  }
}

/* Static guide pages share the landing header and must win over legacy page rules. */
.landing-page .landing-brand,
.landing-page .landing-brand b,
.guide-article-nav .landing-brand,
.guide-article-nav .landing-brand b {
  color: var(--ink);
  text-decoration: none;
}

.guide-hub-page .landing-section-copy h1 {
  color: var(--ink);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

/* The guide hub must collapse before browser zoom turns two desktop columns into unreadable cards. */
@media (max-width: 960px) {
  .guide-hub-page .guide-hub-library {
    padding-top: 42px;
  }

  .guide-hub-page .landing-section-copy h1 {
    font-size: clamp(34px, 5.2vw, 46px);
  }

  .guide-hub-page .landing-section-copy {
    margin-bottom: 22px;
  }

  .guide-hub-page .landing-copy-grid {
    grid-template-columns: 1fr;
  }

  .guide-hub-page .landing-guide-card {
    min-height: 0;
    padding: 18px;
  }
}
