/* Financial desk: consume the shared light/dark tokens so contrast never drifts. */
.ds-analysis,
.nc-analysis {
  --fx-bg: var(--ds-canvas);
  --fx-bg-deep: var(--ds-canvas-deep);
  --fx-panel: var(--ds-surface);
  --fx-panel-2: var(--ds-surface-muted);
  --fx-line: var(--ds-border);
  --fx-line-strong: var(--ds-border-strong);
  --fx-ink: var(--ds-ink);
  --fx-ink-strong: var(--ds-ink-strong);
  --fx-mute: var(--ds-muted);
  --fx-faint: var(--ds-muted);
  --fx-amber: var(--ds-gold);
  --fx-amber-soft: var(--ds-gold-soft);
  --fx-cyan: var(--ds-teal);
  --fx-cyan-soft: var(--ds-teal-soft);
  --fx-green: var(--ds-positive);
  --fx-green-soft: var(--ds-positive-soft);
  --fx-red: var(--ds-negative);
  --fx-red-soft: var(--ds-negative-soft);
  --fx-violet: var(--accent-violet);
  --fx-violet-soft: color-mix(in srgb, var(--accent-violet) 16%, var(--ds-surface));
  --fx-blue: var(--ds-info);
  --fx-blue-soft: var(--info-bg);
  --fx-gold: var(--ds-gold);
  --fx-on-accent: #14110c;
  --fx-radius: 8px;
  --fx-gap: 10px;
  --fx-pad: 10px 12px;
  --fx-quote-h: 3.15rem;
  --fx-jump-h: 2.45rem;
  --fx-chrome-offset: 9.8rem;
  --fx-nav-h: var(--nc-navbar-height, 4.5rem);
  background: var(--fx-bg) !important;
  color: var(--fx-ink);
  font-variant-numeric: tabular-nums;
}

html:has(.ds-analysis) {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--fx-chrome-offset, 9.8rem) + 10px);
}

html.is-fx-scrolling {
  overflow-anchor: none;
  scroll-behavior: auto !important;
}

.ds-analysis :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  background: var(--fx-panel) !important;
  border-color: var(--fx-line) !important;
  color: var(--fx-ink-strong) !important;
}

.ds-analysis-shell {
  min-height: calc(100dvh - var(--nc-navbar-height, 4.75rem));
  max-width: 100%;
  /* clip, not hidden: hidden makes the shell a scroll container and the sticky .fx-chrome stops sticking. */
  overflow-x: hidden;
  overflow-x: clip;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--fx-amber) 10%, transparent), transparent 8rem),
    var(--fx-bg);
}

.fx-stat a,
.fx-point a {
  color: var(--fx-amber);
  font-weight: 800;
  text-decoration: none;
}

/* Type scale: labels < captions < support numbers < hero numbers. */
.fx-label {
  margin: 0;
  color: var(--fx-mute);
  font-size: clamp(.68rem, 5cqi, .78rem);
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.fx-caption {
  margin: .18rem 0 0;
  color: var(--fx-faint);
  font-size: .62rem;
  font-weight: 500;
  line-height: 1.7;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.fx-unit {
  color: var(--fx-mute);
  font-size: .7rem;
  font-weight: 700;
}

.fx-num,
.fx-hero-num,
.fx-stat > strong,
.fx-point > strong,
.gauge-value,
.fx-multiple__value,
.fx-source-row .fx-num,
.fx-div-col b {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: left;
}

.fx-hero-num {
  display: block;
  margin: 0;
  min-width: 0;
  color: var(--fx-ink-strong);
  font-size: clamp(1.08rem, 6.4cqi, 1.62rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-align: left;
}

.fx-hero-num--sm {
  font-size: clamp(.92rem, 5.4cqi, 1.18rem);
  padding: 0;
}

.fx-stat--lead > strong {
  font-size: clamp(.94rem, 5.8cqi, 1.18rem);
  font-weight: 900;
}

.fx-stats--support .fx-stat > strong {
  font-size: clamp(.84rem, 5cqi, 1.02rem);
  font-weight: 900;
}

.fx-chrome {
  position: sticky;
  inset-block-start: var(--fx-nav-h, var(--nc-navbar-height, 4.5rem));
  z-index: 48;
  border-block-end: 1px solid var(--fx-line);
  background: color-mix(in srgb, var(--fx-panel) 96%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px -20px rgb(8 18 16 / .55);
}

.fx-chrome::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--fx-amber), var(--fx-cyan) 42%, var(--fx-amber));
}

.fx-quote {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .8rem;
  min-height: var(--fx-quote-h);
  padding: .32rem .8rem .18rem;
  border: 0;
  background: transparent;
}

.fx-quote__identity {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: .75rem;
}

.fx-quote__symbol {
  display: grid;
  min-width: 5rem;
  flex: none;
  place-items: center;
  padding: .4rem .65rem;
  border: 0;
  border-radius: 6px;
  background: var(--fx-amber);
  color: var(--fx-on-accent);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.fx-quote__names {
  min-width: 0;
}

.fx-quote__names h1 {
  margin: 0;
  overflow: hidden;
  color: var(--fx-ink-strong);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-quote__names p {
  margin: .12rem 0 0;
  color: var(--fx-mute);
  font-size: .74rem;
  font-weight: 700;
}

.fx-chip {
  display: inline-flex;
  align-items: center;
  height: 1.4rem;
  padding: 0 .5rem;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: var(--fx-panel-2);
  color: var(--fx-mute);
  font-size: .62rem;
  font-weight: 800;
  white-space: nowrap;
}

.fx-chip.nc-type-tag {
  color: var(--nc-type);
  background: var(--nc-type-soft);
  border-color: color-mix(in srgb, var(--nc-type) 42%, var(--fx-line));
}

.fx-quote__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.fx-btn,
.analysis-social-trigger {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--fx-line);
  border-radius: 4px;
  padding: .28rem .7rem;
  background: var(--fx-panel-2);
  color: var(--fx-ink);
  font-size: .68rem;
  font-weight: 800;
  text-decoration: none;
}

.fx-btn--ghost:hover,
.analysis-social-trigger:hover {
  border-color: var(--fx-amber);
  color: var(--fx-ink-strong);
}

.analysis-social-trigger {
  border-color: var(--fx-amber);
  background: var(--fx-amber);
  color: var(--fx-on-accent);
}

.analysis-social-trigger svg {
  width: .9rem;
  fill: none;
  stroke: currentColor;
}

.fx-desk {
  width: min(100% - 1rem, 96rem);
  margin-inline: auto;
  padding: .65rem 0 1.4rem;
}

.fx-mosaic > .fx-panel,
.fx-desk > .fx-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  scroll-margin-top: calc(var(--fx-chrome-offset, 9.8rem) + 8px);
}

.fx-jump {
  display: flex;
  gap: .18rem;
  overflow: auto;
  margin: 0;
  padding: .18rem .55rem .28rem;
  border: 0;
  border-block-start: 1px solid var(--fx-line);
  background: color-mix(in srgb, var(--fx-panel-2) 72%, transparent);
  scrollbar-width: thin;
}

.fx-jump a {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-width: max-content;
  padding: .38rem .55rem;
  border: 1px solid color-mix(in srgb, var(--fx-line) 80%, transparent);
  border-radius: 6px;
  background: var(--fx-panel);
  color: var(--fx-mute);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.fx-jump a b {
  display: grid;
  min-width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-amber) 18%, var(--fx-panel-2));
  color: var(--fx-amber);
  font-size: .62rem;
}

.fx-jump a:hover,
.fx-jump a:focus-visible {
  background: var(--fx-amber-soft);
  color: var(--fx-ink-strong);
}

.fx-jump a.is-active {
  border-color: var(--fx-amber);
  background: var(--fx-amber);
  color: var(--fx-on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fx-amber) 35%, transparent);
}

.fx-jump a.is-active b {
  background: rgb(255 255 255 / .28);
  color: inherit;
}

.fx-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--fx-gap);
}

.fx-mosaic--priority {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.fx-panel,
.fx-empty,
.ds-analysis .ds-empty {
  min-width: 0;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: var(--fx-panel);
  box-shadow: none;
}

.fx-panel--wide,
.fx-empty,
.ds-analysis .ds-empty {
  grid-column: 1 / -1;
}

.fx-panel--half {
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  min-height: 0;
}

.fx-panel--half .fx-panel__head {
  flex: 0 0 auto;
}

.fx-panel--half .fx-panel__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .65rem;
  min-height: 0;
}

.fx-mosaic > .fx-panel > .fx-panel__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .65rem;
  min-height: 0;
}

.fx-chart:has(> svg) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 15rem;
  overflow: hidden;
}

.fx-chart:has(> svg) svg {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}

.fx-panel--half .fx-chart {
  min-height: 15rem;
}

.fx-panel--half .fx-chart svg {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 0;
}

.fx-panel--half .fx-stats--support,
.fx-panel--half .fx-sales-compare,
.fx-panel--half .fx-points,
.fx-panel--half .fx-multiple__note {
  flex: 0 0 auto;
  margin-top: 0;
}

.fx-panel--half .fx-stats--support .fx-stat {
  min-height: 4.35rem;
}

.fx-panel--half .fx-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#fx-dividend .fx-point .fx-split,
#fx-agm .fx-point .fx-split {
  grid-template-columns: 1fr;
  gap: .35rem;
}

#fx-dividend .fx-point .fx-stat,
#fx-agm .fx-point .fx-stat {
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: .5rem .7rem .45rem;
  text-align: center;
}

#fx-dividend .fx-point .fx-stat small,
#fx-agm .fx-point .fx-stat small {
  white-space: normal;
  text-align: center;
}

#fx-dividend .fx-point .fx-stat > strong,
#fx-agm .fx-point .fx-stat > strong {
  width: 100%;
  margin-top: .2rem;
  font-size: clamp(.78rem, 8cqi, 1.05rem);
  line-height: 1.35;
  text-align: center;
}

#fx-dividend .fx-point .fx-caption,
#fx-agm .fx-point .fx-caption {
  text-align: center;
}

.fx-panel--half .fx-unavail {
  display: grid;
  flex: 1 1 auto;
  min-height: 12rem;
  place-items: center;
  text-align: center;
}

.fx-panel--hero {
  border-color: color-mix(in srgb, var(--fx-amber) 32%, var(--fx-line));
  box-shadow: inset .18rem 0 0 var(--fx-amber);
}

.fx-panel--strip .fx-panel__head {
  align-items: center;
  padding-block: .55rem;
  border-block-end: 0;
}

.analysis-source-panel .fx-stats--compact {
  max-width: none;
}

.analysis-source-panel .fx-stat {
  flex: 1 1 9rem;
}

.fx-panel__head--nested {
  margin: .85rem 0 .55rem;
  padding: .55rem 0;
  border: 0;
  border-block-start: 1px dashed var(--fx-line);
  background: transparent;
}

.fx-sales-compare { min-width: 0; }

.fx-panel__head,
.fx-empty > :first-child,
.ds-analysis .ds-empty .ds-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
  padding: .7rem .85rem;
  border-block-end: 1px solid var(--fx-line);
  background: var(--fx-panel-2);
}

.fx-panel__head > div:first-child {
  min-width: 0;
  flex: 1 1 14rem;
}

.fx-kicker {
  margin: 0;
  color: var(--fx-amber);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.fx-panel__head h2,
.fx-panel__head h3,
.ds-analysis .ds-empty h2 {
  margin: .1rem 0 0;
  color: var(--fx-ink-strong);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -.02em;
  white-space: normal;
}

.fx-panel__head p,
.ds-analysis .ds-empty p {
  margin: .18rem 0 0;
  color: var(--fx-faint);
  font-size: .7rem;
  line-height: 1.7;
}

.fx-panel__body {
  padding: .75rem .85rem .85rem;
}

.fx-panel__note {
  margin: 0;
  padding: .65rem .85rem;
  border-block-end: 1px solid var(--fx-line);
  color: var(--fx-mute);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.85;
}

.fx-legend {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  max-width: min(100%, 36rem);
}

.fx-legend span,
.fx-meta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .5rem;
  border: 1px solid var(--fx-line);
  border-radius: 999px;
  background: var(--fx-panel);
  color: var(--fx-mute);
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}

.fx-legend .fx-num {
  color: var(--fx-ink-strong);
}

.fx-sales-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .75rem;
  padding: .22rem;
  border: 1px solid var(--fx-line);
  border-radius: .65rem;
  background: var(--fx-panel-2);
}

.fx-sales-tabs [role="tab"] {
  border: 0;
  border-radius: .45rem;
  padding: .45rem .85rem;
  background: transparent;
  color: var(--fx-mute);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}

.fx-sales-tabs [role="tab"][aria-selected="true"] {
  background: var(--fx-panel);
  color: var(--fx-ink-strong);
  box-shadow: inset 0 0 0 1px var(--fx-line-strong);
}

.fx-sales-tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--fx-amber);
  outline-offset: 2px;
}

.fx-sales-year-legend {
  border: 0;
  padding: 0;
  margin-inline: 0;
  min-width: 0;
  justify-content: flex-start;
  max-width: 100%;
  margin-bottom: .55rem;
}

.fx-sales-year-legend label:nth-of-type(1) { --sales-series-color: #22d3ee; }
.fx-sales-year-legend label:nth-of-type(2) { --sales-series-color: #a78bfa; }
.fx-sales-year-legend label:nth-of-type(3) { --sales-series-color: #fbbf24; }

.fx-sales-year-legend label {
  border-color: var(--sales-series-color);
  color: var(--sales-series-color);
}

.fx-sales-year-legend label::before {
  content: '';
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background: var(--sales-series-color);
}

.fx-sales-year-legend input { accent-color: var(--sales-series-color); }

.fx-purchase-card {
  height: auto !important;
  margin-block-start: 1.2rem;
  border-color: color-mix(in srgb, #fb7185 38%, var(--fx-line));
  background: linear-gradient(145deg, color-mix(in srgb, #fb7185 9%, var(--fx-panel)), var(--fx-panel) 52%);
  overflow: hidden;
}
.fx-purchase-card__head {
  border-block-end: 1px solid color-mix(in srgb, #fb7185 25%, var(--fx-line));
  align-items: center;
}
.fx-purchase-card__eyebrow {
  display: block;
  margin-block-end: .3rem;
  color: #fb7185;
  font-size: .7rem;
  font-weight: 800;
}
.fx-purchase-card__unit {
  padding: .35rem .65rem;
  border-radius: 999px;
  background: color-mix(in srgb, #fb7185 13%, var(--fx-panel-2));
  color: var(--fx-mute);
  font-size: .7rem;
  white-space: nowrap;
}
.fx-purchase-card__body { gap: .9rem; }
.fx-purchase-tabs { align-self: flex-start; }
.fx-purchase-tabs [role="tab"][aria-selected="true"] {
  border-color: color-mix(in srgb, #fb7185 45%, var(--fx-line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fb7185 45%, var(--fx-line));
}
.fx-purchase-tab-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-width: 0;
}
.fx-purchase-tab-panel[hidden] { display: none; }
.fx-purchase-legend label:nth-of-type(1) { --sales-series-color: #38bdf8; }
.fx-purchase-legend label:nth-of-type(2) { --sales-series-color: #fb7185; }
.fx-purchase-legend label:nth-of-type(3) { --sales-series-color: #a3e635; }
.fx-purchase-chart {
  min-height: 21rem;
  border-radius: .9rem;
  border-color: color-mix(in srgb, #fb7185 24%, var(--fx-line));
  background: var(--fx-bg-deep);
}
.fx-purchase-chart svg { aspect-ratio: 920 / 400; }
.fx-purchase-bar { opacity: .86; transition: opacity .15s ease; }
.fx-purchase-bar:hover { opacity: 1; }
.fx-purchase-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(16rem, .8fr);
  gap: .75rem;
  direction: ltr;
}
.fx-purchase-analysis-grid > * { direction: rtl; }
.fx-purchase-rate__chart { min-height: 22rem; }
.fx-purchase-mix .fx-product-mix__layout { grid-template-columns: minmax(0, 1fr); }
.fx-purchase-mix .fx-product-donut { min-height: 13rem; }
.fx-purchase-mix .fx-product-donut svg { width: min(100%, 15rem); }
.fx-purchase-source { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .fx-purchase-analysis-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fx-purchase-card__head { flex-wrap: wrap; }
  .fx-purchase-chart { min-height: 15rem; overflow-x: auto; }
  .fx-purchase-chart svg { width: 43rem; min-width: 43rem; max-width: none; }
}

.fx-cumulative-gap {
  margin: 0 0 .55rem;
  color: var(--fx-mute);
  font-size: .74rem;
  line-height: 1.8;
}

.fx-cumulative-gap { margin: .55rem 0 0; }

.fx-balance-legend {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.fx-balance-legend .fx-meta { cursor: pointer; }
.fx-balance-legend .is-equity { background: #22d3ee; }
.fx-balance-legend .is-liabilities { background: #fb7185; }
.fx-balance-legend .is-assets { background: #facc15; }
.fx-balance-legend input[data-series="equity"] { accent-color: #22d3ee; }
.fx-balance-legend input[data-series="liabilities"] { accent-color: #fb7185; }
.fx-balance-legend input[data-series="assets"] { accent-color: #facc15; }

.fx-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 1px;
}

.fx-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.fx-stats--context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fx-stats--support {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-stats--compact {
  max-width: 24rem;
}

.fx-stats--compact .fx-stat {
  flex: 1 1 8.5rem;
}

.fx-stat {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  flex: 1 1 13rem;
  flex-direction: column;
  overflow: visible;
  padding: .55rem .65rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-panel-2);
}

.fx-stat small,
.fx-stat .fx-stat__label {
  display: block;
  color: var(--fx-mute);
  font-size: clamp(.58rem, 4.8cqi, .64rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.35;
  white-space: nowrap;
}

.fx-stat strong,
.fx-stat .fx-stat__value {
  display: block;
  max-width: 100%;
  margin-top: .22rem;
  color: var(--fx-ink-strong);
  font-size: clamp(.82rem, 5.2cqi, 1.02rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-align: left;
}

.fx-stat em,
.fx-stat .fx-stat__hint {
  display: block;
  margin-top: auto;
  padding-top: .2rem;
  color: var(--fx-mute);
  font-size: .6rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

.fx-split > .fx-stat em {
  white-space: normal;
  overflow-wrap: anywhere;
}

.fx-stat--amber { border-color: color-mix(in srgb, var(--fx-amber) 48%, var(--fx-line)); background: var(--fx-amber-soft); }
.fx-stat--cyan { border-color: color-mix(in srgb, var(--fx-cyan) 48%, var(--fx-line)); background: var(--fx-cyan-soft); }
.fx-stat--green { border-color: color-mix(in srgb, var(--fx-green) 48%, var(--fx-line)); background: var(--fx-green-soft); }
.fx-stat--violet { border-color: color-mix(in srgb, var(--fx-violet) 48%, var(--fx-line)); background: var(--fx-violet-soft); }
.fx-stat--blue { border-color: color-mix(in srgb, var(--fx-blue) 48%, var(--fx-line)); background: var(--fx-blue-soft); }
.fx-stat--red { border-color: color-mix(in srgb, var(--fx-red) 48%, var(--fx-line)); background: var(--fx-red-soft); }

.fx-stat--amber > strong { color: var(--fx-amber); }
.fx-stat--cyan > strong { color: var(--fx-cyan); }
.fx-stat--green > strong { color: var(--fx-green); }
.fx-stat--violet > strong { color: var(--fx-violet); }
.fx-stat--blue > strong { color: var(--fx-blue); }
.fx-stat--red > strong { color: var(--fx-red); }

.fx-stat--lead {
  box-shadow: inset -.2rem 0 0 var(--fx-amber);
}
.fx-stat--lead.fx-stat--cyan { box-shadow: inset -.2rem 0 0 var(--fx-cyan); }
.fx-stat--lead.fx-stat--violet { box-shadow: inset -.2rem 0 0 var(--fx-violet); }
.fx-stat--lead.fx-stat--green { box-shadow: inset -.2rem 0 0 var(--fx-green); }
.fx-stat--lead.fx-stat--amber { box-shadow: inset -.2rem 0 0 var(--fx-amber); }

.fx-tape {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.gauge-card {
  --kpi-ink: var(--fx-ink-strong);
  container-type: inline-size;
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: .78rem .7rem .7rem;
  color: var(--kpi-ink);
  isolation: isolate;
  border: 1px solid color-mix(in srgb, #fff 34%, var(--fx-line));
  border-radius: 22px;
  background: color-mix(in srgb, var(--fx-panel) 36%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 62%, transparent),
    inset 0 -16px 28px color-mix(in srgb, var(--kpi-ink) 4%, transparent),
    0 18px 34px -28px rgb(20 24 32 / .32);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  animation: none;
}

.gauge-card::before {
  position: absolute;
  inset-block-start: 1px;
  inset-inline: 14%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 70%, transparent), transparent);
  content: "";
  pointer-events: none;
}

.gauge-card::after { display: none; }

.gauge-card > .fx-label {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  min-height: 2.35em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
}

.gauge-card > .fx-caption {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin-top: .28rem;
  overflow: hidden;
  text-align: center;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: keep-all;
}

.gauge-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 13.5rem);
  margin: .2rem auto 0;
  color: var(--kpi-ink);
}

.gauge-visual svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.kpi-track,
.kpi-sweep {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
}

.kpi-track {
  stroke: color-mix(in srgb, var(--kpi-ink) 16%, transparent);
}

.kpi-sweep {
  stroke: color-mix(in srgb, #fff 82%, var(--kpi-ink));
  stroke-linecap: butt;
}

.needle {
  transform-box: view-box;
  transform-origin: 100px 100px;
}

.needle-shaft {
  fill: none;
  stroke: color-mix(in srgb, #fff 88%, var(--kpi-ink));
  stroke-width: 2.15;
}

.kpi-cap {
  fill: color-mix(in srgb, #fff 82%, var(--kpi-ink));
}

.kpi-hub {
  fill: color-mix(in srgb, var(--fx-panel) 88%, transparent);
  stroke: color-mix(in srgb, #fff 40%, var(--kpi-ink) 18%);
  stroke-width: 1.2;
}

.kpi-hub-core {
  fill: color-mix(in srgb, #fff 78%, var(--kpi-ink));
}

.gauge-reading {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: .22rem;
  margin: .08rem auto 0;
  padding: .16rem .5rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #fff 36%, var(--fx-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-panel) 42%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 46%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  direction: ltr;
  unicode-bidi: isolate;
}

.gauge-reading .gauge-value {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--fx-ink-strong) !important;
  font-size: clamp(.98rem, 10cqi, 1.28rem) !important;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gauge-reading .fx-unit {
  flex: none;
  font-size: .62rem;
  white-space: nowrap;
}

.gauge-labels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  margin-top: .42rem;
  padding: .28rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--kpi-ink) 8%, var(--fx-line));
  color: var(--fx-faint) !important;
  font-size: .58rem !important;
  font-weight: 700;
  line-height: 1.35;
  direction: ltr;
  unicode-bidi: isolate;
}

.gauge-labels > span {
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  unicode-bidi: isolate;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gauge-labels > span:first-child { text-align: start; }
.gauge-labels > span:nth-child(2) { padding-inline: .35rem; text-align: center; }
.gauge-labels > span:last-child { text-align: end; }

.fx-multiples {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.fx-multiples.valuation-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.valuation-cards > .fx-multiple,
.valuation-cards > .fx-multiple--featured {
  grid-column: auto;
  min-width: 0;
  min-height: 100%;
}

.fx-multiple {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fx-amber) 52%, var(--fx-line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--fx-amber) 18%, var(--fx-panel)), var(--fx-panel) 46%);
  box-shadow: inset -.22rem 0 0 var(--fx-amber);
}

.fx-multiple--featured {
  border-color: color-mix(in srgb, var(--fx-amber) 52%, var(--fx-line));
}

.fx-multiple .fx-label,
.fx-multiple--featured .fx-label {
  color: var(--fx-amber);
}

.fx-multiple__head,
.fx-multiple__top {
  min-height: 4.15rem;
  padding: .7rem .85rem .2rem;
}

.fx-multiple__head .fx-caption {
  margin-top: .2rem;
}

.fx-multiple .fx-hero-num {
  margin: .12rem .55rem .4rem;
  padding: .32rem .7rem;
  border-radius: 8px;
  background: var(--fx-amber);
  color: var(--fx-on-accent);
  font-size: clamp(1.28rem, 8cqi, 1.85rem);
  font-weight: 900;
}

.fx-multiple--featured .fx-hero-num {
  background: var(--fx-amber);
  color: var(--fx-on-accent);
}

.fx-multiple__top p {
  margin: 0;
  color: var(--fx-ink-strong);
  font-size: .86rem;
  font-weight: 900;
  white-space: normal;
}

.fx-multiple__top p + p,
.fx-multiple__note,
.fx-unavail {
  margin: .18rem 0 0;
  color: var(--fx-mute);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.65;
}

.fx-multiple__value {
  flex: none;
  max-width: 100%;
  margin: 0;
  color: var(--fx-ink-strong);
  font-size: clamp(1.15rem, 8cqi, 1.55rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-align: left;
}

.fx-multiple__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  padding: .15rem .7rem .35rem;
}

.valuation-cards .fx-label,
.valuation-cards .fx-stat small,
.valuation-cards .fx-stat em {
  white-space: normal;
  overflow-wrap: anywhere;
}

.valuation-cards .fx-multiple__grid {
  grid-template-columns: 1fr;
}

@container (min-width: 20rem) {
  .fx-multiple__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fx-multiple__grid .fx-stat {
  height: 100%;
  padding: .45rem .5rem;
  background: color-mix(in srgb, var(--fx-panel-2) 78%, var(--fx-bg-deep));
}

.fx-multiple__grid .fx-stat > strong {
  font-size: clamp(.76rem, 5cqi, .92rem);
  font-weight: 800;
  color: var(--fx-ink);
}

.fx-multiple__note,
.fx-unavail,
.fx-multiple .fx-caption.fx-multiple__note {
  margin-top: auto;
  padding: 0 .85rem .7rem;
}

.fx-unavail {
  margin: .55rem;
  padding: .55rem;
  border: 1px dashed var(--fx-line-strong);
  border-radius: 4px;
}

.fx-chart {
  overflow: hidden;
  padding: .35rem .4rem .2rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 1.7rem,
      color-mix(in srgb, var(--fx-line) 42%, transparent) 1.7rem calc(1.7rem + 1px)
    ),
    var(--fx-bg-deep);
}

.fx-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 840 / 340;
}

.fx-chart svg[viewBox="0 0 800 310"] { aspect-ratio: 800 / 310; }
.fx-chart svg[viewBox="0 0 840 420"] { aspect-ratio: 840 / 420; }
.fx-chart svg[viewBox="0 0 900 390"] { aspect-ratio: 900 / 390; }

.fx-balance-bar-value {
  fill: #102028;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 800;
  pointer-events: none;
}

.fx-balance-line-value {
  fill: #facc15;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--fx-bg-deep);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

@media (max-width: 640px) {
  .fx-chart.fx-chart--balance { overflow-x: auto; }
  .fx-chart.fx-chart--balance svg { width: 700px; min-width: 700px; max-width: none; }
}

.fx-points {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: .7rem;
}

.fx-point {
  container-type: inline-size;
  display: flex;
  min-width: 0;
  flex: 1 1 12rem;
  flex-direction: column;
  overflow: visible;
  padding: .55rem .6rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-panel-2);
}

.fx-point p { margin: 0; }
.fx-point .fx-hero-num { margin-top: .2rem; }
.fx-point small,
.fx-point .fx-caption { display: block; margin-top: .25rem; }

.fx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 10px;
}

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

.formula-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: .7rem .75rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-panel-2);
}

.formula-card > p:first-child {
  margin: 0;
  color: var(--fx-ink-strong);
  font-size: .84rem;
  font-weight: 900;
  white-space: nowrap;
}

.analysis-formula,
.formula-card .fx-formula-eq {
  margin: .4rem 0 0;
  color: var(--fx-mute);
  font-size: .66rem;
  line-height: 1.7;
}

.fx-source-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .4rem;
  font-size: .64rem;
  color: var(--fx-mute);
}

.fx-formula-pair {
  margin-top: .5rem;
}

.fx-formula-pair .fx-stat > strong {
  font-size: .92rem;
  font-weight: 800;
}

.fx-source-row .fx-num {
  min-width: 0;
  flex: none;
  color: var(--fx-ink-strong);
  font-weight: 800;
}

.fx-details {
  border: 1px solid var(--fx-line);
  border-radius: 4px;
  background: var(--fx-panel-2);
}

.fx-details > summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .6rem .75rem;
  color: var(--fx-ink-strong);
  font-size: .78rem;
  font-weight: 900;
}

.fx-details > summary::-webkit-details-marker { display: none; }

.fx-pe-desk > summary p { margin: 0; }

.fx-pe-desk > summary .fx-multiple__note {
  margin-top: .18rem;
  font-weight: 700;
}

.fx-pe-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: .55rem;
  align-items: start;
}

.fx-pe-desk__body {
  display: grid;
  gap: .7rem;
  padding: .7rem .75rem .8rem;
}

.fx-pe-desk__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .45rem .8rem;
}

.fx-pe-desk__toolbar p { margin: .12rem 0 0; color: var(--fx-faint); font-size: .68rem; }
.fx-pe-desk__toolbar .fx-kicker { margin: 0; }

.fx-pe-group {
  min-width: 0;
  padding: .5rem .55rem .55rem;
  border: 1px solid color-mix(in srgb, var(--fx-amber) 22%, var(--fx-line));
  background: var(--fx-panel);
}

.fx-pe-group__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .35rem;
}

.fx-pe-group__head h3 {
  margin: 0;
  color: var(--fx-ink-strong);
  font-size: .76rem;
  font-weight: 950;
}

.fx-pe-group__head p {
  margin: .12rem 0 0;
  color: var(--fx-faint);
  font-size: .6rem;
  line-height: 1.5;
}

.fx-pe-group__periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: .4rem .55rem;
}

.fx-pe-period h4 {
  margin: 0 0 .28rem;
  color: var(--fx-cyan);
  font-size: .64rem;
  font-weight: 900;
}

.fx-pe-list {
  display: grid;
  gap: .28rem;
}

.forward-pe-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "check title amount"
    "check src amount";
  column-gap: .4rem;
  row-gap: .04rem;
  align-items: center;
  min-height: 2.25rem;
  padding: .28rem .4rem;
  border: 1px solid var(--fx-line);
  border-radius: 4px;
  background: var(--fx-panel-2);
  cursor: pointer;
}

.forward-pe-option:hover { border-color: var(--fx-green); }

.forward-pe-option:has(:checked) {
  border-color: var(--fx-green);
  background: color-mix(in srgb, var(--fx-green-soft) 70%, var(--fx-panel-2));
}

.forward-pe-option-input {
  grid-area: check;
  width: .9rem;
  height: .9rem;
  margin: 0;
  accent-color: var(--fx-amber);
}

.forward-pe-option__title {
  grid-area: title;
  min-width: 0;
  color: var(--fx-ink-strong);
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.forward-pe-option__amount {
  grid-area: amount;
  align-self: center;
  color: var(--fx-ink-strong);
  font-size: .7rem;
  font-weight: 950;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.forward-pe-option__src {
  grid-area: src;
  color: var(--fx-faint);
  font-size: .52rem;
  font-weight: 700;
}

.fx-pe-manual {
  display: grid;
  gap: .28rem;
  padding: .55rem .65rem;
  border: 1px solid var(--fx-line);
  background: var(--fx-panel-2);
}

.fx-pe-manual label {
  color: var(--fx-ink-strong);
  font-size: .72rem;
  font-weight: 900;
}

.fx-pe-manual p {
  margin: 0;
  color: var(--fx-faint);
  font-size: .64rem;
  line-height: 1.7;
}

.fx-pe-results .fx-stat {
  flex: 1 1 8.5rem;
  min-width: 0;
}

.fx-pe-results .fx-stat strong {
  direction: ltr;
  unicode-bidi: isolate;
}

.fx-input {
  width: 100%;
  border: 1px solid var(--fx-line);
  border-radius: 4px;
  padding: .55rem .7rem;
  background: var(--fx-bg);
  color: var(--fx-ink-strong);
  font-size: .8rem;
  font-weight: 900;
  outline: none;
}

.fx-input:focus { border-color: var(--fx-amber); }

.fx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
}

.fx-table th,
.fx-table td {
  padding: .42rem .5rem;
  border-bottom: 1px solid var(--fx-line);
  text-align: start;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.fx-table th {
  color: var(--fx-faint);
  font-size: .6rem;
  font-weight: 800;
}

.fx-table td {
  font-size: .7rem;
  font-weight: 700;
}

.fx-table td .fx-num {
  display: inline-block;
  width: 100%;
  text-align: left;
}
.fx-table a { color: var(--fx-ink-strong); font-weight: 900; text-decoration: none; }
.fx-table a:hover { color: var(--fx-amber); }
.fx-bar {
  height: .42rem;
  overflow: hidden;
  border-radius: 99px;
  background: var(--fx-bg-deep);
}
.fx-bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--fx-amber), var(--fx-cyan));
}

.fx-div-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
  gap: .55rem;
}

.fx-div-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .55rem .65rem .5rem;
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  background: var(--fx-panel-2);
}

.fx-div-card__who {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .45rem;
  min-width: 0;
}

.fx-div-card__who a,
.fx-div-card__who strong {
  min-width: 0;
  color: var(--fx-ink-strong);
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.fx-div-card__who a:hover { color: var(--fx-amber); }

.fx-div-card__who span {
  flex: none;
  color: var(--fx-faint);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.fx-div-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  align-items: end;
  margin-top: .4rem;
}

.fx-div-col {
  display: grid;
  justify-items: center;
  gap: .28rem;
  min-width: 0;
}

.fx-div-col__plot {
  display: grid;
  grid-template-rows: auto 3.6rem;
  align-items: end;
  justify-items: center;
  width: 100%;
  gap: .2rem;
}

.fx-div-col__value {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: .2rem;
  width: 100%;
  margin: 0;
  direction: rtl;
  color: var(--fx-ink-strong);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.fx-div-col__value .fx-num {
  color: var(--fx-ink-strong);
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
}

.fx-div-col__value span {
  color: var(--fx-mute);
  font-size: .58rem;
  font-weight: 700;
}

.fx-div-col__track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 3.6rem;
  border-bottom: 1px solid var(--fx-line-strong);
}

.fx-div-bar {
  display: block;
  width: min(1.45rem, 46%);
  height: 0;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.fx-div-bar--prev { background: var(--fx-violet); }
.fx-div-bar--now { background: var(--fx-cyan); }

.fx-div-col small {
  max-width: 100%;
  color: var(--fx-faint);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.fx-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem minmax(0, 1fr);
  gap: .45rem;
  align-items: center;
}

.fx-flow__bar {
  display: flex;
  height: .7rem;
  overflow: hidden;
  background: var(--fx-bg-deep);
}

#fx-valuation,
#fx-valuation > .fx-panel__body,
.fx-pe-customize {
  overflow: visible;
}

.fx-pe-customize {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .55rem .6rem;
  margin-top: .7rem;
}

.ds-analysis .fx-pe-customize > .fx-pe-help.ti-context-help {
  position: relative;
  inset: auto;
  top: auto;
  right: auto;
  left: auto;
  z-index: 8;
  width: 2.2rem;
  direction: rtl;
  animation: none;
}

.fx-pe-help > summary {
  display: grid;
  position: relative;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--fx-line);
  border-radius: 50%;
  background: var(--fx-panel);
  color: var(--fx-amber);
  font-size: .82rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  box-shadow: none;
  animation: none;
}

.fx-pe-help > summary::-webkit-details-marker,
.ds-analysis .fx-pe-help > summary::after { display: none; }

.ds-analysis .fx-pe-help > summary:hover {
  transform: none;
}

.fx-pe-help[open] > summary {
  border-color: var(--fx-amber);
  background: var(--fx-amber);
  color: var(--fx-on-accent);
}

.fx-pe-help__panel,
.ds-analysis .fx-pe-customize .ti-context-help-panel {
  position: absolute;
  inset-block-start: calc(100% + .45rem);
  inset-inline-start: 0;
  inset-inline-end: auto;
  z-index: 20;
  box-sizing: border-box;
  width: min(26rem, calc(100vw - 2.4rem));
  max-height: min(22rem, 70vh);
  overflow: auto;
  padding: .9rem 1rem 1.05rem;
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  background: var(--fx-panel);
  color: var(--fx-ink);
  box-shadow: 0 18px 40px rgb(8 18 16 / .18);
  transform: none;
  animation: none;
}

@media (max-width: 720px) {
  .fx-pe-customize { grid-template-columns: minmax(0, 1fr); }
  .ds-analysis .fx-pe-customize > .fx-pe-help.ti-context-help { width: auto; }
  .fx-pe-help__panel,
  .ds-analysis .fx-pe-customize .ti-context-help-panel {
    position: static;
    width: auto;
    max-height: none;
    margin-top: .5rem;
    box-shadow: none;
  }
  .fx-pe-options { grid-template-columns: minmax(0, 1fr); }
  .fx-pe-group__periods { grid-template-columns: minmax(0, 1fr); }
}

.ds-analysis .ti-context-help-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  margin: 0 0 .7rem;
  padding: 0 0 .55rem;
  border-block-end: 1px solid var(--fx-line);
  background: transparent;
  color: var(--fx-amber);
  font-size: .66rem;
  font-weight: 900;
}

.ds-analysis .ti-context-help-brand small {
  color: var(--fx-mute);
  font-size: .58rem;
  font-weight: 700;
}

.ds-analysis .ti-context-help-panel h3 {
  margin: 0;
  color: var(--fx-ink-strong);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.6;
}

.ds-analysis .ti-context-help-lead,
.ds-analysis .ti-context-help-panel li {
  margin: .4rem 0 0;
  color: var(--fx-mute);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.85;
}

.ds-analysis .ti-context-help-panel ul {
  display: grid;
  gap: .35rem;
  margin: .7rem 0 0;
  padding: 0;
  list-style: none;
}

.ds-analysis .ti-context-help-panel li {
  position: relative;
  padding-inline-start: .9rem;
}

.ds-analysis .ti-context-help-panel li::before {
  position: absolute;
  inset-block-start: .55rem;
  inset-inline-start: 0;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--fx-amber);
  content: "";
}

.ds-analysis .ti-context-help-note {
  margin: .85rem 0 0;
  padding: .55rem .65rem;
  border: 1px solid color-mix(in srgb, var(--fx-amber) 28%, var(--fx-line));
  border-radius: 6px;
  background: var(--fx-amber-soft);
  color: var(--fx-ink);
  font-size: .62rem;
  line-height: 1.8;
}

.ds-analysis .ti-context-help:not([open]) .ti-context-help-panel,
.ds-analysis .ti-context-help:not([open]) .ti-context-help-close,
.ds-analysis .ti-context-help[open] .ti-context-help-question { display: none; }

.trend-grid { stroke: color-mix(in srgb, var(--fx-line) 80%, transparent); stroke-width: 1; stroke-dasharray: 2 7; }
.trend-zero-grid { stroke: var(--fx-line-strong); stroke-width: 1.2; }
.trend-axis-label { fill: var(--fx-faint); font: 12px Vazirmatn, Tahoma, sans-serif; }
.trend-y-axis-label { direction: ltr; unicode-bidi: isolate; }
.monthly-bar-value,
.trend-value-label {
  fill: var(--fx-ink-strong);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--fx-panel);
  stroke-width: 2px;
}
.trend-point { fill: var(--fx-panel); stroke: var(--fx-cyan); stroke-width: 2; }
.trend-last-point { fill: var(--fx-amber-soft); stroke: var(--fx-amber); stroke-width: 2.5; }

.ds-analysis .ds-empty {
  padding: 1.2rem;
  text-align: right;
}

.ds-analysis .ds-button {
  display: inline-flex;
  margin-top: .7rem;
  min-height: 2rem;
  align-items: center;
  border: 1px solid var(--fx-line);
  border-radius: 4px;
  padding: .3rem .7rem;
  color: var(--fx-ink);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}

.fx-product-sales__body,
.fx-mosaic > .fx-panel.fx-product-sales > .fx-panel__body.fx-product-sales__body {
  display: grid;
  /* ترتیب فیزیکی ثابت است: روند بزرگ در چپ، ترکیب کوچک در راست. */
  direction: ltr;
  grid-template-columns: minmax(0, 2.25fr) minmax(17rem, .75fr);
  gap: .8rem;
}

/* این تحلیل تکمیلی است و باید پس از همهٔ تحلیل‌های اصلی دیده شود. */
.fx-product-sales { order: 100; }

.fx-quarterly-dollar { order: 96; }
.fx-quarterly-dollar__chart { min-height: 22rem; }
.fx-quarterly-dollar__chart {
  padding: .35rem .5rem .15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--fx-cyan) 4%, transparent), transparent 42%),
    var(--fx-bg-deep);
}
.fx-quarterly-dollar__chart svg { aspect-ratio: 960 / 450; }
.fx-quarterly-dollar__legend {
  flex-wrap: nowrap;
  align-items: center;
  gap: .45rem;
}
.fx-quarterly-dollar__legend span {
  gap: .38rem;
  padding-inline: .58rem;
}
.fx-quarterly-dollar__swatch {
  display: inline-block;
  width: .56rem;
  height: .56rem;
  flex: 0 0 .56rem;
  border-radius: 2px;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 13%, transparent);
}
.fx-quarterly-dollar__swatch.is-revenue { background: #22d3ee; color: #22d3ee; }
.fx-quarterly-dollar__swatch.is-profit { background: #fbbf24; color: #fbbf24; }
.fx-quarterly-dollar__source {
  margin: .65rem 0 0;
  padding: .58rem .7rem;
  border-inline-start: 2px solid var(--fx-cyan);
  background: color-mix(in srgb, var(--fx-cyan) 5%, transparent);
  color: var(--fx-faint);
  font-size: .63rem;
  line-height: 1.85;
}

.fx-product-rate,
.fx-product-mix {
  direction: rtl;
  min-width: 0;
  padding: .75rem;
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--fx-panel-2) 82%, var(--fx-bg-deep));
}

.fx-product-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .45rem .8rem;
  margin-bottom: .65rem;
}

.fx-product-subhead h3 {
  margin: 0;
  color: var(--fx-ink-strong);
  font-size: .92rem;
  font-weight: 900;
}

.fx-product-subhead p {
  max-width: 48rem;
  margin: .15rem 0 0;
  color: var(--fx-faint);
  font-size: .67rem;
  line-height: 1.75;
}

.fx-product-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  max-height: 7.6rem;
  margin: 0 0 .65rem;
  padding: .15rem .05rem .4rem;
  overflow-y: auto;
  border: 0;
}

.fx-product-toggles label {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  min-height: 2rem;
  padding: .3rem .52rem;
  border: 1px solid color-mix(in srgb, var(--product-color, var(--fx-line-strong)) 42%, var(--fx-line));
  border-radius: 5px;
  background: var(--fx-panel);
  color: var(--fx-mute);
  font-size: .64rem;
  font-weight: 800;
  cursor: pointer;
}

.fx-product-toggles label:has(input:checked) {
  border-color: color-mix(in srgb, var(--product-color) 72%, var(--fx-line));
  color: var(--fx-ink-strong);
}

.fx-product-toggles input {
  width: .85rem;
  height: .85rem;
  margin: 0;
  accent-color: var(--product-color);
}

.fx-product-toggles label > span {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--product-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--product-color) 16%, transparent);
}

.fx-product-rate__chart { min-height: 20rem; }
.fx-product-rate__chart svg { aspect-ratio: 960 / 420; }

.fx-product-mix__layout {
  display: grid;
  gap: .7rem;
}

.fx-product-donut {
  display: grid;
  place-items: center;
  min-height: 16rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-bg-deep);
}

.fx-product-donut svg {
  width: min(100%, 19rem);
  height: auto;
}

.fx-product-mix__legend {
  display: grid;
  gap: .3rem;
  max-height: 16rem;
  margin: 0;
  padding: 0 .1rem 0 0;
  overflow-y: auto;
  list-style: none;
}

.fx-product-mix__legend li {
  display: grid;
  grid-template-columns: .55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .48rem;
  padding: .4rem .45rem;
  border-block-end: 1px solid var(--fx-line);
}

.fx-product-mix__swatch {
  width: .55rem;
  height: 1.65rem;
  border-radius: 2px;
  background: var(--product-color);
}

.fx-product-mix__legend strong,
.fx-product-mix__legend small { display: block; }

.fx-product-mix__legend strong {
  color: var(--fx-ink-strong);
  font-size: .68rem;
}

.fx-product-mix__legend small {
  margin-top: .1rem;
  color: var(--fx-faint);
  font-size: .58rem;
}

.fx-product-mix__legend b {
  color: var(--product-color);
  font-size: .76rem;
}

.fx-product-sales__source {
  direction: rtl;
  grid-column: 1 / -1;
  margin: 0;
  padding: .6rem .7rem;
  border-inline-start: 2px solid var(--fx-amber);
  background: color-mix(in srgb, var(--fx-amber) 5%, transparent);
  color: var(--fx-faint);
  font-size: .63rem;
  line-height: 1.85;
}

@media (max-width: 1520px) {
  .fx-tape { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1400px) {
  .fx-multiples.valuation-cards,
  .fx-invest-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valuation-cards .fx-multiple__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
  .fx-product-mix__layout { grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr); }
  .fx-formula { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-stats { grid-template-columns: unset; }
  .fx-stats--context,
  .fx-stats--support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-panel--half { grid-column: 1 / -1; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .fx-product-sales__body,
  .fx-mosaic > .fx-panel.fx-product-sales > .fx-panel__body.fx-product-sales__body {
    grid-template-columns: minmax(0, 2fr) minmax(14rem, .8fr);
  }
}

@media (max-width: 900px) {
  .fx-mosaic,
  .fx-mosaic--priority,
  .fx-split { grid-template-columns: minmax(0, 1fr); }
  .fx-chrome { inset-block-start: var(--fx-nav-h, var(--nc-navbar-height, 4.5rem)); }
  .fx-quote { flex-wrap: wrap; }
  .fx-tape,
  .fx-formula { grid-template-columns: 1fr 1fr; }
  .fx-panel--half { grid-column: 1 / -1; }
  .fx-panel--half .fx-points { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fx-product-mix__layout { grid-template-columns: minmax(0, 1fr); }
  .fx-product-rate__chart { align-items: flex-start; overflow-x: auto; }
  .fx-product-rate__chart svg { width: 46rem; min-width: 46rem; }
  .fx-quarterly-dollar__chart { align-items: flex-start; overflow-x: auto; }
  .fx-quarterly-dollar__chart svg { width: 46rem; min-width: 46rem; }
  .fx-quarterly-dollar__legend {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: .12rem;
  }
  .fx-product-toggles { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .fx-product-toggles label { flex: 0 0 auto; }
  .fx-tape,
  .fx-formula,
  .fx-split,
  .fx-stats,
  .fx-stats--context,
  .fx-stats--support { grid-template-columns: 1fr; }
  .fx-multiples.valuation-cards,
  .fx-invest-kpis { grid-template-columns: 1fr; }
  .valuation-cards .fx-multiple__grid { grid-template-columns: 1fr; }
  .fx-quote { min-height: 0; padding: .22rem .55rem .12rem; }
  .fx-quote__names p { display: none; }
  .fx-quote__names h1 { font-size: .78rem; }
  .fx-quote__symbol { min-width: 3.4rem; font-size: .92rem; }
  .fx-quote__names h1 { white-space: normal; }
  .fx-chart svg { min-width: 0; }
  .fx-div-board { grid-template-columns: 1fr; }
  .fx-jump a { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .needle, .kpi-sweep, .gauge-card { animation: none; }
}

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

.fx-expand-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .38rem;
  min-height: 2.15rem;
  border: 1px solid var(--fx-line-strong);
  border-radius: 6px;
  padding: .32rem .72rem;
  background: var(--fx-panel);
  color: var(--fx-ink-strong);
  font: 800 .7rem Vazirmatn, Tahoma, sans-serif;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.fx-expand-btn svg {
  width: .95rem;
  height: .95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.fx-expand-btn:hover,
.fx-expand-btn:focus-visible {
  border-color: var(--fx-amber);
  background: var(--fx-amber-soft);
  color: var(--fx-amber);
}

.fx-expand-btn:focus-visible {
  outline: 2px solid var(--fx-amber);
  outline-offset: 2px;
}

html.is-fx-expand-open {
  overflow: hidden;
}

html.is-fx-expand-open .nc-navbar,
html.is-fx-expand-open .fx-chrome {
  pointer-events: none;
}

.fx-expand {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) .8rem .8rem;
  background: var(--ds-overlay);
  backdrop-filter: blur(12px);
}

.fx-expand[hidden] { display: none; }

.fx-expand__dialog {
  display: flex;
  flex-direction: column;
  width: min(94rem, calc(100vw - 1.4rem));
  height: min(calc(100dvh - 2rem), 62rem);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--fx-line-strong);
  border-radius: 1.1rem;
  background: var(--fx-panel);
  box-shadow: var(--ds-shadow-float);
}

.fx-expand__bar {
  display: flex;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding: .7rem 1rem;
  border-block-end: 1px solid var(--fx-line);
  background: var(--fx-panel-2);
}

.fx-expand__title {
  margin: 0;
  color: var(--fx-ink-strong);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.fx-expand__close {
  display: inline-flex;
  flex: none;
  min-height: 2.3rem;
  align-items: center;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  padding: .35rem .85rem;
  background: var(--fx-panel);
  color: var(--fx-ink);
  font: 800 .74rem Vazirmatn, Tahoma, sans-serif;
  cursor: pointer;
}

.fx-expand__close:hover {
  border-color: var(--fx-amber);
  color: var(--fx-ink-strong);
}

.fx-expand__stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: .7rem .8rem .9rem;
}

.fx-expand__stage > .fx-panel {
  height: auto;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fx-expand__stage .fx-panel__head {
  padding-inline: 0;
  background: transparent;
}

.fx-expand__stage .fx-expand-btn { display: none; }

.fx-expand__stage .fx-panel__head h2,
.fx-expand__stage .fx-panel__head h3 { display: none; }

.fx-expand__stage .fx-panel__body {
  padding-inline: 0;
}

.fx-expand__stage .fx-chart:has(> svg) {
  min-height: min(58vh, 34rem);
  padding: .7rem .8rem;
}

.fx-expand__stage .fx-chart:has(> svg) svg {
  width: min(100%, 88rem);
  max-height: min(58vh, 36rem);
}

.fx-expand-slot {
  min-height: 8rem;
  border: 1px dashed var(--fx-line);
  border-radius: var(--fx-radius);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 1.7rem,
      color-mix(in srgb, var(--fx-line) 32%, transparent) 1.7rem calc(1.7rem + 1px)
    ),
    var(--fx-panel-2);
}

.fx-mosaic--invest .fx-stat small,
.fx-mosaic--invest .fx-stat em {
  white-space: normal;
  overflow-wrap: anywhere;
}

.fx-invest-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.fx-invest-kpis > .fx-multiple {
  grid-column: auto;
  min-width: 0;
  min-height: 100%;
}

.fx-invest-formula {
  margin-top: .15rem;
}

.fx-invest-note {
  margin: 0;
}

.fx-table-shell {
  overflow: auto;
  min-width: 0;
  max-height: 32rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-panel);
}

.fx-holdings-table {
  table-layout: fixed;
  width: 100%;
  min-width: 42rem;
}

.fx-holdings-col--name { width: 32%; }
.fx-holdings-col--share { width: 16%; }
.fx-holdings-col--value { width: 24%; }
.fx-holdings-col--weight { width: 28%; }

.fx-holdings-table th,
.fx-holdings-table td {
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

.fx-holdings-table td .fx-num {
  display: inline;
  width: auto;
  max-width: none;
  text-align: center;
}

.fx-holdings-name {
  overflow-wrap: anywhere;
}

.fx-holdings-figure {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .28rem;
  max-width: 100%;
  white-space: nowrap;
}

.fx-holdings-unit {
  flex: none;
  color: var(--fx-mute);
  font-size: .62rem;
  font-weight: 800;
}

.fx-holdings-weight {
  width: auto;
  min-width: 0;
  padding-inline: .75rem;
}

.fx-holdings-weight .fx-bar {
  width: 100%;
  margin: 0;
}

.fx-holdings-more {
  margin-top: .7rem;
  overflow: hidden;
}

.fx-holdings-more > summary small {
  color: var(--fx-mute);
  font-size: .68rem;
  font-weight: 800;
}

.fx-holdings-more > .fx-table-shell {
  max-height: 22rem;
  border-inline: 0;
  border-block-end: 0;
  border-radius: 0;
}

.fx-flow-board {
  overflow: auto;
  max-height: 32rem;
  min-width: 0;
  padding: .15rem .1rem .35rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-bg-deep);
}

.fx-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 13rem) minmax(0, 1fr);
  gap: .45rem;
  align-items: center;
  min-width: 38rem;
  padding: .42rem .55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--fx-line) 78%, transparent);
}

.fx-flow:last-child { border-bottom: 0; }

.fx-flow--head {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  padding-block: .35rem .4rem;
  background: var(--fx-panel-2);
  color: var(--fx-mute);
  font-size: .62rem;
  font-weight: 900;
}

.fx-flow__side--sale { color: var(--fx-red); text-align: left; }
.fx-flow__side--buy { color: var(--fx-green); text-align: right; }

.fx-flow__arm {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .4rem;
}

.fx-flow__amt {
  flex: none;
  width: 5.4rem;
  overflow: hidden;
  font-size: clamp(.52rem, 3.6cqi, .62rem);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.fx-flow__amt--sale { color: var(--fx-red); text-align: right; }
.fx-flow__amt--buy { color: var(--fx-green); text-align: left; }

.fx-flow__bar {
  display: flex;
  flex: 1 1 auto;
  height: .72rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--fx-line) 55%, var(--fx-bg-deep));
}

.fx-flow__bar > i {
  display: block;
  height: 100%;
  min-width: 0;
}

.fx-flow__bar--sale {
  justify-content: flex-end;
  border-radius: 3px 0 0 3px;
}

.fx-flow__bar--sale > i { background: var(--fx-red); }

.fx-flow__bar--buy {
  border-radius: 0 3px 3px 0;
}

.fx-flow__bar--buy > i { background: var(--fx-green); }

.fx-flow__who {
  min-width: 0;
  overflow: hidden;
  color: var(--fx-faint);
  font-size: .58rem;
  font-weight: 800;
  text-align: center;
}

.fx-flow__who a,
.fx-flow__who strong {
  display: block;
  overflow: hidden;
  color: var(--fx-ink-strong);
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-flow__who a:hover { color: var(--fx-amber); }

.ds-analysis:has(.fx-mosaic--invest) .fx-quote__names h1 {
  white-space: normal;
}

/* These rules follow the investment defaults above so they win at narrower widths. */
@media (max-width: 1400px) {
  .fx-invest-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .fx-invest-kpis,
  .fx-mosaic--invest .fx-multiple__grid { grid-template-columns: minmax(0, 1fr); }

  .fx-mosaic--invest .fx-panel__body { padding-inline: .6rem; }

  .fx-mosaic--invest .fx-flow-board,
  .fx-mosaic--invest .fx-table-shell {
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: no-preference) {
@keyframes fx-arrive-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fx-arrive-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes fx-arrive-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

html.is-fx-arrive .fx-chrome {
  animation: fx-arrive-fade .42s cubic-bezier(.22, 1, .36, 1) both;
}

html.is-fx-arrive .fx-chrome::before {
  transform-origin: 100% 50%;
  animation: fx-arrive-rule .7s cubic-bezier(.22, 1, .36, 1) both;
}

html.is-fx-arrive .fx-quote__symbol {
  animation: fx-arrive-rise .46s cubic-bezier(.22, 1, .36, 1) .05s both;
}

html.is-fx-arrive .fx-mosaic > .fx-panel,
html.is-fx-arrive .fx-desk > .fx-empty,
html.is-fx-arrive .fx-desk .ds-empty {
  animation: fx-arrive-rise .52s cubic-bezier(.22, 1, .36, 1) both;
}

html.is-fx-arrive .fx-mosaic > .fx-panel:nth-child(1) { animation-delay: .08s; }
html.is-fx-arrive .fx-mosaic > .fx-panel:nth-child(2) { animation-delay: .14s; }
html.is-fx-arrive .fx-mosaic > .fx-panel:nth-child(3) { animation-delay: .2s; }
html.is-fx-arrive .fx-mosaic > .fx-panel:nth-child(4) { animation-delay: .26s; }
html.is-fx-arrive .fx-mosaic > .fx-panel:nth-child(5) { animation-delay: .32s; }
html.is-fx-arrive .fx-mosaic > .fx-panel:nth-child(6) { animation-delay: .38s; }
html.is-fx-arrive .fx-mosaic > .fx-panel:nth-child(n + 7) { animation-delay: .44s; }

html.is-fx-arrive .fx-panel--hero .gauge-card,
html.is-fx-arrive .fx-invest-kpis > .fx-multiple,
html.is-fx-arrive .valuation-cards > .fx-multiple {
  animation: fx-arrive-rise .46s cubic-bezier(.22, 1, .36, 1) both;
}

html.is-fx-arrive .fx-panel--hero .gauge-card:nth-child(1),
html.is-fx-arrive .fx-invest-kpis > .fx-multiple:nth-child(1),
html.is-fx-arrive .valuation-cards > .fx-multiple:nth-child(1) { animation-delay: .16s; }
html.is-fx-arrive .fx-panel--hero .gauge-card:nth-child(2),
html.is-fx-arrive .fx-invest-kpis > .fx-multiple:nth-child(2),
html.is-fx-arrive .valuation-cards > .fx-multiple:nth-child(2) { animation-delay: .21s; }
html.is-fx-arrive .fx-panel--hero .gauge-card:nth-child(3),
html.is-fx-arrive .fx-invest-kpis > .fx-multiple:nth-child(3),
html.is-fx-arrive .valuation-cards > .fx-multiple:nth-child(3) { animation-delay: .26s; }
html.is-fx-arrive .fx-panel--hero .gauge-card:nth-child(4),
html.is-fx-arrive .fx-invest-kpis > .fx-multiple:nth-child(4),
html.is-fx-arrive .valuation-cards > .fx-multiple:nth-child(4) { animation-delay: .31s; }
html.is-fx-arrive .fx-panel--hero .gauge-card:nth-child(n + 5),
html.is-fx-arrive .fx-invest-kpis > .fx-multiple:nth-child(n + 5),
html.is-fx-arrive .valuation-cards > .fx-multiple:nth-child(n + 5) { animation-delay: .36s; }

html.is-fx-arrive .fx-chart:has(> svg),
html.is-fx-arrive .fx-flow-board,
html.is-fx-arrive .fx-div-board {
  animation: fx-arrive-fade .4s ease .24s both;
}
}

@media print {
  .fx-expand,
  .fx-expand-btn { display: none !important; }
}

@media print {
  .fx-chrome, .fx-quote, .fx-jump, .analysis-social-trigger, .fx-quote__actions { position: static; }
  .ds-analysis-shell { background: #fff; }
}

.fx-flash {
  display: grid;
  gap: .4rem;
  width: min(100% - 1rem, 96rem);
  margin: .55rem auto 0;
}

.fx-flash__item {
  margin: 0;
  padding: .55rem .75rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-panel-2);
  color: var(--fx-ink);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.8;
}

.fx-flash__item--success {
  border-color: color-mix(in srgb, var(--fx-green) 40%, var(--fx-line));
  background: var(--fx-green-soft);
  color: var(--fx-green);
}

.fx-flash__item--error {
  border-color: color-mix(in srgb, var(--fx-red) 40%, var(--fx-line));
  background: var(--fx-red-soft);
  color: var(--fx-red);
}

.fx-flash__item--warning {
  border-color: color-mix(in srgb, var(--fx-amber) 45%, var(--fx-line));
  background: var(--fx-amber-soft);
  color: var(--fx-ink-strong);
}

.fx-issue {
  width: min(100% - 1rem, 96rem);
  margin: 0 auto 1.4rem;
}

.fx-issue__box {
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--fx-amber) 28%, var(--fx-line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--fx-amber) 8%, var(--fx-panel)), var(--fx-panel) 58%);
}

.fx-issue__box > summary {
  display: grid;
  gap: .12rem;
  cursor: pointer;
  list-style: none;
}

.fx-issue__box > summary::-webkit-details-marker { display: none; }

.fx-issue__kicker {
  color: var(--fx-amber);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.fx-issue__box strong {
  color: var(--fx-ink-strong);
  font-size: .92rem;
}

.fx-issue__box small,
.fx-issue__note {
  color: var(--fx-mute);
  font-size: .72rem;
  line-height: 1.8;
}

.fx-issue__note { margin: .7rem 0 .85rem; }

.fx-issue__form {
  display: grid;
  gap: .75rem;
}

.fx-issue__form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.fx-issue__form legend,
.fx-issue__desc {
  color: var(--fx-ink);
  font-size: .72rem;
  font-weight: 850;
}

.fx-issue__types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  margin-top: .4rem;
}

.fx-issue__types label {
  position: relative;
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  padding: .35rem .45rem;
  border: 1px solid var(--fx-line);
  border-radius: 6px;
  background: var(--fx-panel);
  color: var(--fx-ink);
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.fx-issue__types label:has(input:checked) {
  border-color: var(--fx-amber);
  background: var(--fx-amber-soft);
  color: var(--fx-ink-strong);
  box-shadow: inset 0 -.14rem 0 var(--fx-amber);
}

.fx-issue__types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fx-issue__desc {
  display: grid;
  gap: .35rem;
}

.fx-issue__desc textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.fx-issue__submit {
  justify-self: start;
  min-height: 2.2rem;
  border-color: var(--fx-amber);
  background: var(--fx-amber);
  color: var(--fx-on-accent);
  font-weight: 900;
}

@media (max-width: 800px) {
  .fx-issue__types { grid-template-columns: 1fr 1fr; }
}
