/* ==========================================================================
   ZeroSpread — كاشف التناقضات
   Scoped under .zs-cd; keyframes prefixed zs-cd-. Tajawal 400/500/700 only.
   The section fills the homepage content column: no max-width, no inline gutter.
   ========================================================================== */

.zs-cd {
  --zs-cd-surface: #ffffff;
  --zs-cd-pearl: #f6f7f9;
  --zs-cd-line: #e7eaee;
  --zs-cd-line-strong: #d5dae1;
  --zs-cd-hair: #eef0f3;
  --zs-cd-ink: #101318;
  --zs-cd-ink-2: #2a313c;
  --zs-cd-ink-3: #4a5260;
  --zs-cd-muted: #6b7380;
  --zs-cd-faint: #8d949f;
  --zs-cd-up: #178a4a;
  --zs-cd-down: #c9383a;
  /* contradiction accent: muted, never alarm-red */
  --zs-cd-clash: #b3464b;
  --zs-cd-clash-bg: #fbf0f0;
  --zs-cd-agree: #2a313c;
  --zs-cd-agree-bg: #eef1f4;
  --zs-cd-brand: #a3ff12;
  --zs-cd-brand-edge: #6fae0b;
  --zs-cd-accent: #1f2b3e;
  --zs-cd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zs-cd-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --zs-cd-fast: 200ms;
  --zs-cd-k: 1; /* timeline multiplier (asset switch shortens it) */

  font-family: var(--font-tajawal, 'Tajawal'), sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--zs-cd-ink);
  direction: rtl;
  width: 100%;
  box-sizing: border-box;
  padding-block: clamp(36px, 4.5vw, 64px);
}

.zs-cd *,
.zs-cd *::before,
.zs-cd *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.zs-cd :where(h2, h3, h4, p, ul, dl, dd) {
  margin: 0;
  padding: 0;
}

.zs-cd :where(ul) {
  list-style: none;
}

.zs-cd :where(button) {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.zs-cd-num,
.zs-cd-price__num,
.zs-cd-select__sym {
  font-variant-numeric: tabular-nums lining-nums;
  unicode-bidi: isolate;
  direction: ltr;
}

.zs-cd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ─────────────────────────────── Header ─────────────────────────────── */

.zs-cd-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.zs-cd-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--zs-cd-muted);
  margin-bottom: 12px;
}

.zs-cd-header__rule {
  width: 1px;
  height: 12px;
  background: #cbd2da;
}

.zs-cd-header__brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zs-cd-brand);
  box-shadow: inset 0 0 0 1px var(--zs-cd-brand-edge);
}

.zs-cd-header__title {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.18;
  font-weight: 700;
  color: var(--zs-cd-ink);
}

.zs-cd-header__subtitle {
  margin-top: 10px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.7;
  color: #525a67;
}

.zs-cd-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  background: var(--zs-cd-surface);
  color: var(--zs-cd-ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background-color var(--zs-cd-fast) var(--zs-cd-ease), border-color var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-cta svg {
  transition: translate var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-cta:hover {
  background: var(--zs-cd-pearl);
  border-color: var(--zs-cd-line-strong);
}

.zs-cd-cta:hover svg {
  translate: -3px 0;
}

.zs-cd :focus-visible {
  outline: 2px solid var(--zs-cd-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ─────────────────────────────── Toolbar ─────────────────────────────── */

.zs-cd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block: 22px 16px;
}

.zs-cd-fresh {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.zs-cd-fresh__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--zs-cd-line);
  border-radius: 12px;
  background: var(--zs-cd-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--zs-cd-ink-2);
  white-space: nowrap;
}

.zs-cd-fresh__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3c9d2;
}

.zs-cd-fresh__chip[data-state='periodic'] .zs-cd-fresh__dot {
  background: var(--zs-cd-brand);
  box-shadow: inset 0 0 0 1px var(--zs-cd-brand-edge);
}

.zs-cd-fresh__time {
  font-size: 13px;
  color: var(--zs-cd-faint);
  white-space: nowrap;
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--zs-cd-line);
}

.zs-cd-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.zs-cd-filters::-webkit-scrollbar {
  display: none;
}

.zs-cd-filter {
  flex: none;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--zs-cd-line);
  border-radius: 999px;
  background: var(--zs-cd-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--zs-cd-ink-3);
  transition: background-color var(--zs-cd-fast) var(--zs-cd-ease), color var(--zs-cd-fast) var(--zs-cd-ease), border-color var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-filter:hover {
  border-color: var(--zs-cd-line-strong);
  color: var(--zs-cd-ink);
}

.zs-cd-filter[aria-pressed='true'] {
  background: var(--zs-cd-accent);
  border-color: var(--zs-cd-accent);
  color: #fff;
}

/* ─────────────────────────────── Surface ─────────────────────────────── */

.zs-cd-surface {
  position: relative;
  background: var(--zs-cd-surface);
  border: 1px solid #e8ebef;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 30px 60px -48px rgba(15, 23, 42, 0.16);
  isolation: isolate;
}

.zs-cd-surface--empty {
  padding: 48px 24px;
  text-align: center;
}

.zs-cd-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1.08fr);
  grid-template-areas: 'price center signals';
  min-height: 520px;
}

.zs-cd-col {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.zs-cd-col--price {
  grid-area: price;
  padding: 26px 28px 22px;
  border-inline-end: 1px solid var(--zs-cd-hair);
}

.zs-cd-col--center {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 16px;
}

.zs-cd-col--signals {
  grid-area: signals;
  padding: 26px 24px 22px;
}

.zs-cd-kicker {
  font-size: 15px;
  font-weight: 700;
  color: var(--zs-cd-ink-2);
}

/* ─────────────────────────────── Price ─────────────────────────────── */

.zs-cd-price__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.zs-cd-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--zs-cd-muted);
}

.zs-cd-state__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c3c9d2;
}

.zs-cd-state[data-state='live'] .zs-cd-state__dot {
  background: var(--zs-cd-brand);
  box-shadow: inset 0 0 0 1px var(--zs-cd-brand-edge);
}

.zs-cd-state[data-state='last_session'] .zs-cd-state__dot {
  background: var(--zs-cd-faint);
}

.zs-cd-select {
  position: relative;
}

.zs-cd-select__btn,
.zs-cd-select__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--zs-cd-line);
  border-radius: 14px;
  background: var(--zs-cd-surface);
  padding: 10px 14px;
  text-align: start;
  transition: border-color var(--zs-cd-fast) var(--zs-cd-ease), background-color var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-select__btn:hover {
  border-color: var(--zs-cd-line-strong);
}

.zs-cd-select__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.zs-cd-select__sym {
  font-size: 16px;
  font-weight: 700;
  color: var(--zs-cd-ink);
  text-align: right;
}

.zs-cd-select__name {
  font-size: 12.5px;
  color: var(--zs-cd-faint);
}

.zs-cd-select__chev {
  color: var(--zs-cd-muted);
  display: inline-flex;
}

.zs-cd-select__list {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: var(--zs-cd-surface);
  border: 1px solid var(--zs-cd-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.28);
}

.zs-cd-select__opt {
  border-color: transparent;
  padding: 8px 10px;
}

.zs-cd-select__opt:hover,
.zs-cd-select__opt[data-selected='true'] {
  background: var(--zs-cd-pearl);
}

.zs-cd-select__state {
  font-size: 12px;
  font-weight: 500;
  color: var(--zs-cd-muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--zs-cd-pearl);
  white-space: nowrap;
}

.zs-cd-select__state[data-state^='contradiction'] {
  color: var(--zs-cd-clash);
  background: var(--zs-cd-clash-bg);
}

.zs-cd-mono {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef1f5;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: var(--zs-cd-ink-2);
}

.zs-cd-select__icon {
  flex: none;
  display: inline-flex;
}

.zs-cd-price__quote {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.zs-cd-price__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.zs-cd-price__num {
  font-size: clamp(28px, 2.3vw, 36px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--zs-cd-ink);
}

.zs-cd-price__unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--zs-cd-faint);
}

.zs-cd-price__na {
  font-size: 13px;
  color: var(--zs-cd-faint);
}

.zs-cd-price__change {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  order: 0;
  gap: 2px;
  font-size: 19px;
  font-weight: 700;
}

.zs-cd-price__change[data-tone='up'] .zs-cd-num {
  color: var(--zs-cd-up);
}

.zs-cd-price__change[data-tone='down'] .zs-cd-num {
  color: var(--zs-cd-down);
}

.zs-cd-price__change[data-tone='none'] .zs-cd-num,
.zs-cd-price__change[data-tone='flat'] .zs-cd-num {
  color: var(--zs-cd-faint);
}

.zs-cd-price__period {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--zs-cd-faint);
  white-space: nowrap;
}

.zs-cd-price__chartbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block: 20px 8px;
}

.zs-cd-price__interval {
  font-size: 12px;
  color: var(--zs-cd-faint);
}

.zs-cd-seg {
  display: inline-flex;
  gap: 6px;
}

.zs-cd-seg__btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--zs-cd-line);
  border-radius: 10px;
  background: var(--zs-cd-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--zs-cd-ink-3);
  transition: background-color var(--zs-cd-fast) var(--zs-cd-ease), color var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-seg__btn[aria-pressed='true'] {
  background: var(--zs-cd-accent);
  border-color: var(--zs-cd-accent);
  color: #fff;
}

.zs-cd-chart {
  position: relative;
  width: 100%;
  color: var(--zs-cd-ink-3);
}

.zs-cd-chart[data-tone='up'] {
  color: var(--zs-cd-up);
}

.zs-cd-chart[data-tone='down'] {
  color: var(--zs-cd-down);
}

.zs-cd-chart svg {
  display: block;
  overflow: visible;
}

.zs-cd-chart__grid {
  stroke: #eef0f3;
  stroke-width: 1;
}

.zs-cd-chart__ylabel,
.zs-cd-chart__xlabel {
  fill: var(--zs-cd-faint);
  font-size: 11.5px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.zs-cd-chart__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

.zs-cd-chart__marker line {
  stroke: var(--zs-cd-accent);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
  opacity: 0.55;
}

.zs-cd-chart__marker circle {
  fill: var(--zs-cd-surface);
  stroke: var(--zs-cd-accent);
  stroke-width: 1.4;
}

.zs-cd-chart__marker[data-active='true'] line {
  opacity: 1;
}

.zs-cd-empty {
  padding: 24px 0;
  font-size: 14px;
  color: var(--zs-cd-faint);
}

/* ─────────────────────────────── Center ─────────────────────────────── */

.zs-cd-disc {
  position: relative;
  z-index: 3;
  width: clamp(260px, 21vw, 318px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--zs-cd-surface);
  border: 1px solid var(--zs-cd-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -32px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 30px;
  text-align: center;
}

.zs-cd-disc__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--zs-cd-line);
  color: var(--zs-cd-ink-2);
  margin-bottom: 2px;
}

.zs-cd-disc__title {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.35;
  text-wrap: balance;
  font-weight: 700;
  color: var(--zs-cd-ink);
}

.zs-cd-disc[data-state^='contradiction'] .zs-cd-disc__title {
  color: #1b1f26;
}

.zs-cd-disc__text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--zs-cd-ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zs-cd-disc__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--zs-cd-ink-2);
}

.zs-cd-disc__more {
  border: 0;
  background: none;
  padding: 2px 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--zs-cd-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #cfd4db;
}

.zs-cd-disc__more:hover {
  color: var(--zs-cd-ink);
}

.zs-cd-glyph {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  margin-top: 4px;
  direction: rtl;
}

.zs-cd-glyph > span {
  width: 5px;
  height: 9px;
  border-radius: 2px;
  background: #d9dde3;
  transform-origin: bottom;
}

.zs-cd-glyph > span[data-relation='agrees'] {
  height: 15px;
  background: #8c95a2;
}

.zs-cd-glyph > span[data-relation='disagrees'] {
  height: 24px;
  background: var(--zs-cd-clash);
}

.zs-cd-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  align-self: flex-start;
  max-width: 300px;
  padding: 12px 16px;
  border: 1px solid var(--zs-cd-line);
  border-radius: 14px;
  background: var(--zs-cd-surface);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--zs-cd-muted);
  position: relative;
  z-index: 3;
}

.zs-cd-note svg {
  flex: none;
  margin-top: 3px;
  color: var(--zs-cd-faint);
}

/* field (paths behind content) */
.zs-cd-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.zs-cd-field__halo {
  fill: none;
  stroke: #f0f2f5;
  stroke-width: 1;
}

.zs-cd-field__arc {
  fill: none;
  stroke: #dfe3e8;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke var(--zs-cd-fast) var(--zs-cd-ease), opacity var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-field__arc--price {
  stroke: #9aa2ad;
  stroke-width: 2;
}

.zs-cd-field__arc--price[data-direction='up'] {
  stroke: rgba(23, 138, 74, 0.55);
}

.zs-cd-field__arc--price[data-direction='down'] {
  stroke: rgba(201, 56, 58, 0.5);
}

.zs-cd-field__path {
  fill: none;
  stroke: rgba(74, 82, 96, 0.34);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  transition: stroke var(--zs-cd-fast) var(--zs-cd-ease), stroke-width var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-field__path--price {
  stroke: rgba(31, 43, 62, 0.62);
  stroke-width: 1.6;
}

.zs-cd-field__sig[data-relation='agrees'] .zs-cd-field__path {
  stroke: rgba(42, 49, 60, 0.5);
}

.zs-cd-field__sig[data-relation='agrees'] .zs-cd-field__arc {
  stroke: #8c95a2;
}

.zs-cd-field__sig[data-relation='disagrees'] .zs-cd-field__path {
  stroke: rgba(179, 70, 75, 0.62);
}

.zs-cd-field__sig[data-relation='disagrees'] .zs-cd-field__arc {
  stroke: var(--zs-cd-clash);
}

.zs-cd-field__sig[data-relation='inconclusive'] .zs-cd-field__path {
  stroke: rgba(107, 115, 128, 0.36);
}

.zs-cd-field__tick {
  stroke: var(--zs-cd-clash);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.zs-cd-field__end {
  fill: var(--zs-cd-surface);
  stroke: rgba(74, 82, 96, 0.55);
  stroke-width: 1.2;
}

.zs-cd-field__sig[data-relation='disagrees'] .zs-cd-field__end {
  stroke: var(--zs-cd-clash);
}

.zs-cd-field__anchor {
  fill: var(--zs-cd-surface);
  stroke: rgba(74, 82, 96, 0.5);
  stroke-width: 1.2;
}

.zs-cd-field__anchor--price {
  fill: var(--zs-cd-accent);
  stroke: var(--zs-cd-accent);
}

.zs-cd-field__sig[data-relation='unavailable'] .zs-cd-field__anchor {
  stroke: #d5dae1;
}

.zs-cd-field__sig {
  transition: opacity var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-field[data-has-focus='true'] .zs-cd-field__sig[data-focused='false'] {
  opacity: 0.28;
}

.zs-cd-field__sig[data-focused='true'] .zs-cd-field__path {
  stroke-width: 1.9;
}

/* ─────────────────────────────── Signals ─────────────────────────────── */

.zs-cd-signals__head {
  margin-bottom: 12px;
}

.zs-cd-signals__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--zs-cd-faint);
}

.zs-cd-signals__list {
  display: flex;
  flex-direction: column;
}

.zs-cd-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 84px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  outline-offset: -2px;
  transition: background-color var(--zs-cd-fast) var(--zs-cd-ease), opacity var(--zs-cd-fast) var(--zs-cd-ease);
}

.zs-cd-row + .zs-cd-row {
  box-shadow: inset 0 1px 0 var(--zs-cd-hair);
}

.zs-cd-row[data-active='true'] {
  background: var(--zs-cd-pearl);
  box-shadow: none;
}

.zs-cd-row[data-active='true'] + .zs-cd-row {
  box-shadow: none;
}

.zs-cd-row[data-dimmed='true'] {
  opacity: 0.5;
}

.zs-cd-row__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--zs-cd-ink-3);
}

.zs-cd-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zs-cd-row__label {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--zs-cd-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zs-cd-row__reason {
  font-size: 12px;
  line-height: 1.6;
  color: var(--zs-cd-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 20px;
  transition: max-height 240ms var(--zs-cd-ease);
}

.zs-cd-row[data-active='true'] .zs-cd-row__reason {
  white-space: normal;
  max-height: 80px;
  color: var(--zs-cd-ink-3);
}

.zs-cd-row__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--zs-cd-ink-3);
  white-space: nowrap;
}

.zs-cd-dots {
  display: inline-flex;
  gap: 3px;
}

.zs-cd-dots > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dfe3e8;
}

.zs-cd-dots > span[data-on='true'] {
  background: var(--zs-cd-clash);
}

.zs-cd-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--zs-cd-pearl);
  color: var(--zs-cd-muted);
  border: 1px solid transparent;
}

.zs-cd-pill[data-relation='disagrees'] {
  background: var(--zs-cd-clash-bg);
  color: var(--zs-cd-clash);
}

.zs-cd-pill[data-relation='agrees'] {
  background: var(--zs-cd-agree-bg);
  color: var(--zs-cd-agree);
}

.zs-cd-pill[data-relation='inconclusive'] {
  background: transparent;
  border-color: var(--zs-cd-line);
  border-style: dashed;
  font-weight: 500;
}

.zs-cd-pill[data-relation='stale'] {
  background: #fbf6e9;
  color: #8a6a1f;
  font-weight: 500;
}

.zs-cd-pill[data-relation='unavailable'] {
  background: transparent;
  color: #a5abb4;
  font-weight: 500;
}

/* ─────────────────────────────── Bottom ─────────────────────────────── */

.zs-cd-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--zs-cd-hair);
}

.zs-cd-zone {
  display: flex;
  gap: 14px;
  padding: 22px 28px 24px;
}

.zs-cd-zone + .zs-cd-zone {
  border-inline-start: 1px solid var(--zs-cd-hair);
}

.zs-cd-zone__icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--zs-cd-line);
  color: var(--zs-cd-ink-2);
}

.zs-cd-zone__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zs-cd-zone__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--zs-cd-ink);
}

.zs-cd-zone__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--zs-cd-ink-2);
}

.zs-cd-zone__text,
.zs-cd-zone__note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--zs-cd-muted);
}

.zs-cd-meter {
  display: inline-flex;
  gap: 4px;
}

.zs-cd-meter > span {
  width: 18px;
  height: 5px;
  border-radius: 3px;
  background: #e6e9ee;
}

.zs-cd-meter > span[data-on='true'] {
  background: var(--zs-cd-accent);
}

.zs-cd-ctx {
  display: grid;
  gap: 4px;
}

.zs-cd-ctx__row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.zs-cd-ctx__row dt {
  color: var(--zs-cd-faint);
  white-space: nowrap;
}

.zs-cd-ctx__row dt::after {
  content: ':';
}

.zs-cd-ctx__row dd {
  color: var(--zs-cd-ink-3);
}

.zs-cd-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--zs-cd-faint);
}

.zs-cd-foot svg {
  flex: none;
}

/* ─────────────────────────────── Drawer ─────────────────────────────── */

.zs-cd-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.zs-cd-drawer__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 19, 24, 0.28);
  animation: zs-cd-fade 220ms var(--zs-cd-ease) both;
}

.zs-cd-drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(460px, 100%);
  overflow-y: auto;
  background: var(--zs-cd-surface);
  box-shadow: 0 0 60px -20px rgba(15, 23, 42, 0.4);
  padding: 22px 24px 28px;
  animation: zs-cd-drawer-in 280ms var(--zs-cd-ease) both;
}

.zs-cd-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--zs-cd-hair);
}

.zs-cd-drawer__head h3 {
  font-size: 17px;
  font-weight: 700;
}

.zs-cd-drawer__close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--zs-cd-line);
  background: var(--zs-cd-surface);
}

.zs-cd-drawer__group {
  padding-block: 16px;
  border-bottom: 1px solid var(--zs-cd-hair);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--zs-cd-ink-3);
}

.zs-cd-drawer__group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--zs-cd-ink);
  margin-bottom: 8px;
}

.zs-cd-drawer__group li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding-block: 8px;
}

.zs-cd-drawer__group li strong {
  font-weight: 700;
  color: var(--zs-cd-ink);
}

.zs-cd-drawer__meta {
  font-size: 12px;
  color: var(--zs-cd-faint);
}

.zs-cd-drawer__none {
  color: var(--zs-cd-faint);
}

.zs-cd-drawer__sources li {
  display: list-item;
  list-style: disc inside;
  padding: 0;
}

.zs-cd-drawer__foot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--zs-cd-faint);
}

/* ==========================================================================
   Motion — "Contradiction Resolution". Keyframes (fill: both), started once
   the section is seen. --zs-cd-k shortens the timeline on asset switch.
   ========================================================================== */

@keyframes zs-cd-rise {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes zs-cd-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zs-cd-row-in {
  from { opacity: 0; transform: translate3d(-8px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes zs-cd-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes zs-cd-disc-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes zs-cd-bar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Disagreeing ends settle slightly APART from the ring — the visual "stop". */
@keyframes zs-cd-apart {
  from { opacity: 0; transform: translate3d(6px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes zs-cd-drawer-in {
  from { opacity: 0; transform: translate3d(-24px, 0, 0); }
  to { opacity: 1; transform: none; }
}

.zs-cd[data-reveal='pending'] .zs-cd-in,
.zs-cd[data-reveal='pending'] .zs-cd-col--price,
.zs-cd[data-reveal='pending'] .zs-cd-row,
.zs-cd[data-reveal='pending'] .zs-cd-disc,
.zs-cd[data-reveal='pending'] .zs-cd-note,
.zs-cd[data-reveal='pending'] .zs-cd-zone,
.zs-cd[data-reveal='pending'] .zs-cd-field__arc,
.zs-cd[data-reveal='pending'] .zs-cd-field__end,
.zs-cd[data-reveal='pending'] .zs-cd-field__tick,
.zs-cd[data-reveal='pending'] .zs-cd-field__anchor {
  opacity: 0;
}

.zs-cd[data-reveal='pending'] .zs-cd-field__path,
.zs-cd[data-reveal='pending'] .zs-cd-chart__line {
  stroke-dashoffset: 1;
}

.zs-cd[data-reveal='done'] .zs-cd-in {
  animation: zs-cd-rise 600ms var(--zs-cd-ease) var(--zs-cd-d, 0ms) both;
}

.zs-cd[data-reveal='done'] .zs-cd-col--price {
  animation: zs-cd-rise calc(560ms * var(--zs-cd-k)) var(--zs-cd-ease) calc(140ms * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-chart__line {
  animation: zs-cd-draw calc(900ms * var(--zs-cd-k)) var(--zs-cd-ease-io) calc(260ms * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-row {
  animation: zs-cd-row-in calc(460ms * var(--zs-cd-k)) var(--zs-cd-ease) calc((220ms + var(--zs-cd-i, 0) * 80ms) * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-field__anchor {
  animation: zs-cd-fade 300ms var(--zs-cd-ease) calc((380ms + var(--zs-cd-i, 0) * 70ms) * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-field__path {
  animation: zs-cd-draw calc(620ms * var(--zs-cd-k)) var(--zs-cd-ease-io) calc((460ms + var(--zs-cd-i, 0) * 70ms) * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-field__path--price {
  animation-delay: calc(360ms * var(--zs-cd-k));
}

.zs-cd[data-reveal='done'] .zs-cd-field__end {
  animation: zs-cd-fade 260ms var(--zs-cd-ease) calc((1020ms + var(--zs-cd-i, 0) * 70ms) * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-field__sig[data-relation='disagrees'] .zs-cd-field__end,
.zs-cd[data-reveal='done'] .zs-cd-field__tick {
  animation: zs-cd-apart calc(380ms * var(--zs-cd-k)) var(--zs-cd-ease) calc((1080ms + var(--zs-cd-i, 0) * 70ms) * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-field__arc {
  animation: zs-cd-fade 400ms var(--zs-cd-ease) calc((1120ms + var(--zs-cd-i, 0) * 50ms) * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-disc {
  animation: zs-cd-disc-in calc(360ms * var(--zs-cd-k)) var(--zs-cd-ease) calc(1000ms * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-glyph > span {
  animation: zs-cd-bar calc(320ms * var(--zs-cd-k)) var(--zs-cd-ease) calc((1180ms + var(--zs-cd-i, 0) * 40ms) * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-note {
  animation: zs-cd-rise 480ms var(--zs-cd-ease) calc(1300ms * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-zone {
  animation: zs-cd-rise 520ms var(--zs-cd-ease) calc(1360ms * var(--zs-cd-k)) both;
}

.zs-cd[data-reveal='done'] .zs-cd-zone + .zs-cd-zone {
  animation-delay: calc(1440ms * var(--zs-cd-k));
}

.zs-cd[data-reveal='done'] .zs-cd-zone + .zs-cd-zone + .zs-cd-zone {
  animation-delay: calc(1520ms * var(--zs-cd-k));
}

.zs-cd-main[data-switch='true'] {
  --zs-cd-k: 0.28;
}

.zs-cd[data-tier='static'] *,
.zs-cd[data-tier='static'] *::before,
.zs-cd[data-tier='static'] *::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .zs-cd *,
  .zs-cd *::before,
  .zs-cd *::after {
    animation: none !important;
    transition: none !important;
  }
  .zs-cd .zs-cd-in,
  .zs-cd .zs-cd-col--price,
  .zs-cd .zs-cd-row,
  .zs-cd .zs-cd-disc,
  .zs-cd .zs-cd-note,
  .zs-cd .zs-cd-zone,
  .zs-cd .zs-cd-field__arc,
  .zs-cd .zs-cd-field__end,
  .zs-cd .zs-cd-field__tick,
  .zs-cd .zs-cd-field__anchor {
    opacity: 1 !important;
  }
  .zs-cd .zs-cd-field__path,
  .zs-cd .zs-cd-chart__line {
    stroke-dashoffset: 0 !important;
  }
}

@media (scripting: none) {
  .zs-cd .zs-cd-in,
  .zs-cd .zs-cd-col--price,
  .zs-cd .zs-cd-row,
  .zs-cd .zs-cd-disc,
  .zs-cd .zs-cd-note,
  .zs-cd .zs-cd-zone {
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1439.98px) {
  .zs-cd-col--price {
    padding-inline: 22px;
  }
  .zs-cd-col--signals {
    padding-inline: 18px;
  }
  .zs-cd-row {
    grid-template-columns: 26px minmax(0, 1fr) auto 78px;
    gap: 10px;
  }
  .zs-cd-row__state .zs-cd-row__value {
    display: none;
  }
  .zs-cd-row[data-active='true'] .zs-cd-row__value {
    display: inline;
  }
}

@media (max-width: 1439.98px) {
  .zs-cd-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.08fr);
  }
  .zs-cd-disc {
    width: 262px;
    padding: 20px 24px;
    gap: 6px;
  }
  .zs-cd-disc__title {
    font-size: 19px;
  }
  .zs-cd-disc__text {
    font-size: 13px;
  }
  .zs-cd-note {
    display: none;
  }
}

/* ≤1199 — no field; the reading becomes a card beside the price, signals below */
@media (max-width: 1199.98px) {
  .zs-cd-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'price center'
      'signals signals';
    min-height: 0;
  }
  .zs-cd-field {
    display: none;
  }
  .zs-cd-col--price {
    border-inline-end: 1px solid var(--zs-cd-hair);
  }
  .zs-cd-col--center {
    padding: 22px;
  }
  .zs-cd-col--signals {
    border-top: 1px solid var(--zs-cd-hair);
  }
  .zs-cd-signals__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
  .zs-cd-row + .zs-cd-row {
    box-shadow: none;
  }
  .zs-cd-row {
    box-shadow: inset 0 -1px 0 var(--zs-cd-hair) !important;
    border-radius: 0;
  }
  .zs-cd-row__state .zs-cd-row__value {
    display: inline;
  }
  .zs-cd-disc {
    width: 100%;
    max-width: 360px;
    aspect-ratio: auto;
    border-radius: 18px;
    padding: 22px 20px;
  }
  .zs-cd-disc__text {
    -webkit-line-clamp: 4;
  }
  .zs-cd-zone {
    padding-inline: 20px;
  }
}

@media (max-width: 1023.98px) {
  .zs-cd-bottom {
    grid-template-columns: 1fr;
  }
  .zs-cd-zone + .zs-cd-zone {
    border-inline-start: 0;
    border-top: 1px solid var(--zs-cd-hair);
  }
  .zs-cd-zone--meaning { order: 1; }
  .zs-cd-zone--context { order: 2; }
  .zs-cd-zone--complete { order: 3; }
  .zs-cd-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .zs-cd-filters {
    margin-inline: -2px;
    padding-inline: 2px;
  }
}

/* ≤767 — single reading column: price → summary strip → signals → meaning → context */
@media (max-width: 767.98px) {
  .zs-cd-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .zs-cd-header__title {
    font-size: 30px;
  }
  .zs-cd-header__subtitle {
    font-size: 15px;
  }
  .zs-cd-cta {
    align-self: flex-start;
    height: 42px;
  }
  .zs-cd-fresh {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .zs-cd-fresh__time {
    border: 0;
    padding: 0;
  }
  .zs-cd-surface {
    border-radius: 16px;
  }
  .zs-cd-main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'price' 'center' 'signals';
  }
  .zs-cd-col--price {
    border-inline-end: 0;
    padding: 18px 16px 12px;
  }
  .zs-cd-col--center {
    padding: 4px 16px 16px;
  }
  .zs-cd-col--signals {
    padding: 16px 12px 12px;
  }
  .zs-cd-signals__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .zs-cd-disc {
    max-width: none;
    align-items: stretch;
    text-align: start;
    border-radius: 16px;
    background: #fafbfc;
    box-shadow: none;
    padding: 16px;
    gap: 6px;
  }
  .zs-cd-disc__icon {
    display: none;
  }
  .zs-cd-disc__title {
    font-size: 18px;
  }
  .zs-cd-glyph {
    align-self: flex-start;
  }
  .zs-cd-disc__more {
    align-self: flex-start;
    padding-inline: 0;
  }
  .zs-cd-row {
    grid-template-columns: 24px minmax(0, 1fr) 76px;
    padding: 10px 6px;
  }
  .zs-cd-row__state {
    display: none;
  }
  .zs-cd-row__reason {
    white-space: normal;
    max-height: none;
  }
  .zs-cd-price__num {
    font-size: 28px;
  }
  .zs-cd-zone {
    padding: 18px 16px;
  }
  .zs-cd-zone__icon {
    width: 38px;
    height: 38px;
  }
  .zs-cd-drawer__panel {
    inset-block-start: auto;
    max-height: 86vh;
    width: 100%;
    border-radius: 18px 18px 0 0;
    animation-name: zs-cd-rise;
  }
}

