.dex-lesson { --dex-positive: #62dfb2; --dex-negative: #fb8599; }
.dex-formula { display: grid; gap: .65rem; padding: 1.15rem; margin: 1.2rem 0; border: 1px solid #3c495f; border-left: 3px solid #70d7e1; border-radius: 0 14px 14px 0; background: linear-gradient(120deg,#14232d,#161b2b); }
.dex-formula > span { color: #9cdae2; font-size: .78rem; font-weight: 700; }
.dex-formula code { width: fit-content; max-width: 100%; }
.dex-comparison { margin: 1.4rem 0; padding: 1.2rem; border: 1px solid #41475e; border-radius: 18px; background: linear-gradient(145deg,#162333,#1c1830); }
.dex-comparison > header > span { color: #aebde0; font-size: .76rem; letter-spacing: .03em; font-weight: 700; }
body[data-section="learn"] .dex-comparison > header h3 { margin: .45rem 0; font-size: 1.25rem; color: #f2f3fc; }
body[data-section="learn"] .dex-comparison > header p { margin: .3rem 0 1.2rem; color: #b9c5d9; font-size: .87rem; }
.dex-plots { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.dex-plot { min-width: 0; border: 1px solid #3b455c; border-top: 3px solid #74d6df; border-radius: 12px; padding: .9rem .7rem; background: rgba(10,16,28,.72); }
.dex-plot-gex { border-top-color: #c1a7ff; }
.dex-plot h4 { margin: 0; color: #99e7ed; font-size: .96rem; }
.dex-plot-gex h4 { color: #d1baff; }
body[data-section="learn"] .dex-plot > p { margin: .25rem 0 .8rem; font-size: .73rem; color: #b5c1d7; }
.dex-axis { display: flex; justify-content: space-between; margin: 0 4.3rem .2rem 4.25rem; font: .63rem var(--mono); color: #aab8ce; }
.dex-plot ol { margin: 0; padding: 0; list-style: none; }
.dex-plot li { display: grid; grid-template-columns: 3.75rem minmax(0,1fr) 3.8rem; gap: .5rem; align-items: center; min-height: 2.8rem; margin: 0 !important; font-size: .8rem; }
.dex-strike { display: flex; align-items: center; gap: .35rem; color: #dce3f0; }
.dex-strike b { font-weight: 500; }
.dex-strike small { border: 1px solid #796534; border-radius: 4px; padding: .05rem .15rem; color: #ffdf87; font-size: .57rem; font-weight: 800; }
.dex-track { position: relative; display: block; height: 2.8rem; border-bottom: 1px solid rgba(159,179,214,.08); background: linear-gradient(90deg,transparent calc(50% - .5px),#8995ad calc(50% - .5px),#8995ad calc(50% + .5px),transparent calc(50% + .5px)); }
.dex-track i { position: absolute; display: block; top: .7rem; height: 1.35rem; border-radius: 3px; }
.dex-positive { background: linear-gradient(90deg,#229a79,var(--dex-positive)); }
.dex-negative { background: linear-gradient(90deg,var(--dex-negative),#ad405d); }
.dex-plot li > strong { text-align: right; color: #e8edf7; font: .77rem var(--mono); }
.dex-observation { display: grid; gap: .25rem; margin: 1rem 0 .8rem; padding: .85rem; border: 1px solid #69613d; border-left: 3px solid #edd183; border-radius: 0 10px 10px 0; background: rgba(223,187,96,.07); }
.dex-observation strong { color: #f6dfa4; font-size: .87rem; }
.dex-observation > span { color: #c3cddd; font-size: .83rem; }
.dex-comparison figcaption { color: #b4bfd3; font-size: .8rem; line-height: 1.6; }
.dex-inputs { margin: 1rem 0 1.5rem; padding: .9rem 1rem; border: 1px solid #3b4356; border-radius: 12px; background: #121a28; }
.dex-inputs summary { color: #bfe7ec; cursor: pointer; font-size: .9rem; font-weight: 700; }
.dex-inputs summary:focus-visible { outline: 2px solid #82e3e8; outline-offset: 5px; border-radius: 3px; }
body[data-section="learn"] .dex-inputs p { color: #bcc7dc; font-size: .88rem; }
@media(max-width:1000px) {
  .dex-plots { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:600px) {
  .dex-comparison { padding: .9rem .75rem; }
  .dex-formula { padding: .9rem; }
}
