/* ============================= Nifty market sentiment dashboard =============================
   Loaded on the homepage (and the 404 page for its small layout rules). Builds on the light theme
   variables and .m3x-terminal / .m3x-panel styles in main.css. */
.m3x-sent {
  --sent-bull: #15803d;
  --sent-bull-soft: rgba(22, 163, 74, 0.1);
  --sent-bear: #dc2626;
  --sent-bear-soft: rgba(220, 38, 38, 0.09);
  --sent-neutral: #64748b;
  --sent-neutral-soft: rgba(100, 116, 139, 0.12);
  text-align: left;
}
.m3x-sent .is-bullish { --tone: var(--sent-bull); --tone-soft: var(--sent-bull-soft); }
.m3x-sent .is-bearish { --tone: var(--sent-bear); --tone-soft: var(--sent-bear-soft); }
.m3x-sent .is-neutral { --tone: var(--sent-neutral); --tone-soft: var(--sent-neutral-soft); }

.m3x-sent-title {
  margin: 0 auto 0 8px;
  color: rgb(var(--t-ink-rgb) / 0.75);
  font: 500 14px/1.4 "Inter Tight", sans-serif;
}
.m3x-sent-status { font-size: 12px; white-space: nowrap; }
.m3x-sent-stale {
  color: var(--sent-bear);
  font: 500 11px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.m3x-sent-body { display: grid; gap: 16px; padding: 16px; }
.m3x-sent-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .m3x-sent-body { gap: 20px; padding: 24px; }
  .m3x-sent-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
}

/* ---------- overall sentiment ---------- */
.m3x-sent-score-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(var(--t-ink-rgb) / 0.08);
}
.m3x-sent-headline { display: flex; align-items: center; gap: 14px; }
.m3x-sent-kicker {
  display: block;
  margin-bottom: 4px;
  color: rgb(var(--t-ink-rgb) / 0.5);
  font: 500 11px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.m3x-sent-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tone-soft);
  color: var(--tone);
}
.m3x-sent-icon svg {
  display: none;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m3x-sent-score.is-bullish .m3x-ico-up,
.m3x-sent-score.is-bearish .m3x-ico-down,
.m3x-sent-score.is-neutral .m3x-ico-flat { display: block; }
.m3x-sent-percent {
  display: block;
  color: var(--tone);
  font: 400 44px/1 "Sora", sans-serif;
  letter-spacing: -1.5px;
}
.m3x-sent-label {
  display: block;
  margin-top: 6px;
  color: var(--tone);
  font: 500 13px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.m3x-sent-strength {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 28px;
  margin: 0;
}
.m3x-sent-strength dt { color: rgb(var(--t-ink-rgb) / 0.55); font-size: 12px; line-height: 1.4; }
.m3x-sent-strength dd { margin: 2px 0 0; color: var(--t-ink); font: 400 22px/1.2 "Sora", sans-serif; }

/* ---------- breakdown ---------- */
.m3x-sent-breakdown { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.m3x-donut-wrap { position: relative; flex: none; width: 150px; height: 150px; margin: 4px auto; }
.m3x-donut { display: block; width: 100%; height: 100%; }
.m3x-donut circle { fill: none; stroke-width: 6; }
.m3x-donut-ring { stroke: var(--t-subtle-2); }
.m3x-donut-seg { transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease; }
.m3x-donut-seg.is-bullish { stroke: var(--sent-bull); }
.m3x-donut-seg.is-bearish { stroke: var(--sent-bear); }
.m3x-donut-seg.is-neutral { stroke: #94a3b8; }
.m3x-donut-wrap figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgb(var(--t-ink-rgb) / 0.55);
  font-size: 12px;
}
.m3x-donut-wrap figcaption strong { color: var(--t-ink); font: 400 30px/1 "Sora", sans-serif; }
.m3x-sent-counts { flex: 1 1 200px; margin: 0; padding: 0; list-style: none; }
.m3x-sent-counts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgb(var(--t-ink-rgb) / 0.06);
  color: rgb(var(--t-ink-rgb) / 0.75);
  font-size: 14px;
}
.m3x-sent-counts li:first-child { border-top: 0; }
.m3x-sent-counts li span { display: inline-flex; align-items: center; gap: 10px; }
.m3x-sent-counts li span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--tone, var(--t-ink));
}
.m3x-sent-counts li.is-neutral span::before { background: #94a3b8; }
.m3x-sent-counts b { color: var(--t-ink); font: 400 20px/1 "Sora", sans-serif; }

/* ---------- signal per alert (diverging bar chart) ---------- */
.m3x-sig-chart { padding-top: 16px; }
.m3x-sig-chart .m3x-panel-title { flex-wrap: wrap; gap: 4px 12px; }
.m3x-sig-rows { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.m3x-sig-row,
.m3x-sig-axis {
  display: grid;
  grid-template-columns: minmax(96px, 32%) minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}
.m3x-sig-name {
  overflow: hidden;
  color: var(--t-ink);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.m3x-sig-track { position: relative; height: 22px; border-radius: 4px; background: var(--t-subtle-2); }
.m3x-sig-track::before {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 1px;
  background: rgb(var(--t-ink-rgb) / 0.35);
}
.m3x-sig-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: var(--w, 0%);
  background: var(--tone);
  transition: width 0.5s ease;
}
.m3x-sig-row.is-bullish .m3x-sig-bar { left: 50%; border-radius: 0 3px 3px 0; }
.m3x-sig-row.is-bearish .m3x-sig-bar { right: 50%; border-radius: 3px 0 0 3px; }
.m3x-sig-row.is-neutral .m3x-sig-bar { left: calc(50% - 3px); width: 7px; border-radius: 2px; background: #94a3b8; }
.m3x-sig-val { color: var(--tone); font: 500 13px/1 "IBM Plex Mono", monospace; text-align: right; }
.m3x-sig-axis { margin-top: 8px; }
.m3x-sig-axis-scale {
  display: flex;
  justify-content: space-between;
  color: rgb(var(--t-ink-rgb) / 0.5);
  font: 400 11px/1.4 "IBM Plex Mono", monospace;
}
.m3x-sig-axis-scale b { font-weight: 400; }
.m3x-sig-empty { padding: 22px 0; color: rgb(var(--t-ink-rgb) / 0.6); font-size: 14px; text-align: center; }
.m3x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- states & disclaimer ---------- */
.m3x-sent-error {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}
.m3x-sent-error[hidden] { display: none; }
.m3x-sent-disclaimer { margin: 0; color: rgb(var(--t-ink-rgb) / 0.55); font-size: 12px; line-height: 1.6; }

@media (max-width: 719px) {
  .m3x-sent-percent { font-size: 36px; }
  .m3x-sent-strength { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .m3x-sig-row,
  .m3x-sig-axis { grid-template-columns: minmax(80px, 34%) minmax(0, 1fr) 40px; gap: 10px; }
  .m3x-sig-name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .m3x-sig-bar,
  .m3x-donut-seg { transition: none; }
}

/* ---------- 404 page ---------- */
.m3x-error-page { display: grid; justify-items: center; gap: 14px; padding: 200px 0 140px; text-align: center; }
.m3x-error-link { color: var(--m3x-accent); font-weight: 500; }

/* ---------- sentiment card border pulse (green when bullish, red when bearish) ---------- */
.m3x-sent-score {
  border: 1px solid rgb(var(--t-ink-rgb) / 0.12);
  transition: border-color 0.4s ease;
}
.m3x-sent-score.is-bullish { --pulse-rgb: 21, 128, 61; border-color: rgba(21, 128, 61, 0.6); animation: m3x-card-pulse 2.4s ease-out infinite; }
.m3x-sent-score.is-bearish { --pulse-rgb: 220, 38, 38; border-color: rgba(220, 38, 38, 0.6); animation: m3x-card-pulse 2.4s ease-out infinite; }
.m3x-sent-score.is-neutral { border-color: rgba(100, 116, 139, 0.45); animation: none; }
@keyframes m3x-card-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--pulse-rgb), 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(var(--pulse-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--pulse-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .m3x-sent-score.is-bullish,
  .m3x-sent-score.is-bearish { animation: none; }
}

/* ============================= Market Direction banner (2026-10-26) =============================
   Sentiment box | alert counts | donut, on the soft green banner image. */
.m3x-sent2 {
  --sent-bull: #15803d;
  --sent-bear: #dc2626;
  --sent-neutral: #94a3b8;
  position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 40px); border-radius: 18px; overflow: hidden;
  background: #eef7e6;
  box-shadow: 0 18px 40px -26px rgba(17, 24, 39, 0.35);
  text-align: left;
}
@media (min-width: 768px) { .m3x-sent2 { grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.4fr) auto; gap: clamp(24px, 4vw, 64px); } }
html[data-theme="dark"] .m3x-sent2 { background-color: #0f1712; box-shadow: none; }
html[data-theme="dark"] .m3x-sent2::before { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 18, 0.8); }
.m3x-sent2 > * { position: relative; }

/* sentiment box */
.m3x-sent2-score {
  --tone: var(--sent-neutral);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 20px 24px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.55); text-align: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.m3x-sent2-score.is-bullish { --tone: var(--sent-bull); }
.m3x-sent2-score.is-bearish { --tone: var(--sent-bear); }
.m3x-sent2-score.is-neutral { --tone: #15803d; } /* the reference shows neutral in green as well */
html[data-theme="dark"] .m3x-sent2-score { background: rgba(255, 255, 255, 0.06); }
.m3x-sent2-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 12px; background: rgba(148, 163, 184, 0.22); color: rgb(var(--t-ink-rgb) / 0.55); }
.m3x-sent2-icon svg { display: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.m3x-sent2-score.is-bullish .m3x-ico-up, .m3x-sent2-score.is-bearish .m3x-ico-down, .m3x-sent2-score.is-neutral .m3x-ico-flat { display: block; }
.m3x-sent2-kicker { color: rgb(var(--t-ink-rgb) / 0.6); font: 500 14px/1.3 "Inter Tight", sans-serif; }
.m3x-sent2-label { color: var(--t-ink); font: 700 26px/1.15 "Manrope", sans-serif; }
.m3x-sent2-percent { color: var(--tone); font: 700 clamp(40px, 4vw, 52px)/1 "Manrope", sans-serif; letter-spacing: -0.02em; }

/* counts */
.m3x-sent2-counts { margin: 0; padding: 0; list-style: none; }
.m3x-sent2-counts li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 54px; align-items: center; gap: 14px;
  padding: 16px 4px; border-top: 1px solid rgb(var(--t-ink-rgb) / 0.12);
}
.m3x-sent2-counts li:first-child { border-top: 0; }
.m3x-sent2-counts i { width: 18px; height: 18px; border-radius: 5px; background: var(--sent-neutral); }
.m3x-sent2-counts .is-bullish i { background: var(--sent-bull); }
.m3x-sent2-counts .is-bearish i { background: var(--sent-bear); }
.m3x-sent2-counts span { color: rgb(var(--t-ink-rgb) / 0.82); font: 500 17px/1.3 "Inter Tight", sans-serif; }
.m3x-sent2-counts b { color: var(--t-ink); font: 700 22px/1 "Manrope", sans-serif; }
.m3x-sent2-counts em { color: #64748b; font: 500 16px/1 "Inter Tight", sans-serif; font-style: normal; text-align: right; }
html[data-theme="dark"] .m3x-sent2-counts em { color: rgba(255, 255, 255, 0.55); }

/* donut */
.m3x-sent2-donut { position: relative; justify-self: center; width: clamp(150px, 15vw, 190px); aspect-ratio: 1; margin: 0; }
.m3x-sent2-donut .m3x-donut circle { stroke-width: 8.5; }
.m3x-sent2-donut .m3x-donut-ring { stroke: rgba(148, 163, 184, 0.35); }
.m3x-sent2-donut .m3x-donut-seg.is-neutral { stroke: var(--sent-neutral); }
.m3x-sent2-donut figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.m3x-sent2-donut figcaption strong { color: var(--t-ink); font: 700 clamp(34px, 3.4vw, 44px)/1 "Manrope", sans-serif; }
.m3x-sent2-donut figcaption span { color: rgb(var(--t-ink-rgb) / 0.65); font: 500 14px/1.2 "Inter Tight", sans-serif; }
.m3x-sent2-error { grid-column: 1 / -1; margin: 0; color: var(--sent-bear); font-size: 14px; }
.m3x-sent2-error[hidden] { display: none; }
html[data-theme="dark"] .m3x-sent2 { --sent-bull: #22c55e; --sent-bear: #f87171; }
html[data-theme="dark"] .m3x-sent2-score.is-neutral { --tone: #22c55e; }

/* banner refinements: clearly framed sentiment card centred in the banner, thinner donut, film-grain texture */
.m3x-sent2 { align-items: center; }
.m3x-sent2 > * { align-self: center; }
.m3x-sent2-score {
  justify-content: center; min-height: 0;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px -18px rgba(17, 24, 39, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme="dark"] .m3x-sent2-score { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.m3x-sent2-donut .m3x-donut circle { stroke-width: 4.5; }
/* grain: fractal noise drawn by an inline SVG, blended over the image */
.m3x-sent2::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.62; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.4 0 0 0 0 0.35 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
html[data-theme="dark"] .m3x-sent2::after { mix-blend-mode: screen; opacity: 0.28; }
.m3x-sent2 > :not(.m3x-sent2-error) { z-index: 1; }

/* ---- 2026-10-26 (b): hero gradient instead of the image; card always centred; clearer numbers ---- */
.m3x-sent2 {
  background: linear-gradient(98deg, #b9f5b4 0%, #c9f0d9 18%, #d3d6fb 42%, #b8c4fd 58%, #8fbcff 80%, #5199fe 100%);
  align-items: stretch;
}
html[data-theme="dark"] .m3x-sent2 {
  background: linear-gradient(98deg, #0d4a12 0%, #123a2c 22%, #1f2550 46%, #1d2c6b 64%, #1f4fa0 84%, #2f6fd6 100%);
}
html[data-theme="dark"] .m3x-sent2::before { background: rgba(8, 12, 18, 0.45); }
/* the card fills the banner's inner height, so its gap above and below always equals the padding */
.m3x-sent2-score { align-self: stretch; height: auto; justify-content: center; }
.m3x-sent2-counts, .m3x-sent2-donut { align-self: center; }
@media (max-width: 767.98px) { .m3x-sent2-score { align-self: auto; } }
.m3x-sent2-counts em { color: rgb(var(--t-ink-rgb) / 0.78); font-weight: 600; }
.m3x-sent2-counts span { color: var(--t-ink); }
html[data-theme="dark"] .m3x-sent2-counts em { color: rgba(255, 255, 255, 0.8); }

/* ---- 2026-10-26 (c): clean background - green glow on the left, a small blue glow bottom-right ---- */
.m3x-sent2 {
  background:
    radial-gradient(42% 120% at 0% 30%, rgba(0, 214, 12, 0.3) 0%, rgba(0, 214, 12, 0.12) 45%, transparent 75%),
    radial-gradient(22% 55% at 100% 100%, rgba(81, 153, 254, 0.55) 0%, rgba(81, 153, 254, 0.18) 50%, transparent 80%),
    #f7f9fb;
  border: 1px solid rgb(var(--t-ink-rgb) / 0.06);
}
html[data-theme="dark"] .m3x-sent2 {
  background:
    radial-gradient(42% 120% at 0% 30%, rgba(0, 214, 12, 0.22) 0%, rgba(0, 214, 12, 0.08) 45%, transparent 75%),
    radial-gradient(22% 55% at 100% 100%, rgba(81, 153, 254, 0.4) 0%, rgba(81, 153, 254, 0.12) 50%, transparent 80%),
    #0f141c;
  border-color: rgba(255, 255, 255, 0.07);
}
html[data-theme="dark"] .m3x-sent2::before { background: none; }

/* ============ Market Direction: today card + daily trend chart (2026-10-26 d) ============ */
.m3x-dash-head { margin-bottom: clamp(20px, 2.4vw, 32px); }
.m3x-dash-head .m3x-dash-title { margin: 0 !important; }
.m3x-sent2 { grid-template-columns: 1fr !important; align-items: stretch; }
@media (min-width: 1024px) { .m3x-sent2 { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 2fr) !important; } }

/* left card */
.m3x-sent2-score { align-items: stretch; text-align: left; gap: 0; padding: 22px 22px 18px; }
.m3x-sent2-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid rgb(var(--t-ink-rgb) / 0.1); }
.m3x-sent2-icon { flex: none; margin: 0; width: 52px; height: 52px; }
.m3x-sent2-score.is-bullish .m3x-sent2-icon { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.m3x-sent2-score.is-bearish .m3x-sent2-icon { background: rgba(220, 38, 38, 0.12); color: #dc2626; }
.m3x-sent2-headtext { display: grid; gap: 2px; flex: 1; min-width: 0; }
.m3x-sent2-kicker { font-size: 13px; }
.m3x-sent2-label { font-size: 24px; }
.m3x-sent2-percent { font-size: clamp(28px, 2.6vw, 36px); }
.m3x-sent2-score .m3x-sent2-counts li { grid-template-columns: 16px minmax(0, 1fr) auto 46px; gap: 12px; padding: 12px 2px; }
.m3x-sent2-score .m3x-sent2-counts i { width: 14px; height: 14px; border-radius: 4px; }
.m3x-sent2-score .m3x-sent2-counts span { font-size: 15px; }
.m3x-sent2-score .m3x-sent2-counts b { font-size: 18px; }
.m3x-sent2-score .m3x-sent2-counts em { font-size: 14px; }
.m3x-sent2-total { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid rgb(var(--t-ink-rgb) / 0.1); color: rgb(var(--t-ink-rgb) / 0.62); font: 500 13px/1.3 "Inter Tight", sans-serif; }
.m3x-sent2-total b { color: var(--t-ink); font-weight: 700; }

/* trend chart */
.m3x-trend {
  --tr-bull: #16a34a; --tr-bear: #ef4444; --tr-neutral: #94a3b8;
  display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 18px 20px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html[data-theme="dark"] .m3x-trend { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.m3x-trend-cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: var(--t-ink); font: 600 15px/1.3 "Manrope", sans-serif; }
.m3x-trend-cap span { color: rgb(var(--t-ink-rgb) / 0.55); font: 500 13px/1 "Inter Tight", sans-serif; }
.m3x-trend-chart { flex: 1; display: flex; flex-direction: column; min-height: 220px; }
.m3x-trend-plot { position: relative; flex: 1; min-height: 190px; margin-left: 66px; }
.m3x-trend-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m3x-trend-grid { stroke: rgb(var(--t-ink-rgb) / 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.m3x-trend-grid.is-mid { stroke-dasharray: 4 5; stroke: rgb(var(--t-ink-rgb) / 0.14); }
.m3x-trend-svg stop.is-bullish { stop-color: var(--tr-bull); }
.m3x-trend-svg stop.is-bearish { stop-color: var(--tr-bear); }
.m3x-trend-svg stop.is-neutral { stop-color: var(--tr-neutral); }
.m3x-trend-line { fill: none; stroke: url(#m3x-trend-grad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m3x-trend-line.is-flat { stroke-dasharray: 6 6; }
.m3x-trend-area { fill: url(#m3x-trend-grad); opacity: 0.12; }
.m3x-trend-y { position: absolute; left: -66px; transform: translateY(-50%); font: 600 13px/1 "Inter Tight", sans-serif; }
.m3x-trend-y.is-bullish { color: #15803d; }
.m3x-trend-y.is-neutral { color: #64748b; }
.m3x-trend-y.is-bearish { color: #dc2626; }
.m3x-trend-pt {
  position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--tr-neutral); border: 2px solid #ffffff; box-shadow: 0 1px 4px rgba(17, 24, 39, 0.25); cursor: pointer; outline: none;
}
.m3x-trend-pt.is-bullish { background: var(--tr-bull); }
.m3x-trend-pt.is-bearish { background: var(--tr-bear); }
.m3x-trend-pt.is-latest { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #ffffff; border: 4px solid var(--tr-neutral); box-shadow: 0 0 0 6px rgb(148 163 184 / 0.25); }
.m3x-trend-pt.is-latest.is-bullish { border-color: var(--tr-bull); box-shadow: 0 0 0 6px rgb(22 163 74 / 0.2); }
.m3x-trend-pt.is-latest.is-bearish { border-color: var(--tr-bear); box-shadow: 0 0 0 6px rgb(239 68 68 / 0.2); }
.m3x-trend-tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); display: grid; gap: 2px;
  padding: 8px 12px; border-radius: 8px; background: #111827; color: #ffffff; text-align: center; white-space: nowrap;
  font: 600 13px/1.25 "Manrope", sans-serif; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.15s;
}
.m3x-trend-tip small { color: rgba(255, 255, 255, 0.75); font: 500 12px/1.2 "Inter Tight", sans-serif; }
.m3x-trend-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #111827; }
.m3x-trend-pt:hover .m3x-trend-tip, .m3x-trend-pt:focus-visible .m3x-trend-tip { opacity: 1; visibility: visible; }
/* dashed guide down from a hovered point */
.m3x-trend-pt::before { content: ""; position: absolute; left: 50%; top: 100%; width: 0; height: 400px; border-left: 1px dashed rgb(var(--t-ink-rgb) / 0.3); opacity: 0; pointer-events: none; }
.m3x-trend-pt:hover::before, .m3x-trend-pt:focus-visible::before { opacity: 1; }
.m3x-trend-plot { overflow: visible; clip-path: inset(-80px -40px 0 -80px); }
.m3x-trend-xaxis { position: relative; height: 26px; margin-left: 66px; }
.m3x-trend-x { position: absolute; top: 8px; transform: translateX(-50%); color: rgb(var(--t-ink-rgb) / 0.6); font: 500 12.5px/1 "Inter Tight", sans-serif; white-space: nowrap; }
.m3x-trend-note { margin: 6px 0 0; color: rgb(var(--t-ink-rgb) / 0.55); font: 400 13px/1.4 "Inter Tight", sans-serif; }
.m3x-trend-note[hidden] { display: none; }
@media (max-width: 639.98px) {
  .m3x-trend-plot, .m3x-trend-xaxis { margin-left: 56px; }
  .m3x-trend-y { left: -56px; font-size: 12px; }
  .m3x-trend-x { font-size: 11px; }
}
@media (max-width: 639.98px) { .m3x-trend-x:nth-child(even) { display: none; } }
.m3x-sent2-score .m3x-sent2-counts { align-self: stretch; width: 100%; }

/* ---- 2026-10-26 (e): tighter banner - less padding, smaller gap, smaller corner radius; "Last updated" line ---- */
.m3x-sent2 { padding: 16px !important; gap: 16px !important; border-radius: 12px !important; }
.m3x-sent2-score, .m3x-trend { border-radius: 8px !important; }
.m3x-sent2-score { padding: 18px 18px 14px !important; }
.m3x-trend { padding: 16px 18px 12px !important; }
.m3x-sent2-icon { border-radius: 8px; }
.m3x-trend-note { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: rgb(var(--t-ink-rgb) / 0.62); font: 500 13px/1.4 "Inter Tight", sans-serif; }
.m3x-trend-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / 0.18); }

/* ---- 2026-10-28: plain section - no banner background or grain, simply bordered cards, bolder type ---- */
.m3x-dash-head { margin-bottom: clamp(32px, 3.4vw, 48px) !important; }
.m3x-dash-head .m3x-dash-title, .m3x-dash-head .m3x-dash-title * { font-weight: 700 !important; }
.m3x-sent2, html[data-theme="dark"] .m3x-sent2 { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow: visible; }
.m3x-sent2::before, .m3x-sent2::after { display: none !important; }
.m3x-sent2-score, .m3x-trend {
  background: var(--t-surface) !important; border: 1px solid rgb(var(--t-ink-rgb) / 0.12) !important;
  box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
/* weight 700 for the text that was 500 */
.m3x-sent2 .m3x-sent2-kicker, .m3x-sent2 .m3x-sent2-counts span, .m3x-sent2 .m3x-sent2-total,
.m3x-sent2 .m3x-trend-cap, .m3x-sent2 .m3x-trend-cap span, .m3x-sent2 .m3x-trend-x, .m3x-sent2 .m3x-trend-note,
.m3x-sent2 .m3x-trend-y, .m3x-sent2 .m3x-sent2-counts em { font-weight: 700 !important; }


/* ---- 2026-10-30: "i" button on the trend card with the active indicators and their values ---- */
.m3x-trend-cap { align-items: center; }
.m3x-trend-meta { display: inline-flex; align-items: center; gap: 8px; }
.m3x-ind { position: relative; display: inline-flex; }
.m3x-ind-btn {
  display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 1px solid rgb(var(--t-ink-rgb) / 0.14); border-radius: 50%; background: var(--t-surface);
  color: rgb(var(--t-ink-rgb) / 0.66); cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.m3x-ind-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m3x-ind-btn:hover, .m3x-ind.is-open .m3x-ind-btn { border-color: rgb(var(--t-ink-rgb) / 0.3); color: var(--t-ink); }
.m3x-ind-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.m3x-ind-pop {
  position: absolute; top: calc(100% + 10px); right: -6px; z-index: 20; width: min(300px, 78vw);
  padding: 14px 14px 12px; border: 1px solid rgb(var(--t-ink-rgb) / 0.1); border-radius: 10px;
  background: var(--t-surface); box-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.32);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.m3x-ind-pop::before { /* small arrow pointing at the button */
  content: ""; position: absolute; top: -6px; right: 14px; width: 10px; height: 10px;
  border-top: 1px solid rgb(var(--t-ink-rgb) / 0.1); border-left: 1px solid rgb(var(--t-ink-rgb) / 0.1);
  background: var(--t-surface); transform: rotate(45deg);
}
.m3x-ind:hover .m3x-ind-pop, .m3x-ind:focus-within .m3x-ind-pop, .m3x-ind.is-open .m3x-ind-pop { opacity: 1; visibility: visible; transform: none; }
.m3x-ind-title { margin: 0 0 8px; color: var(--t-ink); font: 700 14px/1.3 "Manrope", sans-serif; }
.m3x-ind-list { display: grid; max-height: 296px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.m3x-ind-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgb(var(--t-ink-rgb) / 0.07); }
.m3x-ind-list li:first-child { border-top: 0; }
.m3x-ind-list strong { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--t-ink); font: 500 13.5px/1.35 "Inter Tight", sans-serif; }
.m3x-ind-list strong::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.m3x-ind-list b { flex: none; min-width: 32px; padding: 2px 7px; border-radius: 5px; background: rgba(100, 116, 139, 0.12); color: #475569; font: 700 12.5px/1.4 "IBM Plex Mono", monospace; text-align: center; }
.m3x-ind-list .is-bullish strong::before { background: #16a34a; }
.m3x-ind-list .is-bullish b { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.m3x-ind-list .is-bearish strong::before { background: #dc2626; }
.m3x-ind-list .is-bearish b { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.m3x-ind-list .is-empty { color: rgb(var(--t-ink-rgb) / 0.66); font: 500 13px/1.4 "Inter Tight", sans-serif; }
.m3x-ind-key { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgb(var(--t-ink-rgb) / 0.07); color: rgb(var(--t-ink-rgb) / 0.66); font: 500 12px/1.3 "Inter Tight", sans-serif; }
html[data-theme="dark"] .m3x-ind-pop { box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7); }
html[data-theme="dark"] .m3x-ind-list .is-bullish b { color: #4ade80; }
html[data-theme="dark"] .m3x-ind-list .is-bearish b { color: #f87171; }
html[data-theme="dark"] .m3x-ind-list b { color: #cbd5e1; }
@media (prefers-reduced-motion: reduce) { .m3x-ind-pop, .m3x-ind-btn { transition: none; } }
/* the popover may reach past the banner's edge: no clipping (the decorative layers keep the rounded corners) */
.m3x-sent2 { overflow: visible; }
.m3x-sent2::before, .m3x-sent2::after { border-radius: inherit; }
.m3x-sent2 .m3x-trend:has(.m3x-ind:hover, .m3x-ind:focus-within, .m3x-ind.is-open) { z-index: 30; }
/* the banner's section must not clip the popover either */
#m3x-after-hero { overflow: visible; }
/* ...and must sit above the sections after it, which have their own backgrounds, so the open popover isn't covered */
#m3x-after-hero { position: relative; z-index: 10; }
