/* Learn (web/learn.js): the study room (body.study) plus charts and the option chain. Colours only from tokens:
   calls indigo (--arcade-accent), puts teal (--qt-teal), forwards and fitted lines gold (--gold-deep), trades green
   for buyers and red for sellers, orange (--arcade-close) for what sits off a line. */


/* the shell: modules on the left (a fold-out list on phones), the lesson on the right */
.ln-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.ln-body { min-width: 0; }
.ln-side { font-size: .9rem; }
.ln-side-back { display: inline-block; font-size: .85rem; text-decoration: none; color: var(--arcade-accent); margin: .2rem 0 .5rem; }
.ln-side-title { display: block; font-weight: 700; font-size: 1.02rem; text-decoration: none; color: var(--head); margin: 0 0 .5rem; padding: .3rem .5rem;
  border-radius: 8px; }
.ln-side-title[aria-current="page"] { background: color-mix(in srgb, var(--arcade-accent) 13%, transparent); }
.ln-side-list { display: none; }
.ln-side-fold { border: 1px solid rgb(var(--line-rgb) / .22); border-radius: 12px; padding: .55rem .8rem; }
.ln-side-fold summary { cursor: pointer; font-weight: 600; color: var(--head); }
.ln-side-fold[open] summary { margin-bottom: .4rem; }
.ln-side-topic { margin: .7rem 0 .2rem; }
.ln-side-h { margin: 0 0 .25rem; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--arcade-muted); }
.ln-side ol { list-style: none; padding: 0; margin: 0; }
.ln-side li a { display: flex; gap: .55rem; align-items: baseline; padding: .38rem .5rem; border-radius: 8px; text-decoration: none;
  color: var(--study-ink); line-height: 1.35; }
.ln-side li a:hover { background: rgb(var(--hl) / .05); }
.ln-side li a[aria-current="page"] { background: color-mix(in srgb, var(--arcade-accent) 13%, transparent); color: var(--head); font-weight: 600; }
.ln-side li a.is-locked { color: var(--arcade-faint); }
.ln-side li a .ln-lock { margin-left: auto; flex: none; align-self: center; }
.ln-side-no { flex: none; width: 1.2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--arcade-faint); font-size: .8rem; }
.ln-soon { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: 0; padding: .05rem .4rem; border-radius: 99px;
  background: color-mix(in srgb, var(--gold-deep) 16%, transparent); color: var(--gold-soft); vertical-align: middle; }
@media (min-width: 1000px) {
  .ln-shell { grid-template-columns: 250px minmax(0, 1fr); gap: 2.2rem; align-items: start; }
  .ln-side { position: sticky; top: calc(var(--ln-top, 0px) + 1rem); max-height: calc(100vh - var(--ln-top, 0px) - 2rem); overflow-y: auto;
    padding-right: .4rem; scrollbar-width: thin; }
  .ln-side-fold { display: none; }
  .ln-side-list { display: block; }
}

/* topics on the overview */
.ln-topic { margin: 2rem 0; }
.ln-topic-head { display: flex; align-items: center; gap: .7rem; }
.ln-topic-head h2 { margin: 0; }
.ln-topic > p { margin: .3rem 0 .8rem; max-width: 46rem; }
.ln-topic-notify { margin-top: .8rem; }

/* locked modules and "tell me when it's ready" */
.ln-lock { vertical-align: -1px; }
.ln-locked-tag { display: inline-flex; gap: .35rem; align-items: center; margin: 0 0 .4rem; font-size: .82rem; font-weight: 600; color: var(--gold-soft); }
.ln-notify { max-width: 34rem; padding: 1rem 1.1rem; border-radius: 12px; margin: 1rem 0;
  border: 1px solid color-mix(in srgb, var(--arcade-accent) 30%, transparent); background: color-mix(in srgb, var(--arcade-accent) 5%, transparent); }
.ln-notify p { margin: 0 0 .5rem; line-height: 1.5; }
.ln-notify-h { font-weight: 700; color: var(--head); }
.ln-notify-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.ln-notify-row input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: .55rem .7rem; border-radius: 9px;
  border: 1px solid rgb(var(--line-rgb) / .35); background: var(--study); color: var(--study-ink); }
.ln-notify-row .btn { flex: none; }
.ln-notify-err { color: var(--arcade-miss); font-size: .88rem; margin: .5rem 0 0 !important; }
.ln-notify.is-done p { margin: 0; }
.ln-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ln-head { margin: .4rem 0 1.2rem; }
.ln-head h1 { margin: 0 0 .5rem; }
.ln-head .lede { max-width: 46rem; margin: 0; }
.ln-page .crumbs { font-size: .85rem; margin: .25rem 0 .6rem; }
.ln-section { margin: 2.2rem 0; }
.ln-section h2 { margin: 0 0 .5rem; }
.ln-section h3 { margin: 1.6rem 0 .25rem; font-size: 1rem; }
.ln-section > p { max-width: 46rem; line-height: 1.6; }
.ln-formula { font-family: "Newsreader", Georgia, serif; font-size: 1.5rem; text-align: center; margin: 1rem 0; color: var(--head); }
.ln-source { font-size: .8rem; margin-top: 1rem; }
.ln-flag { flex-basis: 100%; margin: .2rem 0 0; color: var(--arcade-close); font-size: .9rem; }

/* home */
.ln-modules { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ln-module { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px; text-decoration: none; color: inherit;
  border: 1px solid rgb(var(--line-rgb) / .22); background: rgb(var(--hl) / .02); }
a.ln-module:hover { border-color: var(--arcade-accent); background: rgb(var(--hl) / .04); }
.ln-module > span:last-child { display: flex; flex-direction: column; gap: .2rem; }
.ln-module strong { color: var(--head); font-size: 1.02rem; }
.ln-module em { font-style: normal; font-size: .8rem; color: var(--arcade-faint); }
.ln-module.is-next { opacity: .72; }
.ln-no { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: color-mix(in srgb, var(--arcade-accent) 14%, transparent); color: var(--arcade-accent); }
.is-next .ln-no { background: rgb(var(--hl) / .06); color: var(--arcade-faint); }
.ln-days { margin-top: 1.5rem; }
.ln-days summary { cursor: pointer; color: var(--arcade-accent); }
.ln-days ul { padding-left: 1.1rem; line-height: 1.7; }

/* controls */
.ln-controls { display: flex; flex-direction: column; gap: .6rem; padding: .8rem; border-radius: 12px; margin: .8rem 0;
  border: 1px solid rgb(var(--line-rgb) / .2); background: var(--study); }
.ln-sticky { box-shadow: 0 6px 18px -14px rgb(var(--hl) / .5); }
/* Keeps the day, expiry and time in reach while reading; on phones it would cover the charts, so it scrolls away. */
@media (min-width: 760px) and (min-height: 640px) { .ln-sticky { position: sticky; top: var(--ln-top, 0px); z-index: 5; } }
.ln-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.ln-seg { display: inline-flex; border: 1px solid rgb(var(--line-rgb) / .3); border-radius: 9px; overflow: hidden; }
.ln-seg button { border: 0; background: transparent; color: var(--study-ink); padding: .4rem .85rem; font: inherit; font-weight: 600; cursor: pointer; }
.ln-seg button[aria-pressed="true"] { background: var(--arcade-accent); color: var(--accent-ink); }
.ln-pick { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; }
.ln-pick select { font: inherit; padding: .35rem .5rem; border-radius: 8px; border: 1px solid rgb(var(--line-rgb) / .3);
  background: var(--study); color: var(--study-ink); }
.ln-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .15rem; }
.ln-chips button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; padding: .35rem .7rem;
  border-radius: 9px; border: 1px solid rgb(var(--line-rgb) / .3); background: transparent; color: var(--study-ink); font: inherit;
  font-weight: 600; font-size: .88rem; cursor: pointer; }
.ln-chips button small { font-weight: 400; font-size: .74rem; color: var(--arcade-faint); }
.ln-chips button[aria-pressed="true"] { border-color: var(--arcade-accent); background: color-mix(in srgb, var(--arcade-accent) 12%, transparent); }
.ln-time { display: flex; align-items: center; gap: .6rem; }
.ln-time input[type=range] { flex: 1; accent-color: var(--arcade-accent); min-width: 0; }
.ln-time output { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 3.2rem; text-align: right; color: var(--head); }
.ln-st output { min-width: 7.5rem; }
.ln-play { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--arcade-accent); color: var(--accent-ink);
  cursor: pointer; font-size: .8rem; flex: none; }

/* readouts and notes */
.ln-readout { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: .4rem 0 .8rem; }
.ln-readout > div { display: flex; flex-direction: column; }
.ln-readout span { font-size: .78rem; }
.ln-readout strong { font-size: 1.15rem; color: var(--head); font-variant-numeric: tabular-nums; }
.ln-readout small { font-size: .75rem; }
.ln-insights ul { margin: .6rem 0; padding-left: 1.1rem; line-height: 1.6; max-width: 48rem; }
.ln-insights li { margin: .3rem 0; }
.ln-explain ul { line-height: 1.6; max-width: 48rem; padding-left: 1.1rem; }
.ln-explain li { margin: .45rem 0; }
.ln-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .8rem; color: var(--arcade-muted); margin: .3rem 0 0; }
.ln-legend i { display: inline-block; width: .9rem; height: .3rem; border-radius: 2px; margin-right: .35rem; vertical-align: middle; background: currentColor; }
.ln-legend .k-call { color: var(--arcade-accent); } .ln-legend .k-put { color: var(--qt-teal); }
.ln-legend .k-fwd { color: var(--gold-deep); } .ln-legend .k-fut { color: var(--arcade-soft); }
.ln-legend .k-band { color: rgb(var(--line-rgb) / .45); height: .6rem; } .ln-legend .k-mid { color: var(--arcade-muted); width: .4rem; height: .4rem; border-radius: 50%; }
.ln-legend .k-buy { color: var(--arcade-good); width: .5rem; height: .5rem; border-radius: 50%; }
.ln-legend .k-sell { color: var(--arcade-miss); width: .5rem; height: .5rem; border-radius: 50%; }
.ln-legend .k-off { color: var(--arcade-close); } .ln-legend .k-rate { color: var(--arcade-accent); width: .5rem; height: .5rem; border-radius: 50%; }
.ln-legend .k-short { color: var(--arcade-dimmer); width: .5rem; height: .5rem; border-radius: 50%; }

/* the chain */
.ln-tablebar { display: flex; gap: 1.2rem; margin: .5rem 0 .3rem; font-size: .88rem; }
.ln-toggle { display: inline-flex; gap: .35rem; align-items: center; cursor: pointer; }
.ln-toggle input { accent-color: var(--arcade-accent); }
.ln-tablewrap { overflow-x: auto; border: 1px solid rgb(var(--line-rgb) / .2); border-radius: 12px; }
.ln-chain { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .86rem; }
.ln-chain th, .ln-chain td { padding: .32rem .5rem; text-align: right; white-space: nowrap; border-bottom: 1px solid rgb(var(--line-rgb) / .1); }
.ln-chain thead th { font-weight: 600; color: var(--arcade-muted); font-size: .76rem; background: rgb(var(--hl) / .03); }
.ln-chain thead th.side { text-align: center; color: var(--head); font-size: .85rem; }
.ln-chain tbody th { text-align: center; font-weight: 700; color: var(--head); background: rgb(var(--hl) / .04); }
.ln-chain td.itm { background-color: color-mix(in srgb, var(--arcade-accent) 6%, transparent); }
.ln-chain td.pxc { cursor: pointer; font-weight: 600; color: var(--study-ink); }
.ln-chain td.pxc:hover { outline: 2px solid var(--arcade-accent); outline-offset: -2px; }
.ln-chain td.sz, .ln-chain td.w { color: var(--arcade-faint); }
.ln-chain tr.is-atm th { box-shadow: inset 3px 0 0 var(--gold-deep), inset -3px 0 0 var(--gold-deep); }
.ln-chain tr.is-picked td, .ln-chain tr.is-picked th { background: color-mix(in srgb, var(--arcade-accent) 16%, transparent); }
.ln-tablehint { font-size: .8rem; padding: .4rem .7rem; margin: 0; }
@media (max-width: 720px) {
  .ln-chain .w { display: none; }
}
@media (max-width: 520px) {
  .ln-chain .sz { display: none; }
  .ln-chain th, .ln-chain td { padding: .3rem .35rem; }
}

/* the detail panel */
.ln-detail { margin: 1rem 0; padding: 1rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--arcade-accent) 35%, transparent); }
.ln-detail-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.ln-detail-head h2 { margin: 0; font-size: 1.15rem; flex: 1 1 14rem; }
.ln-close { margin-left: auto; font: inherit; font-size: .85rem; padding: .35rem .8rem; border-radius: 8px; cursor: pointer;
  border: 1px solid rgb(var(--line-rgb) / .3); background: transparent; color: var(--study-ink); }
.ln-close:hover { border-color: var(--arcade-accent); }

/* charts */
.ln-chart { position: relative; width: 100%; margin: .4rem 0; }
.ln-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.ln-svg text { font: 11px Inter, system-ui, sans-serif; }
.ln-tick { fill: var(--arcade-faint); }
.ln-label { fill: var(--arcade-muted); font-size: 11.5px; }
.ln-vlabel { fill: var(--gold-deep); font-weight: 700; }
.ln-grid { stroke: rgb(var(--line-rgb) / .14); }
.ln-axis { stroke: rgb(var(--line-rgb) / .45); }
.ln-hit { fill: transparent; cursor: crosshair; }
.ln-cursor { stroke: rgb(var(--line-rgb) / .5); stroke-dasharray: 3 3; }
.ln-tip { position: absolute; pointer-events: none; z-index: 3; padding: .45rem .6rem; border-radius: 8px; font-size: .8rem; line-height: 1.45;
  background: var(--study); color: var(--study-ink); border: 1px solid rgb(var(--line-rgb) / .3); box-shadow: var(--stage-shadow);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln-svg path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.k-call { stroke: var(--arcade-accent); } .k-put { stroke: var(--qt-teal); }
.k-call-d { fill: var(--arcade-accent); } .k-put-d { fill: var(--qt-teal); } .k-fwd-d { fill: var(--gold-deep); }
.k-call-b { fill: color-mix(in srgb, var(--arcade-accent) 70%, transparent); } .k-put-b { fill: color-mix(in srgb, var(--qt-teal) 70%, transparent); }
line.k-fwd, path.k-fwd { stroke: var(--gold-deep); stroke-width: 2; }
line.k-fwd { stroke-dasharray: 5 4; }
path.k-fut { stroke: var(--arcade-soft); stroke-width: 1.5; }
line.k-now { stroke: var(--arcade-accent); stroke-width: 1.5; stroke-dasharray: 2 3; }
path.k-band { fill: rgb(var(--line-rgb) / .2); stroke: none; }
line.k-band { stroke: rgb(var(--line-rgb) / .25); stroke-width: 1; }
line.k-band-s { stroke: rgb(var(--line-rgb) / .55); stroke-width: 3; stroke-linecap: round; }
line.k-off { stroke: var(--arcade-close); stroke-width: 3; stroke-linecap: round; }
path.k-mid-l { stroke: var(--arcade-muted); stroke-width: 1.2; }
circle.k-mid { fill: var(--arcade-muted); }
circle.k-buy { fill: color-mix(in srgb, var(--arcade-good) 75%, transparent); }
circle.k-sell { fill: color-mix(in srgb, var(--arcade-miss) 75%, transparent); }
circle.k-call-f { fill: color-mix(in srgb, var(--arcade-accent) 35%, transparent); }
circle.k-put-f { fill: color-mix(in srgb, var(--qt-teal) 35%, transparent); }
path.k-sum { stroke: color-mix(in srgb, var(--gold-deep) 45%, transparent); stroke-width: 9; stroke-linecap: round; }
.ln-legend .k-sum { color: color-mix(in srgb, var(--gold-deep) 55%, transparent); height: .5rem; }
circle.k-rate { fill: var(--arcade-accent); } circle.k-short { fill: var(--arcade-dimmer); }
path.k-rate-l { stroke: var(--arcade-accent); stroke-width: 1.5; }
.ln-small { margin-top: -.2rem; }

/* modules 2 and 3 */
.ln-steps { margin: .6rem 0; }
.ln-steps summary { cursor: pointer; color: var(--arcade-accent); }
.ln-bisect { line-height: 1.6; padding-left: 1.3rem; font-variant-numeric: tabular-nums; }
.ln-tl { min-width: 2.6rem; }
.ln-surfacewrap { overflow-x: auto; border: 1px solid rgb(var(--line-rgb) / .2); border-radius: 12px; }
.ln-surface { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .82rem; }
.ln-surface th, .ln-surface td { padding: .32rem .45rem; text-align: center; white-space: nowrap; border-bottom: 1px solid rgb(var(--line-rgb) / .08); }
.ln-surface thead th { font-size: .74rem; color: var(--arcade-muted); font-weight: 600; }
.ln-surface tbody th { text-align: left; font-weight: 600; color: var(--head); }
.ln-surface tbody th small { margin-left: .35rem; font-weight: 400; color: var(--arcade-faint); }
.ln-surface td { color: var(--head); }
rect.k-wf-up { fill: color-mix(in srgb, var(--arcade-good) 75%, transparent); }
rect.k-wf-down { fill: color-mix(in srgb, var(--arcade-miss) 70%, transparent); }
rect.k-wf-total { fill: var(--arcade-accent); }
rect.k-wf-real { fill: var(--gold-deep); }
rect.k-wf-miss { fill: rgb(var(--line-rgb) / .55); }
path.k-fwd-l { stroke: var(--gold-deep); stroke-width: 2; }
.ln-legend .k-fwd-l { color: var(--gold-deep); }
.ln-legend .k-put-d { color: var(--qt-teal); width: .5rem; height: .5rem; border-radius: 50%; }
.ln-legend .k-call-d { color: var(--arcade-accent); width: .5rem; height: .5rem; border-radius: 50%; }

/* Learn home: one block per topic */
.ln-home-head { max-width: 46rem; }
.ln-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.4rem 0 2rem; }
.ln-topiccard { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem 1.25rem; border-radius: 14px; text-decoration: none; color: inherit;
  border: 1px solid rgb(var(--line-rgb) / .22); background: rgb(var(--hl) / .02); transition: border-color .15s, transform .15s; }
.ln-topiccard:hover { border-color: var(--arcade-accent); transform: translateY(-2px); }
.ln-topiccard strong { font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; font-weight: 600; color: var(--head); line-height: 1.25; }
.ln-topiccard .muted { line-height: 1.5; font-size: .92rem; flex: 1; }
.ln-topiccard-tag { font-size: .78rem; color: var(--arcade-muted); display: flex; gap: .45rem; align-items: center; }
.ln-topiccard-go { font-weight: 600; font-size: .9rem; color: var(--arcade-accent); }
.ln-topiccard.is-soon .ln-topiccard-go { color: var(--arcade-muted); }
.ln-live { display: inline-block; font-size: .68rem; font-weight: 600; padding: .05rem .45rem; border-radius: 99px;
  background: color-mix(in srgb, var(--arcade-good) 16%, transparent); color: var(--good-pale); }
#ln-topic-notify { margin-bottom: 1.2rem; }

/* progress */
.ln-progress { display: flex; align-items: center; gap: .6rem; margin: .7rem 0 0; font-size: .8rem; color: var(--arcade-muted); }
.ln-progress-bar { flex: 1; max-width: 18rem; height: .45rem; border-radius: 99px; background: rgb(var(--hl) / .08); overflow: hidden; }
.ln-progress-bar i { display: block; height: 100%; border-radius: 99px; background: var(--arcade-accent); min-width: 0; transition: width .3s; }
.ln-progress-txt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln-progress.is-compact { margin: -.2rem .5rem .6rem; }
.ln-side li a.is-done .ln-side-no { font-size: 0; }
.ln-side li a.is-done .ln-side-no::after { content: "✓"; font-size: .85rem; color: var(--arcade-good); font-weight: 700; }
.ln-side li a.is-started .ln-side-no { color: var(--arcade-accent); }
.ln-module.is-done .ln-no { background: color-mix(in srgb, var(--arcade-good) 18%, transparent); color: var(--good-pale); }

/* the sign-up gate */
.ln-gate { max-width: 40rem; margin: 1rem 0 3rem; }
.ln-gate h1 { margin: .2rem 0 .5rem; }
.ln-gate-list { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: grid; gap: .35rem; }
.ln-gate-list li { display: flex; gap: .5rem; align-items: baseline; }
.ln-gate-note { font-size: .85rem; margin-top: .8rem; }

/* Where the index is at the chosen time: a small reference line under time controls. */
.ln-spot { margin: .35rem 0 0; font-size: .9rem; color: var(--arcade-muted); font-variant-numeric: tabular-nums; }
.ln-spot strong { color: var(--head); font-size: 1rem; }
.ln-spot:empty { display: none; }

/* Learn home: who each module is for (Essentials / Trading / Quant). */
#ln-tags { margin-top: .9rem; }
#ln-tags .ln-seg { flex-wrap: wrap; }
.ln-tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; border: 1px solid currentColor; line-height: 1.5; }
.ln-tag-essentials { color: var(--arcade-accent); }
.ln-tag-trading { color: var(--gold-soft); }
.ln-tag-quant { color: var(--qt-teal); }
.ln-tags-row { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .15rem; }
.ln-tag-about { margin: 0 0 1rem; line-height: 1.6; }
.ln-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; align-items: start; }
.ln-pick { display: block; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgb(var(--line-rgb) / .25); background: rgb(var(--hl) / .02); }
.ln-pick h2 { font-family: "Newsreader", Georgia, serif; font-size: 1.15rem; margin: 0 0 .5rem; }
.ln-pick h2 a { color: var(--head); text-decoration: none; }
.ln-pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.ln-pick-list a { display: flex; gap: .6rem; align-items: baseline; padding: .3rem .2rem; border-radius: 8px; color: inherit; text-decoration: none; }
.ln-pick-list a:hover { background: rgb(var(--hl) / .06); }
.ln-pick-list .ln-no { width: 1.6rem; height: 1.6rem; font-size: .75rem; }
.ln-pick-list a.is-next { opacity: .7; }
.ln-else { font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; margin: 0 0 .8rem; }
[data-theme="dark"] .ln-tag-trading { color: var(--gold-pale-2); }

/* ratings (web/learn.js rateCard / askFor; app/learn/feedback.py): gold stars, the end-of-module card and the corner card */
.ln-rate { margin: 2.5rem 0 1.5rem; padding: 1.2rem 1.3rem 1.1rem; border: 1px solid rgb(var(--line-rgb) / .22); border-radius: 14px;
  background: color-mix(in srgb, var(--gold-deep) 5%, transparent); }
.ln-rate h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.ln-rate > p { margin: 0 0 .8rem; }
.ln-stars { display: flex; align-items: center; gap: .15rem; margin: 0 0 .7rem; }
.ln-star { position: relative; cursor: pointer; font-size: 1.85rem; line-height: 1; padding: .1rem; color: rgb(var(--line-rgb) / .35);
  transition: color .12s, transform .12s; }
.ln-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ln-star.is-on { color: var(--gold-deep); }
.ln-star:hover { transform: scale(1.12); }
.ln-star:has(input:focus-visible) { outline: 2px solid var(--arcade-accent); outline-offset: 2px; border-radius: 6px; }
.ln-stars-say { margin-left: .6rem; font-size: .9rem; color: var(--gold-soft); font-weight: 600; }
.ln-rate-say { display: block; }
.ln-rate-say textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 2.8rem; font: inherit; font-size: .95rem;
  padding: .55rem .7rem; border-radius: 10px; border: 1px solid rgb(var(--line-rgb) / .3); background: var(--study); color: var(--study-ink); }
.ln-rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .7rem; }
.ln-ask { position: fixed; z-index: 40; right: 1rem; bottom: 1rem; width: min(22rem, calc(100vw - 2rem)); box-sizing: border-box;
  padding: 1rem 1.1rem .95rem; border-radius: 14px; background: var(--study); color: var(--study-ink);
  border: 1px solid rgb(var(--line-rgb) / .25); box-shadow: var(--stage-shadow); animation: ln-ask-in .25s ease-out; }
.ln-ask h2 { margin: 0 0 .6rem; font-size: 1.05rem; padding-right: 1.5rem; }
.ln-ask-k { margin: 0 0 .15rem; font-size: .8rem; color: var(--arcade-muted); }
.ln-ask .ln-star { font-size: 1.6rem; }
.ln-ask-x { position: absolute; top: .45rem; right: .55rem; border: 0; background: none; font-size: 1.35rem; line-height: 1; cursor: pointer;
  color: var(--arcade-muted); padding: .2rem .4rem; border-radius: 6px; }
.ln-ask-x:hover { color: var(--head); }
.ln-ask-done { margin: .2rem 0; font-weight: 600; color: var(--head); }
@keyframes ln-ask-in { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .ln-ask { right: .75rem; left: .75rem; bottom: .75rem; width: auto; } }
@media (prefers-reduced-motion: reduce) { .ln-ask { animation: none; } .ln-star { transition: none; } .ln-star:hover { transform: none; } }
