@import "./site.css?v=20260731-related";

.cb-blog-hero {
  padding-block: clamp(4.25rem, 8vw, 6.75rem) clamp(2.75rem, 5vw, 4.75rem);
  background:
    radial-gradient(
      ellipse 70% 50% at 50% -24%,
      color-mix(in srgb, var(--muted) 55%, #fff),
      transparent 68%
    ),
    linear-gradient(180deg, color-mix(in srgb, var(--muted) 35%, #fff), #fff 78%);
}

.cb-blog-hero__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 900px) {
  .cb-blog-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cb-blog-hero__copy {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  max-width: 46rem;
}

.cb-blog-hero__copy > * {
  margin-block: 0;
}

.cb-blog-hero__copy .cb-lead {
  max-width: 40rem;
  grid-column: 1 / -1;
}

.cb-blog-hero__copy .cb-blog-search {
  max-width: 36rem;
  grid-column: 1 / -1;
}

.cb-blog-hero__copy .cb-eyebrow,
.cb-blog-hero__copy .cb-title {
  grid-column: 1 / -1;
}

.cb-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-block: 1rem 0;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
}

.cb-blog-meta span + span::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  vertical-align: middle;
}

.cb-blog-hero .cb-blog-meta {
  gap: 0.55rem;
  margin-block: 0;
}

@media (min-width: 980px) {
  .cb-blog-hero .cb-blog-meta {
    display: flex;
    width: max-content;
    max-width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: color-mix(in srgb, var(--muted-foreground) 88%, var(--foreground));
    font-size: 0.875rem;
    line-height: 1.35;
    box-shadow: var(--shadow-sm);
  }

  .cb-blog-hero .cb-blog-meta span {
    padding-top: 0;
    border-top: 0;
  }

  .cb-blog-hero .cb-blog-meta span + span::before {
    display: inline-block;
  }
}

.cb-blog-hero__media,
.cb-article-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.cb-blog-hero__media img,
.cb-article-figure img {
  width: 100%;
  height: auto;
}

.cb-blog-hero__media {
  aspect-ratio: 2 / 1;
  max-height: 32rem;
  border-radius: clamp(1rem, 2.5vw, 2rem);
}

@media (max-width: 720px) {
  .cb-blog-hero__media {
    aspect-ratio: 4 / 3;
  }
}

.cb-blog-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-blog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .cb-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cb-post-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cb-post-card:hover {
  color: var(--foreground);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-md);
}

.cb-post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}

.cb-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.cb-post-card:hover .cb-post-card__media img {
  transform: scale(1.03);
}

.cb-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.35rem 1.4rem;
}

.cb-post-card__body h2 {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.25;
}

.cb-post-card__body p {
  margin: 0;
}

.cb-post-card__tag {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-post-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: color-mix(in srgb, var(--foreground) 82%, var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.45;
}

.cb-post-card .cb-blog-meta {
  margin-top: auto;
  color: color-mix(in srgb, var(--muted-foreground) 88%, var(--foreground));
  font-size: 0.9375rem;
}

.cb-post-card--featured {
  box-shadow: var(--shadow-md);
}

.cb-blog-start-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .cb-blog-start-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: stretch;
  }

  /* Let the image fill stretch height instead of a dead gap under the copy */
  .cb-blog-start-grid > .cb-post-card--featured .cb-post-card__media {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 18rem;
  }

  .cb-blog-start-grid > .cb-post-card--featured .cb-post-card__body {
    flex: 0 0 auto;
  }

  .cb-blog-start-grid > .cb-post-card--featured .cb-blog-meta {
    margin-top: 0.15rem;
  }

  .cb-post-card--featured .cb-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  }

  .cb-post-card--featured .cb-post-card__desc {
    -webkit-line-clamp: 3;
    font-size: 1.0625rem;
  }
}

.cb-blog-start-grid__side {
  display: grid;
  gap: 1.25rem;
}

.cb-topic-browser {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .cb-topic-browser {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .cb-topic-browser {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cb-topic-pill {
  display: grid;
  gap: 0.2rem;
  min-height: 5.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.82);
  color: var(--foreground);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cb-topic-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  background: #fff;
  color: var(--foreground);
}

.cb-topic-pill span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-topic-pill strong {
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.25;
}

.cb-topic-pill em {
  color: var(--muted-foreground);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.35;
}

.cb-topic-pill--featured {
  background: #fff;
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.cb-article-related {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--color-brand-softer);
}

.cb-article-related h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.cb-article-related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cb-article-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 130;
  height: 3px;
  background: transparent;
}

.cb-article-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--color-secondary-brand));
  transform-origin: left center;
}

.cb-article-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 1080px) {
  .cb-article-layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }
}

.cb-article {
  max-width: 48rem;
}

.cb-article > * + * {
  margin-top: 1.25rem;
}

.cb-article h2 {
  margin-top: 3rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.cb-article h3 {
  margin-top: 2rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.cb-article p,
.cb-article li {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.cb-article ul {
  padding-left: 1.2rem;
}

.cb-article strong {
  color: var(--foreground);
}

.cb-article p[data-seo-internal-links] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--primary) 5%, #fff);
}

.cb-article p[data-seo-internal-links] a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

/* Inline article links only — never restyle .cb-btn CTAs (kills padding / causes overlap). */
.cb-article p:not([data-seo-internal-links]) > a:not(.cb-btn) {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 0.25rem;
  vertical-align: middle;
}

.cb-article-callout {
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: var(--radius-xl);
  background: var(--color-brand-softer);
}

.cb-article-callout p {
  margin: 0;
  color: var(--foreground);
}

.cb-article-figure {
  margin-block: 2rem;
}

.cb-article-figure figcaption {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.875rem;
}

.cb-loop-figure {
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 97, 239, 0.12), transparent 18rem),
    radial-gradient(circle at 86% 18%, rgba(123, 182, 98, 0.12), transparent 16rem),
    var(--card);
}

.cb-loop {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 720px) {
  .cb-loop {
    grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
  }
}

.cb-loop__step {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 32rem;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 719px) {
  .cb-loop__step {
    min-height: 0;
  }
}

.cb-loop__badge {
  position: absolute;
  top: -0.9rem;
  left: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0.55rem 1.4rem rgba(111, 97, 239, 0.28);
}

.cb-loop__icon {
  display: grid;
  width: 4.75rem;
  height: 4.75rem;
  place-items: center;
  align-self: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cb-loop svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cb-loop__step h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
}

.cb-loop__step p {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.cb-loop__arrow {
  display: none;
  color: var(--primary);
}

@media (min-width: 720px) {
  .cb-loop__arrow {
    display: flex;
    justify-content: center;
  }

  .cb-loop__arrow svg {
    width: 2.5rem;
  }
}

@media (max-width: 719px) {
  .cb-loop__arrow {
    display: flex;
    justify-content: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .cb-loop {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .cb-loop__step {
    gap: 0.7rem;
    padding: 0.9rem;
  }

  .cb-loop__icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  .cb-loop__icon svg {
    width: 2.25rem;
    height: 2.25rem;
  }

  .cb-loop__supplier-map {
    min-height: 8.5rem;
  }

  .cb-loop__margin-plot {
    height: 6.5rem;
  }
}

.cb-loop__supplier-map {
  position: relative;
  min-height: 12rem;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111, 97, 239, 0.13), rgba(111, 97, 239, 0.04) 58%, transparent 59%);
}

.cb-loop__supplier-map::before,
.cb-loop__supplier-map::after {
  content: "";
  position: absolute;
  inset: 50% 12%;
  height: 1px;
  border-top: 1px dashed rgba(111, 97, 239, 0.5);
}

.cb-loop__supplier-map::after {
  transform: rotate(90deg);
}

.cb-loop__hub,
.cb-loop__node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cb-loop__hub {
  inset: 50% auto auto 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: #fff;
}

.cb-loop__node {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--foreground);
}

.cb-loop__node svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cb-loop__node--a {
  top: 14%;
  left: 20%;
}

.cb-loop__node--b {
  top: 18%;
  right: 18%;
}

.cb-loop__node--c {
  bottom: 16%;
  left: 16%;
}

.cb-loop__node--d {
  right: 18%;
  bottom: 14%;
}

.cb-loop__csv-stack {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
}

.cb-loop__csv-stack div {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.cb-loop__csv-stack strong,
.cb-loop__csv-stack span,
.cb-loop__invoice span,
.cb-loop__invoice strong,
.cb-loop__invoice small {
  display: block;
}

.cb-loop__csv-stack strong {
  color: var(--foreground);
  font-size: 0.78rem;
}

.cb-loop__csv-stack span,
.cb-loop__invoice small {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
}

.cb-loop__monitor-card,
.cb-loop__margin-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cb-loop__invoice {
  margin: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: var(--radius-lg);
  background: var(--color-brand-softer);
}

.cb-loop__invoice span {
  color: var(--color-brand-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cb-loop__invoice strong {
  margin-top: 0.2rem;
  color: var(--foreground);
  font-size: 0.88rem;
}

.cb-loop__price-list {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.75rem 0.75rem;
}

.cb-loop__price-row {
  display: grid;
  gap: 0.2rem;
  grid-template-columns: 1fr auto;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  align-items: center;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  line-height: 1.2;
}

.cb-loop__price-row strong {
  color: var(--foreground);
  font-size: 0.72rem;
  font-weight: 700;
}

.cb-loop__price-row span {
  color: var(--muted-foreground);
  font-size: 0.68rem;
}

.cb-loop__price-row em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  background: var(--muted);
  color: #0c7a43;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

.cb-loop__price-row.is-alert {
  border: 1px solid rgba(196, 18, 30, 0.22);
  background: rgba(196, 18, 30, 0.08);
}

.cb-loop__price-row.is-alert em {
  background: rgba(196, 18, 30, 0.12);
  color: #9f1020;
}

.cb-loop__alert-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.7rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: var(--radius-lg);
  background: var(--color-brand-softer);
  color: var(--color-brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.cb-loop__alert-strip span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.cb-loop__alert-strip svg {
  width: 1rem;
  height: 1rem;
}

.cb-loop__margin-card {
  display: grid;
  gap: 0;
}

.cb-loop__risk-label {
  padding: 0.45rem 0.75rem;
  color: var(--foreground);
  font-size: 0.72rem;
  font-weight: 700;
}

.cb-loop__risk-label--high {
  background: rgba(196, 18, 30, 0.13);
}

.cb-loop__risk-label--watch {
  background: rgba(255, 211, 1, 0.22);
}

.cb-loop__risk-label--safe {
  background: rgba(123, 182, 98, 0.18);
}

.cb-loop__margin-plot {
  position: relative;
  height: 8rem;
  padding: 0.75rem;
  background:
    linear-gradient(180deg, rgba(196, 18, 30, 0.08), rgba(255, 211, 1, 0.11) 50%, rgba(123, 182, 98, 0.13));
}

.cb-loop__margin-plot svg {
  position: absolute;
  inset: 0.75rem;
  width: calc(100% - 1.5rem);
  height: calc(100% - 1.5rem);
  color: var(--primary);
}

.cb-loop__margin-fill {
  fill: rgba(111, 97, 239, 0.12);
  stroke: none;
}

.cb-loop__margin-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
}

.cb-loop__baseline {
  position: absolute;
  right: 0.75rem;
  left: 0.75rem;
  top: 58%;
  border-top: 1px dashed rgba(21, 22, 30, 0.36);
}

.cb-loop__marker {
  position: absolute;
  top: calc(58% - 0.4rem);
  left: 56%;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 0.3rem rgba(111, 97, 239, 0.15);
}

.cb-loop__action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin-top: auto;
}

.cb-loop__action-row span {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--foreground);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

.cb-cogs-figure {
  background:
    radial-gradient(circle at 15% 15%, rgba(111, 97, 239, 0.12), transparent 18rem),
    radial-gradient(circle at 85% 20%, rgba(123, 182, 98, 0.1), transparent 16rem),
    var(--card);
}

.cb-cogs-diagram {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.cb-cogs-diagram svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cb-cogs-formula {
  display: grid;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .cb-cogs-formula {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr);
    align-items: center;
  }
}

.cb-cogs-formula__card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.cb-cogs-formula__card--result {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
  box-shadow: var(--shadow-md);
}

.cb-cogs-formula__icon,
.cb-cogs-components span,
.cb-cogs-components__hub span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--color-brand-softer);
  color: var(--primary);
}

.cb-cogs-formula__icon svg,
.cb-cogs-components span svg,
.cb-cogs-components__hub span svg {
  width: 1.65rem;
  height: 1.65rem;
}

.cb-cogs-formula__card p,
.cb-cogs-formula__card strong,
.cb-cogs-formula__card small {
  display: block;
}

.cb-cogs-formula__card p {
  margin: 0.75rem 0 0.25rem;
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.cb-cogs-formula__card strong {
  color: var(--primary);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.05;
}

.cb-cogs-formula__card small {
  margin-top: 0.35rem;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cb-cogs-formula__op {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0.5rem 1.25rem rgba(111, 97, 239, 0.24);
}

.cb-cogs-components {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .cb-cogs-components {
    grid-template-columns: 13rem minmax(0, 1fr);
    align-items: center;
  }
}

.cb-cogs-components__hub {
  display: grid;
  gap: 0.45rem;
  place-items: center;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.cb-cogs-components__hub strong {
  color: var(--foreground);
  font-size: 1.8rem;
  line-height: 1;
}

.cb-cogs-components__hub small {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.8rem;
}

.cb-cogs-components__grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .cb-cogs-components__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cb-cogs-components__grid article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.cb-cogs-components__grid h3 {
  margin: 0.75rem 0 0.35rem;
  color: var(--foreground);
  font-size: 0.98rem;
  line-height: 1.2;
}

.cb-cogs-components__grid p {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cb-cogs-components__exclude {
  padding: 0.75rem 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--muted);
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (min-width: 760px) {
  .cb-cogs-components__exclude {
    grid-column: 1 / -1;
  }
}

.cb-cogs-margin {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 760px) {
  .cb-cogs-margin {
    grid-template-columns: minmax(0, 1fr) 8rem minmax(0, 1fr);
  }
}

.cb-cogs-margin__panel {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.cb-cogs-margin__panel--pressure {
  border-color: rgba(196, 18, 30, 0.24);
  background: linear-gradient(180deg, rgba(196, 18, 30, 0.06), #fff);
}

.cb-cogs-margin__panel h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
}

.cb-cogs-margin__bar {
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 4.25rem;
  height: 12rem;
  overflow: hidden;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--muted);
}

.cb-cogs-margin__profit,
.cb-cogs-margin__cost {
  display: block;
}

.cb-cogs-margin__profit {
  background: linear-gradient(180deg, rgba(123, 182, 98, 0.9), rgba(123, 182, 98, 0.58));
}

.cb-cogs-margin__cost {
  background: linear-gradient(180deg, rgba(111, 97, 239, 0.82), rgba(111, 97, 239, 0.52));
}

.cb-cogs-margin__panel--pressure .cb-cogs-margin__cost {
  background: linear-gradient(180deg, rgba(196, 18, 30, 0.72), rgba(196, 18, 30, 0.42));
}

.cb-cogs-margin dl {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.cb-cogs-margin dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius);
  background: rgba(241, 244, 248, 0.76);
}

.cb-cogs-margin dt,
.cb-cogs-margin dd {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 0.76rem;
}

.cb-cogs-margin dt {
  color: var(--muted-foreground);
}

.cb-cogs-margin dd {
  color: var(--foreground);
  font-weight: 800;
}

.cb-cogs-margin__chip {
  justify-self: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.cb-cogs-margin__chip--healthy {
  background: rgba(123, 182, 98, 0.16);
  color: #0c7a43;
}

.cb-cogs-margin__chip--pressure {
  background: rgba(196, 18, 30, 0.12);
  color: #9f1020;
}

.cb-cogs-margin__change {
  display: grid;
  gap: 0.5rem;
  place-items: center;
  color: var(--primary);
  text-align: center;
}

.cb-cogs-margin__change span {
  display: none;
}

@media (min-width: 760px) {
  .cb-cogs-margin__change span {
    display: block;
  }
}

.cb-cogs-margin__change strong {
  color: var(--foreground);
  font-size: 0.86rem;
  line-height: 1.2;
}

.cb-cogs-margin__change em {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(196, 18, 30, 0.1);
  color: #9f1020;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.cb-cogs-margin__callout {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-lg);
  background: var(--color-brand-softer);
  color: var(--foreground);
  font-weight: 700;
  text-align: center;
}

@media (min-width: 760px) {
  .cb-cogs-margin__callout {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-cogs-margin__profit,
  .cb-cogs-margin__cost {
    transition: none;
  }
}

.cb-inflation-figure {
  background:
    radial-gradient(circle at 12% 12%, rgba(111, 97, 239, 0.1), transparent 16rem),
    radial-gradient(circle at 88% 16%, rgba(242, 166, 84, 0.1), transparent 15rem),
    var(--card);
}

.cb-inflation-diagram {
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--foreground);
}

.cb-inflation-costs {
  display: grid;
  gap: 1rem;
}

.cb-inflation-costs__head,
.cb-inflation-costs__total {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
}

.cb-inflation-costs__head strong,
.cb-inflation-costs__total strong {
  color: var(--foreground);
  font-size: clamp(1rem, 3vw, 1.35rem);
  line-height: 1.1;
}

.cb-inflation-costs__head span,
.cb-inflation-costs__total span {
  display: block;
  max-width: 34rem;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.84rem;
  line-height: 1.35;
}

.cb-inflation-costs__summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
  min-width: min(100%, 18rem);
}

.cb-inflation-costs__summary span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted-foreground);
  text-align: center;
}

.cb-inflation-costs__summary b {
  color: var(--foreground);
  font-family: var(--font-primary);
  font-size: 1rem;
}

.cb-inflation-costs__summary i {
  width: 1.3rem;
  height: 0.12rem;
  border-radius: 999px;
  background: var(--primary);
}

.cb-inflation-costs__summary i::after {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.17rem;
  margin-left: auto;
  border-top: 0.12rem solid var(--primary);
  border-right: 0.12rem solid var(--primary);
  content: "";
  transform: rotate(45deg);
}

.cb-inflation-costs__total strong {
  color: #9f1020;
}

.cb-inflation-costs__grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .cb-inflation-costs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cb-inflation-costs__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem 0.75rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.cb-inflation-costs__icon {
  display: grid;
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--color-brand-softer);
  color: var(--primary);
  font-weight: 800;
}

.cb-inflation-costs__card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 0.9rem;
  line-height: 1.25;
}

.cb-inflation-costs__card dl {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.cb-inflation-costs__card dl div {
  min-width: 0;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(17, 17, 24, 0.035);
}

.cb-inflation-costs__card dt,
.cb-inflation-costs__card dd {
  margin: 0;
}

.cb-inflation-costs__card dt {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cb-inflation-costs__card dd {
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 800;
}

.cb-inflation-costs__meter {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.28rem;
  padding-top: 0.2rem;
}

.cb-inflation-costs__meter span {
  display: block;
  height: 0.58rem;
  border-radius: 999px;
}

.cb-inflation-costs__meter span:first-child {
  width: var(--before);
  background: rgba(111, 97, 239, 0.26);
}

.cb-inflation-costs__meter span:last-child {
  width: var(--after);
  background: linear-gradient(90deg, var(--primary), rgba(242, 166, 84, 0.95));
}

.cb-inflation-costs__card p {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.cb-inflation-costs__card p strong {
  color: #9f1020;
  font-size: 0.88rem;
  line-height: 1.1;
}

.cb-inflation-costs__card p b {
  display: inline-flex;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(196, 18, 30, 0.08);
  color: #9f1020;
  font-size: 0.78rem;
}

.cb-inflation-costs__total {
  border-color: rgba(196, 18, 30, 0.18);
  background: linear-gradient(180deg, rgba(196, 18, 30, 0.055), #fff);
}

.cb-inflation-waterfall {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 780px) {
  .cb-inflation-waterfall {
    grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.55fr) minmax(9rem, 0.8fr);
    align-items: stretch;
  }
}

.cb-inflation-waterfall__summary,
.cb-inflation-waterfall__step,
.cb-inflation-waterfall__gap {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 780px) {
  .cb-inflation-waterfall__summary {
    align-content: center;
  }
}

.cb-inflation-waterfall__summary--start {
  border-color: rgba(123, 182, 98, 0.38);
  background: linear-gradient(180deg, rgba(123, 182, 98, 0.16), #fff);
}

.cb-inflation-waterfall__summary--end {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
}

.cb-inflation-waterfall__ledger {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 780px) {
  .cb-inflation-waterfall__ledger::before {
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: 0.12rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(123, 182, 98, 0.45), rgba(196, 18, 30, 0.4), rgba(111, 97, 239, 0.5));
    content: "";
  }
}

.cb-inflation-waterfall__step,
.cb-inflation-waterfall__gap {
  position: relative;
  margin-left: 0;
  border-color: rgba(196, 18, 30, 0.16);
  background: linear-gradient(180deg, rgba(196, 18, 30, 0.045), #fff);
}

@media (min-width: 780px) {
  .cb-inflation-waterfall__step,
  .cb-inflation-waterfall__gap {
    margin-left: 1.9rem;
  }

  .cb-inflation-waterfall__step::before,
  .cb-inflation-waterfall__gap::before {
    position: absolute;
    top: 50%;
    left: -1.38rem;
    width: 0.7rem;
    height: 0.7rem;
    border: 0.16rem solid #fff;
    border-radius: 999px;
    background: #c4121e;
    box-shadow: 0 0 0 0.12rem rgba(196, 18, 30, 0.18);
    content: "";
    transform: translateY(-50%);
  }
}

.cb-inflation-waterfall__summary span,
.cb-inflation-waterfall__step span,
.cb-inflation-waterfall__gap span {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  line-height: 1.25;
}

.cb-inflation-waterfall__summary strong,
.cb-inflation-waterfall__step strong,
.cb-inflation-waterfall__gap strong {
  color: var(--foreground);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.05;
}

.cb-inflation-waterfall__step strong {
  color: #9f1020;
}

.cb-inflation-waterfall__step i {
  display: block;
  width: max(0.65rem, var(--share));
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4121e, rgba(242, 166, 84, 0.8));
}

.cb-inflation-waterfall__step em {
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.cb-inflation-waterfall__gap {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
}

.cb-inflation-waterfall__gap strong {
  color: #9f1020;
}

.cb-inflation-recovery {
  position: relative;
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .cb-inflation-recovery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    padding-top: 2.5rem;
  }
}

.cb-inflation-recovery__target {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--border));
  border-radius: 999px;
  background: var(--color-brand-softer);
  color: var(--color-brand-strong);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.cb-inflation-recovery__target strong {
  color: var(--foreground);
}

@media (min-width: 760px) {
  .cb-inflation-recovery__target {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    left: 1.5rem;
  }
}

.cb-inflation-recovery__card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
  box-shadow: var(--shadow-sm);
}

.cb-inflation-recovery__card--low {
  border-color: rgba(196, 18, 30, 0.24);
  background: linear-gradient(180deg, rgba(196, 18, 30, 0.06), #fff);
}

.cb-inflation-recovery__card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.2;
}

.cb-inflation-recovery__bar {
  display: flex;
  align-items: end;
  width: 100%;
  height: 7rem;
  padding: 0.4rem;
  border: 1px solid rgba(111, 97, 239, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(17, 17, 24, 0.04);
}

.cb-inflation-recovery__bar span {
  display: block;
  width: 100%;
  height: var(--fill);
  min-height: 1.2rem;
  border-radius: calc(var(--radius-lg) - 0.25rem);
  background: linear-gradient(180deg, rgba(111, 97, 239, 0.95), rgba(111, 97, 239, 0.5));
}

.cb-inflation-recovery__card--low .cb-inflation-recovery__bar span {
  background: linear-gradient(180deg, rgba(196, 18, 30, 0.78), rgba(196, 18, 30, 0.36));
}

.cb-inflation-recovery__card strong {
  color: var(--foreground);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1;
}

.cb-inflation-recovery__card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.cb-inflation-recovery__card dl div {
  display: flex;
  min-width: 0;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(17, 17, 24, 0.08);
}

.cb-inflation-recovery__card dt,
.cb-inflation-recovery__card dd {
  margin: 0;
  min-width: 0;
  line-height: 1.35;
}

.cb-inflation-recovery__card dt {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.76rem;
}

.cb-inflation-recovery__card dd {
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.cb-inventory-figure {
  background:
    radial-gradient(circle at 14% 18%, rgba(111, 97, 239, 0.1), transparent 16rem),
    radial-gradient(circle at 86% 16%, rgba(123, 182, 98, 0.1), transparent 15rem),
    var(--card);
}

.cb-inventory-diagram {
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--foreground);
}

.cb-inventory-balance {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 760px) {
  .cb-inventory-balance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    padding-top: 2.25rem;
  }
}

.cb-inventory-balance__rail {
  display: none;
}

@media (min-width: 760px) {
  .cb-inventory-balance__rail {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    left: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
  }

  .cb-inventory-balance__rail span {
    display: block;
    height: 0.16rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(196, 18, 30, 0.42), rgba(111, 97, 239, 0.35), rgba(123, 182, 98, 0.46));
  }

  .cb-inventory-balance__rail span:nth-child(2) {
    width: 0.8rem;
    height: 0.8rem;
    border: 0.14rem solid #fff;
    background: var(--primary);
    box-shadow: 0 0 0 0.12rem rgba(111, 97, 239, 0.18);
  }
}

.cb-inventory-balance__card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.cb-inventory-balance__card--sweet {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
}

.cb-inventory-balance__card--over,
.cb-inventory-balance__card--under {
  border-color: rgba(196, 18, 30, 0.16);
  background: linear-gradient(180deg, rgba(196, 18, 30, 0.045), #fff);
}

.cb-inventory-balance__card > span {
  width: max-content;
  max-width: 100%;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 17, 24, 0.05);
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cb-inventory-balance__card h3,
.cb-inventory-methods h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.2;
}

.cb-inventory-balance__card ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-inventory-balance__card li {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.cb-inventory-balance__card li::before {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  content: "";
  vertical-align: middle;
}

.cb-inventory-methods {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .cb-inventory-methods {
    grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.cb-inventory-methods__stack {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
}

.cb-inventory-methods__stack span {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--foreground);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cb-inventory-methods__stack span:first-child {
  opacity: 0.74;
}

.cb-inventory-methods__stack span:last-child {
  border: 1px solid rgba(196, 18, 30, 0.18);
  color: #9f1020;
}

.cb-inventory-methods__cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .cb-inventory-methods__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cb-inventory-methods__cards article {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.cb-inventory-methods__cards p,
.cb-inventory-methods__cards span {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
}

.cb-inventory-methods__cards strong {
  width: max-content;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: var(--color-brand-softer);
  color: var(--color-brand-strong);
  font-size: 1rem;
  line-height: 1.1;
}

.cb-inventory-reorder {
  display: grid;
  gap: 1rem;
}

.cb-inventory-reorder__intro {
  display: grid;
  gap: 0.28rem;
  text-align: center;
}

.cb-inventory-reorder__intro span {
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-inventory-reorder__intro strong {
  color: var(--foreground);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.2;
}

.cb-inventory-reorder__formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-brand-softer), #fff);
}

.cb-inventory-reorder__formula article {
  display: grid;
  min-width: 0;
  min-height: 5.3rem;
  align-content: center;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid rgba(111, 97, 239, 0.14);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cb-inventory-reorder__formula span {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.cb-inventory-reorder__formula strong {
  color: var(--foreground);
  font-size: clamp(0.92rem, 1.6vw, 1.06rem);
  font-weight: 800;
  line-height: 1.15;
}

.cb-inventory-reorder__formula .cb-inventory-reorder__result {
  background: var(--primary);
  color: #fff;
}

.cb-inventory-reorder__formula .cb-inventory-reorder__result span,
.cb-inventory-reorder__formula .cb-inventory-reorder__result strong {
  color: #fff;
}

.cb-inventory-reorder__formula i {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 800;
}

.cb-inventory-reorder__chart {
  display: grid;
  grid-template-columns: minmax(4.4rem, auto) minmax(0, 1fr);
  gap: 0.75rem;
  min-height: 15rem;
  padding: 1rem;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(17, 17, 24, 0.05) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.82));
}

.cb-inventory-reorder__axis {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

.cb-inventory-reorder__plot {
  position: relative;
  min-width: 0;
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 24, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(123, 182, 98, 0.1) 0 48%, rgba(242, 166, 84, 0.12) 48% 82%, rgba(196, 18, 30, 0.08) 82% 100%),
    repeating-linear-gradient(90deg, transparent 0 19.5%, rgba(17, 17, 24, 0.07) 19.5% 20%);
}

.cb-inventory-reorder__plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cb-inventory-reorder__slope,
.cb-inventory-reorder__threshold,
.cb-inventory-reorder__lead {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.cb-inventory-reorder__slope {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-width: 5;
}

.cb-inventory-reorder__threshold {
  stroke: rgba(111, 97, 239, 0.42);
  stroke-dasharray: 8 8;
  stroke-width: 2;
}

.cb-inventory-reorder__lead {
  stroke: rgba(242, 166, 84, 0.78);
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-width: 4;
}

.cb-inventory-reorder__marker {
  position: absolute;
  top: 45%;
  left: 67%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.15rem;
  width: min(8.5rem, 44%);
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.cb-inventory-reorder__marker::after {
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 50%;
  width: 0.12rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.cb-inventory-reorder__marker span,
.cb-inventory-reorder__safe span,
.cb-inventory-reorder__lead-label span {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cb-inventory-reorder__marker strong {
  color: var(--primary);
  font-size: 1rem;
}

.cb-inventory-reorder__safe {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  height: 18%;
  align-items: center;
  justify-content: flex-start;
  padding: 0.55rem 0.8rem;
  border-top: 1px dashed rgba(196, 18, 30, 0.42);
  background: rgba(196, 18, 30, 0.06);
}

.cb-inventory-reorder__lead-label {
  position: absolute;
  right: 0.8rem;
  bottom: 22%;
  max-width: 11rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(242, 166, 84, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
}

.cb-inventory-reorder__timeline {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.cb-inventory-reorder__timeline span:nth-child(2) {
  color: var(--primary);
  text-align: center;
}

.cb-inventory-reorder__timeline span:nth-child(3) {
  text-align: right;
}

.cb-inventory-reorder__notes {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .cb-inventory-reorder__notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cb-inventory-reorder__notes article {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
}

.cb-inventory-reorder__notes strong {
  color: var(--foreground);
  font-size: 0.9rem;
}

.cb-inventory-reorder__notes span {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .cb-inventory-reorder__formula {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cb-inventory-reorder__formula i {
    line-height: 1;
  }

  .cb-inventory-reorder__chart {
    grid-template-columns: 1fr;
    padding: 0.8rem;
  }

  .cb-inventory-reorder__axis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    text-align: left;
  }

  .cb-inventory-reorder__plot {
    min-height: 13rem;
  }

  .cb-inventory-reorder__marker {
    left: 62%;
    width: 7.4rem;
    padding: 0.55rem;
  }

  .cb-inventory-reorder__lead-label {
    right: 0.5rem;
    max-width: 8.6rem;
    padding: 0.4rem 0.5rem;
  }

  .cb-inventory-reorder__timeline {
    grid-column: 1;
    font-size: 0.7rem;
  }

  .cb-inventory-methods__cards {
    grid-template-columns: 1fr;
  }
}

.cb-article-figure--screenshot img {
  aspect-ratio: var(--cb-screenshot-ratio);
  object-fit: contain;
  object-position: top center;
  background: var(--muted);
}

.cb-margin-figure {
  background:
    radial-gradient(circle at 12% 18%, rgba(111, 97, 239, 0.1), transparent 15rem),
    radial-gradient(circle at 88% 14%, rgba(123, 182, 98, 0.1), transparent 15rem),
    var(--card);
}

.cb-margin-diagram {
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--foreground);
}

.cb-margin-loop {
  display: grid;
  gap: 1rem;
}

@media (min-width: 820px) {
  .cb-margin-loop {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.cb-margin-loop__center {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}

@media (min-width: 820px) {
  .cb-margin-loop__center {
    grid-column: 3 / 5;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 17rem);
  }
}

.cb-margin-loop__center span {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-margin-loop__center strong {
  font-size: 1.22rem;
  line-height: 1.15;
}

.cb-margin-loop__steps {
  display: grid;
  gap: 0.8rem;
  width: 100%;
}

@media (min-width: 820px) {
  .cb-margin-loop__steps {
    display: contents;
  }

  .cb-margin-loop__steps article:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .cb-margin-loop__steps article:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
  }

  .cb-margin-loop__steps article:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1;
  }

  .cb-margin-loop__steps article:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .cb-margin-loop__steps article:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 3;
  }
}

.cb-margin-loop__steps article {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.cb-margin-loop__steps span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--color-brand-softer);
  color: var(--primary);
  font-weight: 900;
}

.cb-margin-loop__steps strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.cb-margin-loop__steps p {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cb-margin-impact {
  display: grid;
  gap: 1rem;
}

.cb-margin-impact__math {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.15fr;
  gap: 0.55rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(242, 166, 84, 0.32);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(242, 166, 84, 0.1), #fff);
}

.cb-margin-impact__math article {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.35rem;
  min-height: 5rem;
  padding: 0.8rem;
  border: 1px solid rgba(17, 17, 24, 0.1);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cb-margin-impact__math i {
  align-self: center;
  color: var(--muted-foreground);
  font-style: normal;
  font-weight: 900;
}

.cb-margin-impact__math span,
.cb-margin-impact__result span {
  color: var(--muted-foreground);
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cb-margin-impact__math strong {
  color: var(--foreground);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.12;
}

.cb-margin-impact__math .cb-margin-impact__delta {
  border-color: rgba(180, 83, 9, 0.24);
  background: linear-gradient(135deg, #f2a654, #d97706);
}

.cb-margin-impact__math .cb-margin-impact__delta span,
.cb-margin-impact__math .cb-margin-impact__delta strong {
  color: #fff;
}

.cb-margin-impact__result {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(10rem, 1.2fr) 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(242, 166, 84, 0.3);
  border-radius: var(--radius-xl);
  background: #fff;
}

.cb-margin-impact__result div {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.cb-margin-impact__result strong {
  color: var(--foreground);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.15;
}

.cb-margin-impact__result div:last-child strong {
  color: #b42318;
}

.cb-margin-impact__result svg {
  width: 100%;
  height: 7.5rem;
}

.cb-margin-impact__result path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 8;
  stroke: url("#cb-margin-impact-risk-gradient");
}

.cb-margin-impact__result circle {
  fill: #b42318;
  stroke: #fff;
  stroke-width: 5;
}

.cb-margin-exceptions {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .cb-margin-exceptions {
    grid-template-columns: 0.9fr 1.35fr;
    align-items: stretch;
  }
}

.cb-margin-exceptions__invoice {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(111, 97, 239, 0.22);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #fff, rgba(111, 97, 239, 0.08));
}

.cb-margin-exceptions__invoice span {
  color: var(--primary);
  font-family: var(--font-secondary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-margin-exceptions__invoice strong {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.12;
}

.cb-margin-exceptions__rows {
  display: grid;
  gap: 0.5rem;
}

.cb-margin-exceptions__rows i {
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(17, 17, 24, 0.09);
}

.cb-margin-exceptions__rows i:nth-child(2) {
  width: 84%;
}

.cb-margin-exceptions__rows i:nth-child(3) {
  width: 70%;
  background: linear-gradient(90deg, rgba(242, 166, 84, 0.32), rgba(180, 35, 24, 0.28));
}

.cb-margin-exceptions__rows i:nth-child(4) {
  width: 92%;
}

.cb-margin-exceptions__flags {
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 560px) {
  .cb-margin-exceptions__flags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cb-margin-exceptions__flags article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(242, 166, 84, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.cb-margin-exceptions__flags article:nth-child(1),
.cb-margin-exceptions__flags article:nth-child(2) {
  border-color: rgba(180, 35, 24, 0.22);
  background: linear-gradient(180deg, rgba(180, 35, 24, 0.055), rgba(255, 255, 255, 0.96));
}

.cb-margin-exceptions__flags article:nth-child(3),
.cb-margin-exceptions__flags article:nth-child(4),
.cb-margin-exceptions__flags article:nth-child(5) {
  background: linear-gradient(180deg, rgba(242, 166, 84, 0.08), rgba(255, 255, 255, 0.96));
}

.cb-margin-exceptions__flags span {
  display: inline-grid;
  min-width: 2.8rem;
  min-height: 2.1rem;
  place-items: center;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: rgba(242, 166, 84, 0.16);
  color: #99530d;
  font-size: 0.78rem;
  font-weight: 900;
}

.cb-margin-exceptions__flags article:nth-child(1) span,
.cb-margin-exceptions__flags article:nth-child(2) span {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.cb-margin-exceptions__flags article:nth-child(3) span,
.cb-margin-exceptions__flags article:nth-child(4) span,
.cb-margin-exceptions__flags article:nth-child(5) span {
  background: rgba(242, 166, 84, 0.18);
  color: #99530d;
}

.cb-margin-exceptions__flags article:nth-child(6) span {
  background: rgba(111, 97, 239, 0.12);
  color: var(--primary);
}

.cb-margin-exceptions__flags strong {
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.25;
}

@media (max-width: 560px) {
  .cb-margin-impact__math {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cb-margin-impact__math i {
    line-height: 1;
  }

  .cb-margin-impact__result {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cb-margin-impact__result svg {
    height: 5.5rem;
  }
}

.cb-article-toc {
  display: none;
}

@media (min-width: 1080px) {
  .cb-article-toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: block;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
  }
}

.cb-article-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.cb-article-toc a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding-block: 0.45rem;
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
}

.cb-article-toc a:hover,
.cb-article-toc a.is-active {
  color: var(--primary);
}

.cb-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.cb-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
}

.cb-next-posts {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .cb-next-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cb-batch-figure {
  overflow: hidden;
}

.cb-batch-diagram {
  --cb-purple: #6f61ef;
  --cb-amber: #f59e0b;
  --cb-amber-soft: #fff4e4;
  --cb-red: #dc2626;
  --cb-red-soft: #fff1f2;
  --cb-green: #0c7a43;
  --cb-green-soft: #ecfdf3;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid rgba(111, 97, 239, 0.2);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 8% 5%, rgba(111, 97, 239, 0.08), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(12, 122, 67, 0.07), transparent 30%),
    #fff;
}

.cb-batch-diagram strong {
  color: var(--foreground);
}

.cb-batch-diagram em,
.cb-batch-diagram span {
  color: var(--muted-foreground);
}

.cb-batch-step,
.cb-flow-card,
.cb-margin-card,
.cb-playbook-step,
.cb-state-card,
.cb-cost-card,
.cb-tier,
.cb-summary-card,
.cb-pillar,
.cb-threshold {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.cb-batch-step span,
.cb-playbook-step span,
.cb-state-card span,
.cb-cost-card span,
.cb-summary-card span,
.cb-pillar span,
.cb-threshold span,
.cb-margin-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: #64708b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-batch-step strong,
.cb-flow-card,
.cb-margin-card strong,
.cb-playbook-step strong,
.cb-state-card strong,
.cb-cost-card strong,
.cb-tier strong,
.cb-summary-card strong,
.cb-pillar strong,
.cb-threshold strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.15;
}

.cb-batch-step em,
.cb-margin-card em,
.cb-playbook-step em,
.cb-state-card em,
.cb-cost-card em,
.cb-tier em,
.cb-summary-card em,
.cb-pillar em,
.cb-threshold em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  line-height: 1.35;
}

.cb-batch-arrow {
  align-self: center;
  justify-self: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(111, 97, 239, 0.12);
  color: var(--cb-purple);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.cb-risk {
  border-color: rgba(220, 38, 38, 0.24);
  background: var(--cb-red-soft);
}

.cb-warn,
.cb-warn-cell {
  border-color: rgba(245, 158, 11, 0.28);
  background: var(--cb-amber-soft);
}

.cb-good,
.cb-good-cell {
  border-color: rgba(12, 122, 67, 0.2);
  background: var(--cb-green-soft);
}

.cb-risk-text {
  color: var(--cb-red) !important;
  font-weight: 800;
}

.cb-warn-text {
  color: #a85806 !important;
  font-weight: 800;
}

.cb-good-text {
  color: var(--cb-green) !important;
  font-weight: 800;
}

.cb-procurement-loop,
.cb-rising-costs-signal,
.cb-ai-finance-pipeline,
.cb-invoice-mgmt-workflow,
.cb-scorecard-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.cb-invoice-mgmt-workflow .cb-flow-card {
  grid-column: 1 / -1;
  text-align: center;
}

.cb-purple {
  border-color: rgba(111, 97, 239, 0.32);
  background: #6f61ef;
  color: #fff;
}

.cb-purple strong,
.cb-purple span,
.cb-purple em {
  color: #fff;
}

.cb-mini-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #fff;
}

.cb-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cb-mini-row:first-child {
  border-top: 0;
}

.cb-mini-row span {
  min-width: 0;
}

.cb-mini-row.cb-head {
  background: rgba(111, 97, 239, 0.08);
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-procurement-matrix,
.cb-rising-costs-priority {
  grid-template-columns: auto 1fr;
}

.cb-axis-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  color: #64708b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-axis-x {
  grid-column: 2;
  color: #64708b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cb-matrix > div,
.cb-risk-cell {
  min-height: 8rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
}

.cb-matrix strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
}

.cb-risk-cell {
  border-color: rgba(220, 38, 38, 0.26) !important;
  background: var(--cb-red-soft) !important;
}

.cb-flow-branch,
.cb-ai-finance-states,
.cb-rising-costs-margin,
.cb-rising-costs-playbook,
.cb-ai-finance-cost,
.cb-ai-finance-tiers,
.cb-invoice-mgmt-history,
.cb-invoice-mgmt-summary,
.cb-scorecard-pillars,
.cb-scorecard-thresholds {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cb-flow-branch {
  display: grid;
  gap: 0.75rem;
}

.cb-flow-branch > div {
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 0.9rem;
  background: #fff;
}

.cb-margin-loss,
.cb-score-total {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--color-brand-strong);
  color: #fff;
  text-align: center;
}

.cb-margin-loss strong,
.cb-score-total strong {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cb-margin-loss span,
.cb-score-total span,
.cb-score-total em {
  color: rgba(255, 255, 255, 0.84);
}

.cb-tier,
.cb-threshold {
  position: relative;
  padding-left: 1.25rem;
}

.cb-tier::before,
.cb-threshold::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  border-radius: 1rem 0 0 1rem;
  background: var(--cb-purple);
}

.cb-tier.cb-good::before,
.cb-threshold.cb-good::before {
  background: var(--cb-green);
}

.cb-tier.cb-warn::before,
.cb-threshold.cb-warn::before {
  background: var(--cb-amber);
}

.cb-tier.cb-risk::before,
.cb-threshold.cb-risk::before {
  background: var(--cb-red);
}

.cb-weight-row {
  display: grid;
  grid-template-columns: 7rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: #fff;
}

.cb-weight-row > span {
  color: var(--foreground);
  font-weight: 800;
}

.cb-weight-row > div {
  overflow: hidden;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(111, 97, 239, 0.12);
}

.cb-weight-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cb-purple);
}

.cb-weight-row.cb-warn i {
  background: var(--cb-amber);
}

.cb-score-total {
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
}

.cb-native-flow,
.cb-cost-signal,
.cb-score-evidence,
.cb-workflow-board,
.cb-native-loop {
  --flow-purple: #6f61ef;
  --flow-ink: #151722;
  --flow-muted: #64708b;
  --flow-line: rgba(111, 97, 239, 0.28);
  --flow-risk: #dc2626;
  --flow-risk-bg: #fff1f2;
  --flow-warn: #f59e0b;
  isolation: isolate;
  position: relative;
}

.cb-native-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.cb-native-flow__stage,
.cb-cost-signal__source,
.cb-cost-signal__middle,
.cb-cost-signal__result,
.cb-score-evidence__source,
.cb-score-evidence__ledger,
.cb-score-evidence__alert,
.cb-score-evidence__score,
.cb-workflow-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(22, 29, 54, 0.08);
}

.cb-native-flow__stage h3,
.cb-cost-signal h3,
.cb-workflow-card h3,
.cb-score-evidence h3,
.cb-native-node h3 {
  margin: 0;
  color: var(--flow-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.12;
}

.cb-native-flow__stage p,
.cb-cost-signal p,
.cb-workflow-card p,
.cb-score-evidence p,
.cb-native-node p,
.cb-workflow-board__result p {
  margin: 0;
  color: var(--flow-muted);
  line-height: 1.42;
}

.cb-native-flow__stage > span,
.cb-cost-signal span,
.cb-workflow-card > span,
.cb-score-evidence > div > span,
.cb-native-node > span,
.cb-workflow-board__result > span {
  color: var(--flow-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-native-flow__icon {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(111, 97, 239, 0.12);
  color: var(--flow-purple);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.cb-native-flow__stage--risk,
.cb-cost-signal__result,
.cb-score-evidence__alert {
  border-color: rgba(220, 38, 38, 0.24);
  background: linear-gradient(180deg, #fff, var(--flow-risk-bg));
}

.cb-native-flow__stage--engine,
.cb-cost-signal__middle,
.cb-score-evidence__ledger {
  border-color: rgba(111, 97, 239, 0.24);
  background: linear-gradient(180deg, #fff, rgba(111, 97, 239, 0.055));
}

.cb-native-flow__connector {
  position: relative;
  display: none;
  align-self: center;
  height: 2px;
  border-radius: 999px;
  background: var(--flow-line);
}

.cb-native-flow__connector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid var(--flow-purple);
  border-right: 2px solid var(--flow-purple);
  transform: translateY(-50%) rotate(45deg);
}

.cb-doc-stack {
  position: relative;
  height: 3.5rem;
  margin-top: auto;
}

.cb-doc-stack span {
  position: absolute;
  inset: auto auto 0 0;
  width: 5.25rem;
  height: 3.1rem;
  border: 1px solid rgba(100, 112, 139, 0.24);
  border-radius: 0.55rem;
  background:
    linear-gradient(90deg, rgba(100, 112, 139, 0.24) 0 42%, transparent 42%),
    linear-gradient(rgba(100, 112, 139, 0.18), rgba(100, 112, 139, 0.18)) 0.75rem 1rem / 3rem 0.2rem no-repeat,
    linear-gradient(rgba(100, 112, 139, 0.13), rgba(100, 112, 139, 0.13)) 0.75rem 1.55rem / 4rem 0.2rem no-repeat,
    #fff;
  box-shadow: 0 8px 18px rgba(22, 29, 54, 0.08);
}

.cb-doc-stack span:nth-child(2) {
  transform: translate(0.55rem, -0.35rem) rotate(2deg);
}

.cb-doc-stack span:nth-child(3) {
  transform: translate(1.1rem, -0.7rem) rotate(4deg);
}

.cb-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: auto;
}

.cb-chip-grid span {
  min-width: 0;
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  background: rgba(111, 97, 239, 0.07);
  color: #4f46c9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.cb-mini-ledger {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  overflow: hidden;
  margin-top: 0.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.8rem;
  background: #fff;
}

.cb-mini-ledger span,
.cb-mini-ledger strong {
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--flow-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.cb-mini-ledger span:nth-child(3n + 1),
.cb-mini-ledger strong:nth-child(3n + 1) {
  border-left: 0;
}

.cb-mini-ledger span {
  background: rgba(111, 97, 239, 0.08);
  font-weight: 850;
}

.cb-mini-ledger strong {
  color: var(--flow-ink);
}

.cb-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.cb-alert-strip strong {
  color: var(--flow-risk);
  font-size: 1rem;
}

.cb-alert-strip span {
  color: var(--flow-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cb-native-loop {
  min-height: 36rem;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, minmax(5.2rem, auto));
  align-items: stretch;
}

.cb-native-loop__ring {
  grid-column: 2 / 6;
  grid-row: 1 / 5;
  border: 2px dashed rgba(111, 97, 239, 0.22);
  border-radius: 999px;
}

.cb-native-loop__hub {
  z-index: 1;
  grid-column: 3 / 5;
  grid-row: 2 / 4;
  align-self: center;
  padding: 1.35rem;
  border-radius: 1.2rem;
  background: var(--color-brand-strong);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(111, 97, 239, 0.28);
}

.cb-native-loop__hub span,
.cb-native-loop__action span {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cb-native-loop__hub strong,
.cb-native-loop__action strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.cb-native-node {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cb-native-node--invoice {
  grid-column: 1 / 3;
  grid-row: 1;
}

.cb-native-node--extract {
  grid-column: 5 / 7;
  grid-row: 1;
}

.cb-native-node--history {
  grid-column: 1 / 3;
  grid-row: 4;
}

.cb-native-node--review {
  grid-column: 5 / 7;
  grid-row: 4;
  border-color: rgba(220, 38, 38, 0.24);
  background: var(--flow-risk-bg);
}

.cb-native-loop__action {
  z-index: 1;
  grid-column: 3 / 5;
  grid-row: 4;
  align-self: end;
  padding: 1rem;
  border-radius: 1rem;
  background: #151722;
  text-align: center;
}

.cb-workflow-board {
  gap: 1.1rem;
}

.cb-workflow-board__lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.cb-workflow-card {
  min-height: 17rem;
}

.cb-workflow-card--review {
  border-color: rgba(220, 38, 38, 0.24);
  background: linear-gradient(180deg, #fff, var(--flow-risk-bg));
}

.cb-upload-tray {
  position: relative;
  height: 3.25rem;
  margin-top: auto;
  border: 1px dashed rgba(111, 97, 239, 0.4);
  border-radius: 0.9rem;
  background: rgba(111, 97, 239, 0.06);
}

.cb-upload-tray::before {
  content: "";
  position: absolute;
  inset: 0.75rem auto auto 50%;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--flow-purple);
  clip-path: polygon(50% 0, 100% 55%, 72% 55%, 72% 100%, 28% 100%, 28% 55%, 0 55%);
  transform: translateX(-50%);
}

.cb-upload-tray::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 50%;
  width: 3px;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--flow-purple);
  transform: translateX(-50%);
}

.cb-workflow-board__result {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #6f61ef;
  color: #fff;
}

.cb-workflow-board__result strong {
  display: block;
  margin-top: 0.25rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.cb-workflow-board__result p,
.cb-workflow-board__result span {
  color: rgba(255, 255, 255, 0.86);
}

.cb-cost-signal {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.cb-cost-signal__middle {
  gap: 1rem;
}

.cb-cost-signal__extract {
  display: grid;
  gap: 0.65rem;
}

.cb-cost-signal__extract strong {
  font-family: var(--font-heading);
  color: var(--flow-ink);
}

.cb-cost-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.cb-cost-compare > div:not(.cb-cost-compare__delta) {
  padding: 0.8rem;
  border-radius: 0.9rem;
  background: #fff;
  text-align: center;
}

.cb-cost-compare strong {
  display: block;
  color: var(--flow-ink);
  font-size: 1.55rem;
}

.cb-cost-compare__delta {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 999px;
  background: var(--flow-risk-bg);
  color: var(--flow-risk);
  font-weight: 900;
}

.cb-score-evidence {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.cb-score-evidence__alert {
  justify-content: center;
}

.cb-score-evidence__alert strong {
  display: block;
  color: var(--flow-risk);
  font-size: 2rem;
}

.cb-score-evidence__score {
  justify-content: center;
  border-color: rgba(245, 158, 11, 0.3);
  background: #fff7ed;
  text-align: center;
}

.cb-score-evidence__score strong {
  display: block;
  color: #a85806;
  font-size: 3rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .cb-native-flow,
  .cb-cost-signal,
  .cb-score-evidence {
    grid-template-columns: 1fr;
  }

  .cb-native-flow__connector {
    display: block;
    inset: auto;
    width: 2px;
    height: 1.8rem;
    margin-left: 1.2rem;
    background: linear-gradient(180deg, rgba(111, 97, 239, 0.12), rgba(111, 97, 239, 0.55), rgba(220, 38, 38, 0.28));
  }

  .cb-native-flow__connector::after {
    top: auto;
    right: auto;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .cb-workflow-board__lane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-native-loop {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .cb-native-loop__ring {
    display: none;
  }

  .cb-native-loop__hub,
  .cb-native-node--invoice,
  .cb-native-node--extract,
  .cb-native-node--history,
  .cb-native-node--review,
  .cb-native-loop__action {
    grid-column: auto;
    grid-row: auto;
  }

  .cb-native-loop__hub,
  .cb-native-loop__action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cb-workflow-board__lane,
  .cb-native-loop {
    grid-template-columns: 1fr;
  }

  .cb-workflow-card {
    min-height: 0;
  }

  .cb-cost-compare {
    grid-template-columns: 1fr;
  }

  .cb-cost-compare__delta {
    width: auto;
    height: auto;
    border-radius: 0.85rem;
    padding: 0.65rem;
  }

  .cb-mini-ledger {
    grid-template-columns: 1.1fr 0.8fr 0.8fr;
  }
}

@media (max-width: 900px) {
  .cb-procurement-loop,
  .cb-rising-costs-signal,
  .cb-ai-finance-pipeline,
  .cb-invoice-mgmt-workflow,
  .cb-scorecard-flow,
  .cb-flow-branch,
  .cb-ai-finance-states,
  .cb-rising-costs-margin,
  .cb-rising-costs-playbook,
  .cb-ai-finance-cost,
  .cb-ai-finance-tiers,
  .cb-invoice-mgmt-history,
  .cb-invoice-mgmt-summary,
  .cb-scorecard-pillars,
  .cb-scorecard-thresholds {
    grid-template-columns: 1fr 1fr;
  }

  .cb-batch-arrow {
    display: none;
  }
}

@media (max-width: 620px) {
  .cb-batch-diagram {
    padding: 0.8rem;
    border-radius: 1rem;
  }

  .cb-procurement-loop,
  .cb-rising-costs-signal,
  .cb-ai-finance-pipeline,
  .cb-invoice-mgmt-workflow,
  .cb-scorecard-flow,
  .cb-flow-branch,
  .cb-ai-finance-states,
  .cb-rising-costs-margin,
  .cb-rising-costs-playbook,
  .cb-ai-finance-cost,
  .cb-ai-finance-tiers,
  .cb-invoice-mgmt-history,
  .cb-invoice-mgmt-summary,
  .cb-scorecard-pillars,
  .cb-scorecard-thresholds,
  .cb-scorecard-weighted {
    grid-template-columns: 1fr;
  }

  .cb-procurement-matrix,
  .cb-rising-costs-priority {
    grid-template-columns: 1fr;
  }

  .cb-axis-y {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .cb-axis-x {
    grid-column: auto;
  }

  .cb-matrix,
  .cb-mini-row {
    grid-template-columns: 1fr;
  }

  .cb-weight-row,
  .cb-score-total {
    grid-template-columns: 1fr;
  }
}

.cb-workflow-board {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .cb-native-flow,
  .cb-cost-signal,
  .cb-score-evidence,
  .cb-native-loop,
  .cb-workflow-board {
    grid-template-columns: 1fr;
  }

  .cb-native-loop__hub,
  .cb-native-loop__action {
    grid-column: auto;
  }
}

.cb-diagram-v2 {
  --v2-purple: #6f61ef;
  --v2-ink: #151722;
  --v2-muted: #64708b;
  --v2-line: rgba(111, 97, 239, 0.18);
  --v2-risk: #dc2626;
  --v2-risk-bg: #fff1f2;
  --v2-warn: #f59e0b;
  --v2-warn-bg: #fff7ed;
  --v2-good: #0c7a43;
  --v2-good-bg: #ecfdf3;
}

.cb-v2-kicker {
  display: block;
  color: var(--v2-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-diagram-v2 h3,
.cb-diagram-v2 strong {
  color: var(--v2-ink);
}

.cb-diagram-v2 p,
.cb-diagram-v2 em,
.cb-diagram-v2 span {
  color: var(--v2-muted);
}

.cb-v2-list {
  display: grid;
  gap: 0.7rem;
}

.cb-v2-list > div {
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  background: #fff;
}

.cb-v2-list strong,
.cb-v2-list span {
  display: block;
}

.cb-v2-list span {
  margin-top: 0.25rem;
  line-height: 1.35;
}

.cb-v2-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cb-v2-chip-row span {
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  background: rgba(111, 97, 239, 0.07);
  color: #4f46c9;
  font-size: 0.75rem;
  font-weight: 800;
}

.cb-cogs-split {
  grid-template-columns: minmax(0, 1.25fr) minmax(8rem, 0.55fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.cb-cogs-split__included,
.cb-cogs-split__excluded,
.cb-cogs-split__divider {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
}

.cb-cogs-split__included {
  border-color: rgba(111, 97, 239, 0.22);
  background: linear-gradient(180deg, #fff, rgba(111, 97, 239, 0.05));
}

.cb-cogs-split__divider {
  align-content: center;
  justify-items: center;
  background: #6f61ef;
  text-align: center;
}

.cb-cogs-split__divider strong {
  color: #fff;
  font-size: 2rem;
}

.cb-cogs-split__divider span {
  color: rgba(255, 255, 255, 0.84);
}

.cb-cogs-split__excluded {
  border-color: rgba(245, 158, 11, 0.24);
  background: #fffaf2;
}

.cb-cogs-split .cb-v2-kicker,
.cb-cogs-split .cb-v2-list span,
.cb-cogs-split .cb-v2-chip-row span,
.cb-cogs-split__divider span,
.cb-cogs-split p {
  display: initial;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cb-cogs-split .cb-v2-kicker {
  display: block;
}

.cb-cogs-split .cb-v2-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.cb-cogs-split .cb-v2-list span {
  display: block;
}

.cb-cogs-split .cb-v2-chip-row span {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  background: rgba(111, 97, 239, 0.07);
  color: #4f46c9;
}

.cb-decision-tree {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
}

.cb-decision-tree__start,
.cb-decision-tree__end,
.cb-decision-tree__branch,
.cb-line-intel__invoice,
.cb-line-intel__route,
.cb-line-intel__compare,
.cb-invoice-workflow-v2__source,
.cb-invoice-workflow-v2__system,
.cb-invoice-workflow-v2__review,
.cb-invoice-workflow-v2__result,
.cb-cost-history-v2__impact,
.cb-review-funnel__wide,
.cb-review-funnel__split article,
.cb-review-funnel__risk,
.cb-scorecard-pillars-v2__manual,
.cb-scorecard-pillars-v2__cost {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.cb-decision-tree__start {
  align-content: center;
  background: #6f61ef;
}

.cb-decision-tree__start strong,
.cb-decision-tree__start span {
  color: #fff;
}

.cb-decision-tree__branches {
  display: grid;
  gap: 0.75rem;
}

.cb-decision-tree__branch {
  display: grid;
  grid-template-columns: 8rem 1fr 1.4fr;
  align-items: center;
  gap: 0.75rem;
}

.cb-decision-tree__branch p {
  margin: 0;
}

.cb-decision-tree__branch--good {
  border-color: rgba(12, 122, 67, 0.2);
  background: var(--v2-good-bg);
}

.cb-decision-tree__branch--watch {
  border-color: rgba(245, 158, 11, 0.26);
  background: var(--v2-warn-bg);
}

.cb-decision-tree__branch--risk {
  border-color: rgba(220, 38, 38, 0.24);
  background: var(--v2-risk-bg);
}

.cb-decision-tree__end {
  grid-column: 1 / -1;
  background: #151722;
  color: #fff;
  text-align: center;
  font-weight: 850;
}

.cb-line-intel {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.cb-line-intel__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.cb-line-intel__compare > div:not(.cb-line-intel__delta) {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #fff;
}

.cb-line-intel__compare strong {
  display: block;
  font-size: 1.8rem;
}

.cb-line-intel__compare em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
}

.cb-line-intel__delta {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  place-items: center;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 999px;
  background: var(--v2-risk-bg);
  color: var(--v2-risk);
  font-weight: 900;
}

.cb-line-intel__route {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--v2-warn-bg);
}

.cb-risk-routing {
  grid-template-columns: 0.2fr repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.cb-risk-routing__scale {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--v2-good), var(--v2-warn), var(--v2-risk));
}

.cb-risk-routing__tier {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #fff;
}

.cb-risk-routing__tier span,
.cb-risk-routing__tier strong,
.cb-risk-routing__tier em {
  display: block;
}

.cb-risk-routing__tier strong {
  margin-top: 0.3rem;
  font-size: 1.35rem;
}

.cb-risk-routing__tier em {
  margin-top: 0.3rem;
  font-style: normal;
  font-weight: 850;
}

.cb-risk-routing__tier--good {
  background: var(--v2-good-bg);
  border-color: rgba(12, 122, 67, 0.2);
}

.cb-risk-routing__tier--watch,
.cb-risk-routing__tier--high {
  background: var(--v2-warn-bg);
  border-color: rgba(245, 158, 11, 0.26);
}

.cb-risk-routing__tier--risk {
  background: var(--v2-risk-bg);
  border-color: rgba(220, 38, 38, 0.24);
}

.cb-invoice-workflow-v2 {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.cb-invoice-workflow-v2__system {
  border-color: rgba(111, 97, 239, 0.24);
  background: linear-gradient(180deg, #fff, rgba(111, 97, 239, 0.05));
}

.cb-invoice-workflow-v2__review {
  border-color: rgba(220, 38, 38, 0.22);
  background: var(--v2-risk-bg);
}

.cb-invoice-workflow-v2__result {
  grid-column: 1 / -1;
  background: #6f61ef;
}

.cb-invoice-workflow-v2__result strong,
.cb-invoice-workflow-v2__result span,
.cb-invoice-workflow-v2__result p {
  color: #fff;
}

.cb-cost-history-v2 {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  align-items: stretch;
}

.cb-cost-history-v2__timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}

.cb-cost-history-v2__timeline article {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #fff;
}

.cb-cost-history-v2__timeline strong,
.cb-cost-history-v2__impact strong {
  display: block;
  font-size: 2rem;
}

.cb-cost-history-v2__latest {
  border-color: rgba(220, 38, 38, 0.24) !important;
  background: var(--v2-risk-bg) !important;
}

.cb-cost-history-v2__delta {
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 999px;
  padding: 0.75rem;
  background: var(--v2-risk-bg);
  color: var(--v2-risk);
  font-weight: 900;
}

.cb-cost-history-v2__impact {
  align-content: center;
  border-color: rgba(245, 158, 11, 0.28);
  background: var(--v2-warn-bg);
}

.cb-review-funnel {
  grid-template-columns: minmax(0, 1fr);
}

.cb-review-funnel__wide,
.cb-review-funnel__risk {
  text-align: center;
}

.cb-review-funnel__wide strong {
  display: block;
  font-size: 2.6rem;
}

.cb-review-funnel__split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
}

.cb-review-funnel__split strong,
.cb-review-funnel__risk strong {
  display: block;
  font-size: 2rem;
}

.cb-review-funnel__good {
  border-color: rgba(12, 122, 67, 0.2) !important;
  background: var(--v2-good-bg) !important;
}

.cb-review-funnel__watch {
  border-color: rgba(245, 158, 11, 0.28) !important;
  background: var(--v2-warn-bg) !important;
}

.cb-review-funnel__risk {
  border-color: rgba(220, 38, 38, 0.24);
  background: var(--v2-risk-bg);
}

.cb-scorecard-pillars-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.cb-scorecard-pillars-v2__manual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.cb-scorecard-pillars-v2__manual article {
  padding: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: #fff;
}

.cb-scorecard-pillars-v2__manual p,
.cb-scorecard-pillars-v2__cost p {
  margin: 0.25rem 0 0;
}

.cb-scorecard-pillars-v2__cost {
  border-color: rgba(111, 97, 239, 0.28);
  background: linear-gradient(180deg, #fff, rgba(111, 97, 239, 0.08));
}

.cb-scorecard-pillars-v2__cost > strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.5rem;
}

.cb-profit-bridge {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.45fr) minmax(0, 0.7fr);
  align-items: stretch;
}

.cb-profit-bridge__start,
.cb-profit-bridge__end,
.cb-profit-bridge__losses {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #fff;
}

.cb-profit-bridge__start {
  background: var(--v2-good-bg);
  border-color: rgba(12, 122, 67, 0.2);
}

.cb-profit-bridge__end {
  background: var(--v2-risk-bg);
  border-color: rgba(220, 38, 38, 0.24);
}

.cb-profit-bridge__start strong,
.cb-profit-bridge__end strong {
  display: block;
  font-size: 2.2rem;
}

.cb-profit-bridge__losses {
  display: grid;
  gap: 0.55rem;
}

.cb-profit-bridge__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.cb-profit-bridge__bar i {
  grid-column: 1 / -1;
  display: block;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--v2-risk) var(--share), rgba(220, 38, 38, 0.1) var(--share));
}

.cb-profit-bridge__bar strong {
  font-size: 0.85rem;
}

.cb-profit-bridge__bar em {
  font-style: normal;
  font-weight: 850;
}

.cb-price-creep {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.95fr);
  gap: 0.75rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(111, 97, 239, 0.04));
}

.cb-price-creep__month,
.cb-price-creep__total {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.cb-price-creep__month header,
.cb-price-creep__total header {
  display: grid;
  gap: 0.15rem;
}

.cb-price-creep__month header strong,
.cb-price-creep__total header strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.cb-price-creep__month header span,
.cb-price-creep__total header span {
  color: var(--v2-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.cb-price-creep__lines {
  display: grid;
  gap: 0.45rem;
}

.cb-price-creep__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.6rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.8rem;
  background: #fff;
}

.cb-price-creep__line strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.cb-price-creep__line em {
  justify-self: end;
  font-style: normal;
  font-weight: 850;
  font-size: 0.86rem;
  color: var(--v2-risk);
}

.cb-price-creep__line span {
  grid-column: 1 / -1;
  color: var(--v2-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.cb-price-creep__line--quiet em {
  color: var(--v2-warn);
}

.cb-price-creep__month-foot {
  margin: 0;
  color: var(--v2-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cb-price-creep__total {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, #fff, var(--v2-risk-bg));
  align-content: start;
}

.cb-price-creep__total > strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1;
  color: var(--v2-risk);
}

.cb-price-creep__stack {
  display: grid;
  gap: 0.45rem;
}

.cb-price-creep__stack div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
}

.cb-price-creep__stack i {
  grid-column: 1 / -1;
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(220, 38, 38, 0.85) var(--share),
    rgba(220, 38, 38, 0.12) var(--share)
  );
}

.cb-price-creep__stack strong {
  font-size: 0.82rem;
}

.cb-price-creep__stack em {
  font-style: normal;
  font-weight: 850;
  font-size: 0.82rem;
  color: var(--v2-risk);
}

.cb-price-creep__total p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.cb-margin-loop-v2 {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.cb-margin-loop-v2__center,
.cb-margin-loop-v2__exception {
  padding: 1.15rem;
  border-radius: 1rem;
}

.cb-margin-loop-v2__center {
  display: grid;
  align-content: center;
  background: #6f61ef;
}

.cb-margin-loop-v2__center span,
.cb-margin-loop-v2__center strong,
.cb-margin-loop-v2__center p {
  color: #fff;
}

.cb-margin-loop-v2__center strong {
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.1;
}

.cb-margin-loop-v2__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cb-margin-loop-v2__step {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #fff;
}

.cb-margin-loop-v2__step p {
  margin: 0.3rem 0 0;
}

.cb-margin-loop-v2__step--act,
.cb-margin-loop-v2__step--monitor {
  border-color: rgba(245, 158, 11, 0.24);
  background: var(--v2-warn-bg);
}

.cb-margin-loop-v2__exception {
  grid-column: 1 / -1;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: var(--v2-risk-bg);
}

.cb-margin-loop-v2__exception strong {
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 900px) {
  .cb-cogs-split,
  .cb-decision-tree,
  .cb-line-intel,
  .cb-risk-routing,
  .cb-invoice-workflow-v2,
  .cb-cost-history-v2,
  .cb-scorecard-pillars-v2,
  .cb-profit-bridge,
  .cb-price-creep,
  .cb-margin-loop-v2 {
    grid-template-columns: 1fr;
  }

  .cb-decision-tree__branch,
  .cb-line-intel__compare,
  .cb-cost-history-v2__timeline,
  .cb-review-funnel__split,
  .cb-margin-loop-v2__steps {
    grid-template-columns: 1fr;
  }

  .cb-risk-routing__scale {
    height: 0.55rem;
  }

  .cb-line-intel__delta,
  .cb-cost-history-v2__delta {
    width: auto;
    height: auto;
    border-radius: 0.85rem;
    text-align: center;
  }
}

.cb-getting-started-diagram {
  --gs-purple: #6f61ef;
  --gs-purple-soft: rgba(111, 97, 239, 0.12);
  --gs-ink: #12131f;
  --gs-muted: #65708c;
  --gs-border: rgba(17, 24, 39, 0.1);
  --gs-warn: #f59e0b;
  --gs-warn-soft: rgba(245, 158, 11, 0.14);
  --gs-risk: #dc2626;
  --gs-risk-soft: rgba(220, 38, 38, 0.1);
  --gs-good: #0c7a43;
  --gs-good-soft: rgba(12, 122, 67, 0.1);
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.8vw, 2rem);
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(111, 97, 239, 0.13), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(12, 122, 67, 0.09), transparent 24%),
    linear-gradient(135deg, rgba(111, 97, 239, 0.04), #fff 42%, rgba(248, 250, 252, 0.95));
  box-shadow: 0 18px 60px rgba(27, 31, 59, 0.08);
}

.cb-getting-started-diagram h3,
.cb-getting-started-diagram p {
  margin: 0;
}

.cb-getting-started-diagram h3 {
  color: var(--gs-ink);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.12;
}

.cb-getting-started-diagram p {
  color: var(--gs-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.cb-getting-started-intake {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1rem);
  padding-bottom: clamp(0.8rem, 1.6vw, 1.1rem);
}

.cb-getting-started-intake__rail {
  position: relative;
  z-index: 1;
  order: -1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1rem);
  min-height: 2.55rem;
  margin: 0 0 0.1rem;
}

.cb-getting-started-intake__rail::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgba(111, 97, 239, 0.28), rgba(111, 97, 239, 0.48), rgba(245, 158, 11, 0.44), rgba(12, 122, 67, 0.3));
}

.cb-getting-started-intake__rail span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: var(--gs-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cb-getting-started-intake__rail span::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--gs-purple);
  box-shadow: 0 0 0 0.35rem rgba(111, 97, 239, 0.12);
}

.cb-getting-started-intake__rail span:nth-child(4)::before {
  background: var(--gs-warn);
  box-shadow: 0 0 0 0.35rem rgba(245, 158, 11, 0.14);
}

.cb-intake-card,
.cb-layer,
.cb-policy-node,
.cb-tracking-stack__control,
.cb-margin-cockpit__rule,
.cb-margin-cockpit__plot,
.cb-margin-cockpit__note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
  padding: clamp(0.9rem, 2vw, 1.2rem);
  border: 1px solid var(--gs-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.cb-intake-card--source {
  border-color: rgba(111, 97, 239, 0.22);
}

.cb-intake-card--extract,
.cb-intake-card--history {
  min-height: 15rem;
}

.cb-intake-card--alerts {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, #fff, rgba(245, 158, 11, 0.08));
}

.cb-doc-stack {
  position: relative;
  width: 4.8rem;
  height: 3.7rem;
}

.cb-doc-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(111, 97, 239, 0.24);
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #fff, rgba(111, 97, 239, 0.08));
  box-shadow: 0 0.45rem 1.1rem rgba(15, 23, 42, 0.08);
}

.cb-doc-stack span:nth-child(2) {
  transform: translate(0.45rem, 0.35rem) rotate(4deg);
}

.cb-doc-stack span:nth-child(3) {
  transform: translate(0.9rem, 0.7rem) rotate(8deg);
}

.cb-getting-started-intake .cb-mini-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: 0;
  padding: 0.55rem 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(111, 97, 239, 0.15);
  border-radius: 0.75rem;
  background: rgba(111, 97, 239, 0.06);
}

.cb-getting-started-intake .cb-mini-ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.1rem 0.45rem;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(111, 97, 239, 0.08);
}

.cb-getting-started-intake .cb-mini-ledger b,
.cb-getting-started-intake .cb-mini-ledger span,
.cb-getting-started-intake .cb-mini-ledger strong {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cb-getting-started-intake .cb-mini-ledger b {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--gs-ink);
  text-overflow: ellipsis;
  font-size: 0.8rem;
  font-weight: 800;
}

.cb-getting-started-intake .cb-mini-ledger span {
  color: var(--gs-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.cb-getting-started-intake .cb-mini-ledger strong {
  justify-self: end;
  color: var(--gs-ink);
  font-size: 0.8rem;
  font-weight: 850;
}

.cb-extract-preview {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(111, 97, 239, 0.08), rgba(255, 255, 255, 0.9));
}

.cb-extract-preview__source {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.28rem 0.65rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 0.72rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(111, 97, 239, 0.1);
}

.cb-extract-preview__source span {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.8rem;
  border-radius: 0.5rem;
  color: var(--gs-purple);
  background: rgba(111, 97, 239, 0.1);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
}

.cb-extract-preview__source i {
  display: block;
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(101, 112, 140, 0.18);
}

.cb-extract-preview__source i:nth-of-type(1) {
  width: 88%;
}

.cb-extract-preview__source i:nth-of-type(2) {
  width: 72%;
}

.cb-extract-preview__source i:nth-of-type(3) {
  width: 58%;
  background: rgba(111, 97, 239, 0.28);
}

.cb-extract-preview__fields {
  display: grid;
  gap: 0.45rem;
}

.cb-extract-preview__fields div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.18rem;
  align-items: start;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.65rem;
  background: #fff;
}

.cb-extract-preview__fields span {
  color: var(--gs-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cb-extract-preview__fields strong {
  min-width: 0;
  color: var(--gs-ink);
  font-size: 0.84rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.cb-sparkline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0.35rem;
  min-height: 3.5rem;
}

.cb-sparkline i {
  display: block;
  border-radius: 999px 999px 0.25rem 0.25rem;
  background: linear-gradient(180deg, var(--gs-purple), rgba(111, 97, 239, 0.3));
}

.cb-sparkline i:nth-child(1) { height: 42%; }
.cb-sparkline i:nth-child(2) { height: 55%; }
.cb-sparkline i:nth-child(3) { height: 51%; }
.cb-sparkline i:nth-child(4) { height: 72%; background: linear-gradient(180deg, var(--gs-warn), rgba(245, 158, 11, 0.35)); }
.cb-sparkline i:nth-child(5) { height: 90%; background: linear-gradient(180deg, var(--gs-risk), rgba(220, 38, 38, 0.35)); }

.cb-alert-stack {
  display: grid;
  gap: 0.45rem;
}

.cb-alert-stack span {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.cb-alert-stack__warn {
  color: #8a4b06;
  background: var(--gs-warn-soft);
}

.cb-alert-stack__risk {
  color: #a6111b;
  background: var(--gs-risk-soft);
}

.cb-alert-stack__good {
  color: var(--gs-good);
  background: var(--gs-good-soft);
}

.cb-tracking-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
}

.cb-tracking-stack__map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cb-layer span,
.cb-policy-node span,
.cb-alert-precedence__result span {
  color: var(--gs-muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-layer strong,
.cb-policy-node strong,
.cb-alert-precedence__result strong {
  display: block;
  color: var(--gs-ink);
  font-size: 1rem;
  line-height: 1.25;
}

.cb-layer--invoice { border-color: rgba(111, 97, 239, 0.2); }
.cb-layer--product { border-color: rgba(12, 122, 67, 0.18); background: linear-gradient(180deg, #fff, var(--gs-good-soft)); }
.cb-layer--supplier { border-color: rgba(245, 158, 11, 0.24); background: linear-gradient(180deg, #fff, var(--gs-warn-soft)); }
.cb-layer--department { border-color: rgba(111, 97, 239, 0.2); background: linear-gradient(180deg, #fff, var(--gs-purple-soft)); }

.cb-tracking-stack__control {
  align-content: center;
  border-color: rgba(111, 97, 239, 0.28);
  background: #11131f;
}

.cb-tracking-stack__control h3,
.cb-tracking-stack__control .cb-v2-kicker,
.cb-tracking-stack__control span,
.cb-tracking-stack__control strong {
  color: #fff;
}

.cb-control-grid {
  display: grid;
  gap: 0.5rem;
}

.cb-control-grid span {
  color: rgba(255, 255, 255, 0.62);
}

.cb-control-grid strong {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.cb-alert-precedence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "global supplier"
    "department product"
    "result result";
  gap: 0.9rem;
}

.cb-alert-precedence__spine {
  position: absolute;
  inset: 2.5rem 50% 7rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(111, 97, 239, 0.25), rgba(245, 158, 11, 0.35), rgba(220, 38, 38, 0.24));
}

.cb-policy-node--global { grid-area: global; border-color: rgba(111, 97, 239, 0.22); }
.cb-policy-node--department { grid-area: department; border-color: rgba(111, 97, 239, 0.18); background: rgba(111, 97, 239, 0.07); }
.cb-policy-node--supplier { grid-area: supplier; border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.08); }
.cb-policy-node--product { grid-area: product; border-color: rgba(220, 38, 38, 0.24); background: rgba(220, 38, 38, 0.07); }

.cb-alert-precedence__result {
  grid-area: result;
  position: relative;
  z-index: 1;
  padding: 1rem;
  border: 1px solid rgba(111, 97, 239, 0.3);
  border-radius: 1rem;
  background: linear-gradient(135deg, #6f61ef, #5746de);
  box-shadow: 0 16px 42px rgba(111, 97, 239, 0.22);
}

.cb-alert-precedence__result span,
.cb-alert-precedence__result strong,
.cb-alert-precedence__result p {
  color: #fff;
}

.cb-alert-precedence__result p {
  max-width: 48rem;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.cb-margin-cockpit {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(0.85rem, 2vw, 1.1rem);
  align-items: stretch;
}

.cb-margin-cockpit__rule {
  border-color: rgba(111, 97, 239, 0.25);
}

.cb-margin-cockpit__rule h3,
.cb-margin-cockpit__plot h3 {
  margin: 0;
}

.cb-margin-cockpit__cascade {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cb-margin-cockpit__cascade span,
.cb-margin-cockpit__cascade i {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.cb-margin-cockpit__cascade span {
  padding: 0 0.7rem;
  color: #fff;
  background: var(--gs-purple);
}

.cb-margin-cockpit__cascade i {
  color: var(--gs-muted);
  font-style: normal;
}

.cb-margin-cockpit__reference {
  display: grid;
  gap: 0.65rem;
}

.cb-margin-cockpit__reference div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(111, 97, 239, 0.14);
  border-radius: 0.85rem;
  background: rgba(111, 97, 239, 0.06);
}

.cb-margin-cockpit__reference span {
  color: var(--gs-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cb-margin-cockpit__reference strong {
  color: var(--gs-ink);
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
}

.cb-margin-cockpit__plot {
  gap: 0.85rem;
  border-color: rgba(17, 24, 39, 0.08);
}

.cb-margin-cockpit__plot-head {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.cb-margin-cockpit__plot-head strong {
  flex: 0 0 auto;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--gs-risk);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16);
  font-size: 0.82rem;
}

.cb-margin-chart {
  position: relative;
  overflow: hidden;
  min-height: 18.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: #fff;
}

.cb-margin-chart__zone {
  position: absolute;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1rem;
  color: rgba(18, 19, 31, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cb-margin-chart__zone span {
  position: relative;
  z-index: 2;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.cb-margin-chart__zone--healthy {
  inset-block: 48% 0;
  background: linear-gradient(180deg, rgba(12, 122, 67, 0.05), rgba(12, 122, 67, 0.14));
}

.cb-margin-chart__zone--thin {
  inset-block: 26% 48%;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.18));
}

.cb-margin-chart__zone--out {
  inset-block: 0 74%;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.16), rgba(220, 38, 38, 0.07));
}

.cb-margin-chart__svg {
  position: absolute;
  inset: 0.25rem 0.35rem 2.4rem;
  width: calc(100% - 0.7rem);
  height: calc(100% - 2.65rem);
}

.cb-margin-chart__grid {
  fill: none;
  stroke: rgba(101, 112, 140, 0.16);
  stroke-width: 1;
}

.cb-margin-chart__line {
  fill: none;
  stroke: var(--gs-purple);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  filter: drop-shadow(0 8px 12px rgba(111, 97, 239, 0.18));
  animation: cb-margin-line-draw 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.cb-margin-chart__thin-line,
.cb-margin-chart__out-line {
  stroke-width: 2;
  stroke-dasharray: 9 8;
}

.cb-margin-chart__thin-line {
  stroke: rgba(245, 158, 11, 0.72);
}

.cb-margin-chart__out-line {
  stroke: rgba(220, 38, 38, 0.72);
}

.cb-margin-chart__marker {
  opacity: 0;
  transform: translateY(12px);
  animation: cb-margin-marker-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.cb-margin-chart__marker line {
  stroke: rgba(220, 38, 38, 0.5);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.cb-margin-chart__marker circle {
  fill: var(--gs-risk);
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 8px 12px rgba(220, 38, 38, 0.22));
}

.cb-margin-chart__axis {
  position: absolute;
  inset-inline: 0.8rem;
  bottom: 0.62rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.cb-margin-chart__axis span {
  color: var(--gs-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.cb-margin-chart__axis span:nth-child(2) {
  text-align: center;
}

.cb-margin-chart__axis span:nth-child(3) {
  text-align: right;
}

.cb-margin-cockpit__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.cb-margin-cockpit__legend span {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  color: var(--gs-muted);
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  line-height: 1.35;
}

.cb-legend-dot {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.16rem;
  border-radius: 999px;
}

.cb-legend-dot--healthy {
  background: var(--gs-good);
}

.cb-legend-dot--thin {
  background: var(--gs-warn);
}

.cb-legend-dot--out {
  background: var(--gs-risk);
}

.cb-margin-cockpit__note {
  grid-column: 1 / -1;
  border-color: rgba(111, 97, 239, 0.2);
  background: rgba(111, 97, 239, 0.07);
}

.cb-margin-cockpit__note strong {
  color: var(--gs-ink);
}

@keyframes cb-margin-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cb-margin-marker-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .cb-getting-started-intake,
  .cb-getting-started-intake__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .cb-getting-started-intake,
  .cb-getting-started-intake__rail,
  .cb-tracking-stack,
  .cb-alert-precedence,
  .cb-margin-cockpit {
    grid-template-columns: 1fr;
  }

  .cb-getting-started-intake__rail,
  .cb-alert-precedence__spine {
    display: none;
  }

  .cb-alert-precedence {
    grid-template-areas:
      "global"
      "department"
      "supplier"
      "product"
      "result";
  }
}

@media (max-width: 640px) {
  .cb-tracking-stack__map,
  .cb-margin-cockpit__legend,
  .cb-margin-chart__axis {
    grid-template-columns: 1fr;
  }

  .cb-margin-cockpit__plot-head {
    display: grid;
  }

  .cb-margin-chart__axis span,
  .cb-margin-chart__axis span:nth-child(2),
  .cb-margin-chart__axis span:nth-child(3) {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-margin-chart__line {
    stroke-dashoffset: 0;
    animation: none;
  }

  .cb-margin-chart__marker {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.cb-price-track-diagram {
  --pt-purple: #6f61ef;
  --pt-purple-soft: rgba(111, 97, 239, 0.11);
  --pt-ink: #12131f;
  --pt-muted: #65708c;
  --pt-border: rgba(15, 23, 42, 0.1);
  --pt-warn: #f59e0b;
  --pt-warn-soft: rgba(245, 158, 11, 0.13);
  --pt-risk: #dc2626;
  --pt-risk-soft: rgba(220, 38, 38, 0.1);
  --pt-good: #0c7a43;
  --pt-good-soft: rgba(12, 122, 67, 0.1);
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.8vw, 1.8rem);
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(111, 97, 239, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(12, 122, 67, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(111, 97, 239, 0.04), #fff 45%, rgba(248, 250, 252, 0.96));
  box-shadow: 0 18px 58px rgba(27, 31, 59, 0.08);
}

.cb-price-track-diagram h3,
.cb-price-track-diagram p {
  margin: 0;
}

.cb-price-track-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.cb-price-track-workflow__rail {
  position: absolute;
  inset: 50% 1.5rem auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(111, 97, 239, 0.28), rgba(245, 158, 11, 0.36), rgba(220, 38, 38, 0.22));
}

.cb-price-track-workflow article,
.cb-price-track-normalize article,
.cb-price-track-normalize__math,
.cb-price-track-compare__lane,
.cb-price-track-compare__bridge {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--pt-border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.cb-price-track-workflow article span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
  background: var(--pt-purple);
  font-weight: 900;
}

.cb-price-track-workflow article strong,
.cb-price-track-normalize article strong,
.cb-price-track-normalize__math strong,
.cb-price-track-compare strong,
.cb-impact-dot strong {
  color: var(--pt-ink);
  line-height: 1.18;
}

.cb-price-track-workflow article p,
.cb-price-track-normalize article p,
.cb-price-track-normalize__math p,
.cb-price-track-compare p,
.cb-impact-dot span {
  color: var(--pt-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cb-price-track-normalize {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.cb-price-track-normalize__cards {
  display: grid;
  gap: 0.8rem;
}

.cb-price-track-normalize article {
  border-color: rgba(111, 97, 239, 0.2);
}

.cb-price-track-normalize__risk {
  border-color: rgba(245, 158, 11, 0.28) !important;
  background: linear-gradient(180deg, #fff, var(--pt-warn-soft)) !important;
}

.cb-price-track-normalize article span,
.cb-price-track-normalize__math span,
.cb-price-track-compare__lane > span,
.cb-price-track-compare__bridge > span {
  color: var(--pt-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-price-track-normalize article strong {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.cb-price-track-normalize article b {
  justify-self: start;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--pt-purple);
}

.cb-price-track-normalize__risk b {
  background: var(--pt-risk) !important;
}

.cb-price-track-normalize__math {
  align-content: center;
  border-color: rgba(245, 158, 11, 0.24);
}

.cb-price-track-normalize__math strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cb-price-track-normalize__math i {
  display: block;
  width: 100%;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pt-good-soft), var(--pt-warn-soft), var(--pt-risk-soft));
}

.cb-price-track-normalize__math div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 0.85rem;
  background: var(--pt-risk-soft);
}

.cb-price-track-normalize__math b {
  color: var(--pt-risk);
  font-size: 1.8rem;
}

.cb-price-track-impact {
  padding: clamp(0.8rem, 2.4vw, 1.4rem);
}

.cb-price-track-impact__matrix {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  border: 1px solid var(--pt-border);
  border-radius: 1rem;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(15, 23, 42, 0.08) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(15, 23, 42, 0.08) 50%, transparent 50.2%),
    #fff;
}

.cb-price-track-impact__quad {
  position: absolute;
  display: grid;
  place-items: center;
  color: rgba(18, 19, 31, 0.48);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-price-track-impact__quad--watch {
  inset: 0 50% 50% 0;
  background: rgba(245, 158, 11, 0.08);
}

.cb-price-track-impact__quad--urgent {
  inset: 0 0 50% 50%;
  background: rgba(220, 38, 38, 0.09);
}

.cb-price-track-impact__quad--low {
  inset: 50% 50% 0 0;
  background: rgba(12, 122, 67, 0.07);
}

.cb-price-track-impact__quad--money {
  inset: 50% 0 0 50%;
  background: rgba(111, 97, 239, 0.07);
}

.cb-price-track-impact__axis {
  position: absolute;
  z-index: 2;
  color: var(--pt-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.cb-price-track-impact__axis--y {
  top: 0.8rem;
  left: 0.8rem;
}

.cb-price-track-impact__axis--x {
  right: 0.9rem;
  bottom: 0.8rem;
}

.cb-impact-dot {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: min(11rem, 34%);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.cb-impact-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.42rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--pt-purple);
  transform: translateX(-50%);
}

.cb-impact-dot--spice::before {
  background: var(--pt-warn);
}

.cb-impact-dot--striploin::before {
  background: var(--pt-risk);
}

.cb-price-track-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.72fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.cb-price-track-compare__lane {
  align-content: start;
}

.cb-price-track-compare__lane h3,
.cb-price-track-compare__bridge strong {
  margin: 0;
  color: var(--pt-ink);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.1;
}

.cb-price-track-compare__lane div {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  border-radius: 0.72rem;
  background: rgba(15, 23, 42, 0.035);
}

.cb-price-track-compare__lane--manual {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, #fff, var(--pt-warn-soft));
}

.cb-price-track-compare__lane--costbeacon {
  border-color: rgba(111, 97, 239, 0.25);
  background: linear-gradient(180deg, #fff, var(--pt-purple-soft));
}

.cb-price-track-compare__bridge {
  place-content: center;
  text-align: center;
  border-color: rgba(111, 97, 239, 0.28);
  background: #11131f;
}

.cb-price-track-compare__bridge span,
.cb-price-track-compare__bridge strong,
.cb-price-track-compare__bridge p {
  color: #fff;
}

.cb-price-track-compare__bridge p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .cb-price-track-workflow,
  .cb-price-track-normalize,
  .cb-price-track-compare {
    grid-template-columns: 1fr;
  }

  .cb-price-track-workflow__rail {
    display: none;
  }

  .cb-price-track-impact__matrix {
    min-height: 34rem;
  }

  .cb-impact-dot {
    width: min(14rem, 70%);
  }
}

@media (max-width: 560px) {
  .cb-price-track-impact__matrix {
    min-height: 38rem;
  }

  .cb-price-track-impact__axis--x {
    left: 0.8rem;
    right: auto;
  }

  .cb-impact-dot {
    left: 50% !important;
    width: calc(100% - 2rem);
  }

  .cb-impact-dot--spice {
    top: 22% !important;
  }

  .cb-impact-dot--chicken {
    top: 48% !important;
  }

  .cb-impact-dot--striploin {
    top: 74% !important;
  }
}

.cb-faithful-article .cb-faithful-table-wrap {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.1rem 0 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.cb-faithful-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cb-faithful-table th,
.cb-faithful-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: left;
  vertical-align: top;
}

.cb-faithful-table th {
  color: #11131f;
  background: rgba(111, 97, 239, 0.08);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cb-faithful-table td {
  color: #4f5b76;
}

.cb-faithful-table tr:last-child td {
  border-bottom: 0;
}

.cb-faithful-code {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  margin: 1rem 0 1.3rem;
  padding: 1rem;
  border: 1px solid rgba(111, 97, 239, 0.16);
  border-radius: 0.9rem;
  background: #11131f;
  color: #f8fafc;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: 0 14px 36px rgba(17, 19, 31, 0.13);
}

.cb-faithful-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.cb-faithful-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: center;
  margin: 1.8rem 0 2rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(111, 97, 239, 0.06), #fff 48%, rgba(248, 250, 252, 0.96));
  box-shadow: 0 14px 38px rgba(27, 31, 59, 0.07);
}

.cb-faithful-download__copy {
  display: grid;
  gap: 0.65rem;
}

.cb-faithful-download__copy span {
  color: #6f61ef;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cb-faithful-download__copy h3 {
  margin: 0;
  color: #11131f;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.15;
}

.cb-faithful-download__copy p {
  margin: 0;
  color: #65708c;
  line-height: 1.5;
}

.cb-faithful-download__button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(111, 97, 239, 0.35);
  border-radius: 999px;
  color: #fff;
  background: #6f61ef;
  font-size: 0.95rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(111, 97, 239, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cb-faithful-download__button:hover {
  color: #fff;
  background: #5f52dc;
  box-shadow: 0 15px 30px rgba(111, 97, 239, 0.22);
  transform: translateY(-1px);
}

.cb-faithful-download__button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.cb-faithful-download__preview {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cb-faithful-download__bar {
  display: flex;
  gap: 0.38rem;
  align-items: center;
  padding: 0.62rem 0.72rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.cb-faithful-download__bar i {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
}

.cb-faithful-download__bar i:nth-child(1) { background: #ff5f57; }
.cb-faithful-download__bar i:nth-child(2) { background: #ffbd2e; }
.cb-faithful-download__bar i:nth-child(3) { background: #28c840; }

.cb-faithful-download__bar strong {
  min-width: 0;
  margin-left: 0.25rem;
  color: #65708c;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-faithful-download__sheet {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.25fr 0.72fr;
  padding: 0.75rem;
}

.cb-faithful-download__sheet b,
.cb-faithful-download__sheet span,
.cb-faithful-download__sheet strong {
  min-width: 0;
  padding: 0.48rem 0.5rem;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-faithful-download__sheet b {
  color: #11131f;
  background: rgba(111, 97, 239, 0.08);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.cb-faithful-download__sheet span,
.cb-faithful-download__sheet strong {
  color: #65708c;
  font-size: 0.78rem;
}

.cb-faithful-download__sheet strong {
  color: #11131f;
}

.cb-faithful-download__sheet .cb-faithful-download__risk {
  color: #dc2626;
}

.cb-faithful-diagram {
  --fd-purple: #6f61ef;
  --fd-ink: #11131f;
  --fd-muted: #65708c;
  --fd-border: rgba(15, 23, 42, 0.1);
  --fd-warn: #f59e0b;
  --fd-risk: #dc2626;
  --fd-good: #0c7a43;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(111, 97, 239, 0.18);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 10% 12%, rgba(111, 97, 239, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(111, 97, 239, 0.04), #fff 48%, rgba(248, 250, 252, 0.96));
  box-shadow: 0 16px 48px rgba(27, 31, 59, 0.08);
}

.cb-faithful-article,
.cb-faithful-article figure,
.cb-faithful-article pre,
.cb-faithful-article table {
  min-width: 0;
  max-width: 100%;
}

.cb-faithful-window {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.cb-faithful-window__bar {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.95);
}

.cb-faithful-window__bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.cb-faithful-window__bar span:nth-child(1) { background: #ff5f57; }
.cb-faithful-window__bar span:nth-child(2) { background: #ffbd2e; }
.cb-faithful-window__bar span:nth-child(3) { background: #28c840; }

.cb-faithful-window__bar strong {
  margin-left: 0.45rem;
  color: var(--fd-muted);
  font-size: 0.82rem;
}

.cb-faithful-folder__grid {
  display: grid;
  grid-template-columns: minmax(7rem, 0.55fr) minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: 20rem;
}

.cb-faithful-sidebar,
.cb-faithful-tree,
.cb-faithful-files {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem;
}

.cb-faithful-sidebar {
  background: rgba(111, 97, 239, 0.06);
}

.cb-faithful-sidebar span,
.cb-faithful-match span,
.cb-faithful-normalize span,
.cb-faithful-impact span,
.cb-faithful-threshold span,
.cb-faithful-screen span,
.cb-faithful-switch span {
  color: var(--fd-muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cb-faithful-sidebar b {
  color: var(--fd-ink);
  font-size: 0.88rem;
}

.cb-folder-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--fd-muted);
  font-size: 0.88rem;
}

.cb-folder-row--child { padding-left: 1rem; }
.cb-folder-row--grand { padding-left: 2rem; }

.cb-folder-row i {
  width: 1rem;
  height: 0.78rem;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #f8c044, #f59e0b);
  box-shadow: inset 0 0.16rem rgba(255, 255, 255, 0.35);
}

.cb-faithful-files article {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: #fff;
}

.cb-faithful-files span {
  color: var(--fd-purple);
  font-size: 0.72rem;
  font-weight: 900;
}

.cb-faithful-files strong {
  min-width: 0;
  color: var(--fd-ink);
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.cb-faithful-match,
.cb-faithful-normalize,
.cb-faithful-impact,
.cb-faithful-threshold,
.cb-faithful-costbeacon-flow,
.cb-faithful-switch {
  display: grid;
  gap: 0.9rem;
  align-items: stretch;
}

.cb-faithful-match {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.cb-faithful-match__aliases,
.cb-faithful-match__master,
.cb-faithful-normalize article,
.cb-faithful-normalize section,
.cb-faithful-impact__calculator,
.cb-faithful-impact__metric,
.cb-faithful-threshold section,
.cb-faithful-threshold article,
.cb-faithful-screen,
.cb-faithful-switch section {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--fd-border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.cb-faithful-match__aliases b {
  padding: 0.48rem 0.6rem;
  border-radius: 0.62rem;
  color: var(--fd-ink);
  background: rgba(111, 97, 239, 0.08);
}

.cb-faithful-match__arrow,
.cb-faithful-impact__equation > i,
.cb-faithful-costbeacon-flow i {
  display: grid;
  place-items: center;
  color: var(--fd-purple);
  font-size: 1.75rem;
  font-weight: 900;
}

.cb-faithful-match__master {
  border-color: rgba(12, 122, 67, 0.2);
  background: linear-gradient(180deg, #fff, rgba(12, 122, 67, 0.08));
}

.cb-faithful-match__master strong,
.cb-faithful-normalize strong,
.cb-faithful-impact strong,
.cb-faithful-threshold strong,
.cb-faithful-threshold b,
.cb-faithful-screen strong,
.cb-faithful-switch strong {
  color: var(--fd-ink);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.cb-faithful-match__master p,
.cb-faithful-normalize p,
.cb-faithful-impact p,
.cb-faithful-threshold p,
.cb-faithful-screen p,
.cb-faithful-switch p {
  margin: 0;
  color: var(--fd-muted);
  line-height: 1.4;
}

.cb-faithful-match dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  margin: 0;
}

.cb-faithful-match dt {
  color: var(--fd-muted);
  font-weight: 800;
}

.cb-faithful-match dd {
  margin: 0;
  color: var(--fd-ink);
}

.cb-faithful-sheet__toolbar,
.cb-faithful-sheet__rows {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 0.8fr;
}

.cb-faithful-sheet__toolbar b,
.cb-faithful-sheet__rows span,
.cb-faithful-sheet__rows strong {
  padding: 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.cb-faithful-sheet__toolbar b {
  color: var(--fd-muted);
  background: rgba(111, 97, 239, 0.08);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.cb-faithful-sheet__rows span,
.cb-faithful-sheet__rows strong {
  color: var(--fd-ink);
  font-size: 0.86rem;
}

.cb-faithful-normalize {
  grid-template-columns: 1fr 1fr 1.2fr;
}

.cb-faithful-normalize article b {
  justify-self: start;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  background: var(--fd-purple);
}

.cb-faithful-normalize__risk {
  border-color: rgba(220, 38, 38, 0.22) !important;
  background: rgba(220, 38, 38, 0.07) !important;
}

.cb-faithful-normalize__risk b {
  background: var(--fd-risk) !important;
}

.cb-faithful-impact {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 2.2vw, 1.4rem);
  align-items: stretch;
}

.cb-faithful-impact,
.cb-faithful-impact * {
  box-sizing: border-box;
}

.cb-faithful-impact__calculator {
  justify-content: center;
  border-color: rgba(111, 97, 239, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    radial-gradient(circle at 12% 20%, rgba(111, 97, 239, 0.14), transparent 30%);
}

.cb-faithful-impact__equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.cb-faithful-impact__metric {
  min-height: 8.25rem;
  align-content: center;
}

.cb-faithful-impact__metric strong {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 0.95;
}

.cb-faithful-impact__metric em {
  color: var(--fd-muted);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 800;
}

.cb-faithful-impact__metric--weekly {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(180deg, #fff, rgba(245, 158, 11, 0.1));
}

.cb-faithful-impact__equation > i {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--fd-purple);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 950;
  background: rgba(111, 97, 239, 0.12);
}

.cb-faithful-impact__risk {
  display: grid;
  gap: 0.8rem;
  align-content: center;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 0.95rem;
  border-color: rgba(220, 38, 38, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(254, 242, 242, 0.86)),
    radial-gradient(circle at 72% 18%, rgba(220, 38, 38, 0.12), transparent 34%) !important;
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.11);
}

.cb-faithful-impact__risk strong {
  color: var(--fd-risk);
  max-width: 100%;
  overflow-wrap: normal;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.cb-faithful-impact__bar {
  overflow: hidden;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.12);
}

.cb-faithful-impact__bar i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #dc2626);
  animation: cb-faithful-pressure 2.6s ease-in-out infinite;
}

@keyframes cb-faithful-pressure {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.86;
  }
  50% {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-faithful-impact__bar i {
    animation: none;
  }
}

.cb-faithful-threshold {
  grid-template-columns: 1fr 0.8fr 0.8fr 1fr;
}

.cb-faithful-threshold article {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.08);
}

.cb-faithful-threshold__result {
  border-color: rgba(12, 122, 67, 0.2) !important;
  background: rgba(12, 122, 67, 0.08) !important;
}

.cb-faithful-costbeacon-flow {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.cb-faithful-screen {
  min-height: 10rem;
  align-content: center;
}

.cb-faithful-screen--ai {
  border-color: rgba(111, 97, 239, 0.24);
  background: linear-gradient(180deg, #fff, rgba(111, 97, 239, 0.09));
}

.cb-faithful-screen--alert {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, #fff, rgba(245, 158, 11, 0.1));
}

.cb-faithful-switch {
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.5fr) minmax(0, 1fr);
}

.cb-faithful-switch__scale {
  display: grid;
  place-items: center;
}

.cb-faithful-switch__scale i {
  display: block;
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.34), rgba(111, 97, 239, 0.75));
}

@media (max-width: 1180px) {
  .cb-faithful-impact {
    grid-template-columns: 1fr;
  }

  .cb-faithful-impact__risk {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .cb-faithful-download {
    grid-template-columns: 1fr;
  }

  .cb-faithful-folder__grid,
  .cb-faithful-match,
  .cb-faithful-normalize,
  .cb-faithful-impact,
  .cb-faithful-threshold,
  .cb-faithful-costbeacon-flow,
  .cb-faithful-switch {
    grid-template-columns: 1fr;
  }

  .cb-faithful-match__arrow,
  .cb-faithful-impact__equation > i,
  .cb-faithful-costbeacon-flow i {
    transform: rotate(90deg);
  }

  .cb-faithful-impact__equation {
    grid-template-columns: 1fr;
  }

  .cb-faithful-impact__metric {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .cb-faithful-impact__equation {
    grid-template-columns: 1fr;
  }

  .cb-faithful-impact__equation > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .cb-faithful-impact__metric {
    min-height: auto;
  }

  .cb-faithful-impact__risk strong {
    white-space: normal;
  }
}

.cb-blog-search {
  margin-top: 1.25rem;
  max-width: 34rem;
}

.cb-blog-search__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cb-blog-search__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cb-blog-search__row input[type="search"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 0.5rem);
  font: inherit;
}

.cb-blog-search__popular {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cb-blog-search__popular a {
  color: color-mix(in srgb, var(--foreground) 88%, var(--primary));
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 0.15em;
}

.cb-blog-search__popular a:hover {
  color: var(--primary);
}

.cb-blog-search__status,
.cb-blog-search__empty {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.cb-blog-help-link {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 1rem;
}

.cb-blog-help-link a {
  color: color-mix(in srgb, var(--foreground) 85%, var(--primary));
  font-weight: 600;
  text-decoration: none;
}

.cb-blog-help-link a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cb-blog-inline-cta {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-brand-softer) 88%, #fff),
      #fff 70%
    );
  box-shadow: var(--shadow-sm);
}

@media (min-width: 800px) {
  .cb-blog-inline-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }
}

.cb-blog-inline-cta__copy .cb-title,
.cb-blog-inline-cta__copy .cb-lead {
  margin: 0;
}

.cb-blog-inline-cta__copy .cb-lead {
  margin-top: 0.65rem;
  max-width: 38rem;
}

.cb-industry-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .cb-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .cb-industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cb-industry-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cb-industry-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-md);
  color: var(--foreground);
}

.cb-industry-tile__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--muted);
}

.cb-industry-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.cb-industry-tile:hover .cb-industry-tile__media img {
  transform: scale(1.03);
}

.cb-industry-tile__body {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem 1.35rem;
}

.cb-industry-tile__body .cb-title {
  margin: 0;
}

.cb-industry-tile__example {
  margin: 0;
  color: color-mix(in srgb, var(--foreground) 78%, var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.4;
}

.cb-blog-final-cta {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) 1rem;
  text-align: center;
}

.cb-blog-final-cta .cb-lead {
  margin: 0;
  max-width: 36rem;
}

.cb-blog-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.cb-blog-search__empty[hidden],
.cb-post-card[hidden],
.cb-topic-pill[hidden],
.cb-industry-tile[hidden] {
  display: none !important;
}

.cb-title--md {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
}

/* Related chips: constrain width + equal-height cards (blog pages import site.css) */
.cb-related-links {
  width: var(--container);
  margin-inline: auto;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.cb-related-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.cb-related-links li {
  display: flex;
  min-width: 0;
  height: 100%;
}

.cb-related-links a {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 3.5rem;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 0.95rem 1rem;
  line-height: 1.35;
}
