/* Earnings dashboard -- scoped to .earn, built on admin.css's variables.
   Colour carries meaning: what was earned is green, what was lost is red, and nothing else is
   either (20261016bc) -- the net too, by its sign. Arbitrage blue, carry purple, forex slate (it
   was pink, which read as a loss); the brand amber marks what is selected. Money uses tabular
   figures. */
.earn{display:grid;gap:20px;container:earn / inline-size}
.earn .is-gain{color:var(--t-good)}
.earn .is-loss{color:var(--t-bad)}
.earn .is-flat{color:var(--t-ink-2)}
.earn-status, .earn-empty, .earn-basis{margin:0;color:var(--t-ink-2);font-size:17px}
.earn-empty{padding:20px 24px}
.earn-basis{max-width:78ch;font-size:17px}
.earn-note{color:var(--t-ink-2);font-size:17px}
.earn-switch{display:inline-flex;flex-wrap:wrap;max-width:100%;gap:4px;padding:4px;border:1px solid var(--t-line-strong);border-radius:12px;background:var(--t-page)}
.earn-switch__option{min-height:44px;padding:0 16px;border:0;border-radius:8px;background:transparent;color:var(--t-ink);font-size:17px;font-weight:750;cursor:pointer}
.earn-switch__option:hover{background:var(--t-surface-3)}
.earn-switch__option[aria-pressed="true"]{background:var(--t-brand);color:var(--t-on-brand)}
.earn-switch__option:focus-visible, .earn-more:focus-visible{outline:3px solid var(--t-focus);outline-offset:2px}
/* the net, and how it was made */
.earn-hero{position:relative;display:grid;grid-template-columns:1fr;gap:20px;padding:30px 26px 20px}
/* the net's own colour along the top of its panel: green when it is up, red when it is down */
.earn-hero::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;border-radius:calc(var(--t-radius) - 1px) calc(var(--t-radius) - 1px) 0 0;background:var(--t-brand)}
.earn-hero:has(.earn-net.is-gain)::before{background:var(--t-good-fill)}
.earn-hero:has(.earn-net.is-loss)::before{background:var(--t-bad-fill)}
.earn-hero__figure{display:grid;grid-template-columns:minmax(240px, 320px) minmax(0, 1fr);grid-template-rows:auto auto 1fr;align-items:start;gap:10px 32px;min-width:0}
.earn-label{color:var(--t-ink-2);font-size:17px;font-weight:650}
.earn-net{font-size:clamp(40px, 4.6vw, 58px);font-weight:800;line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.earn-split{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:12px;margin:0}
.earn-split > div{padding:12px 14px;border:1px solid var(--t-line);border-radius:10px}
.earn-split > div:first-child{box-shadow:inset 5px 0 0 var(--t-info-fill)}
.earn-split > div:nth-child(2){box-shadow:inset 5px 0 0 var(--t-violet-fill)}
.earn-split > div:nth-child(3){box-shadow:inset 5px 0 0 var(--t-line-strong)}
.earn-split dt{color:var(--t-ink-2);font-size:17px}
.earn-split dd{margin:4px 0 0;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.earn-split dd.earn-note{font-size:17px;font-weight:500}
.earn-target{display:grid;gap:8px;color:var(--t-ink-2);font-size:17px;font-variant-numeric:tabular-nums}
.earn-target__track{height:12px;border-radius:6px;background:var(--t-surface-3);overflow:hidden}
.earn-target__fill{height:100%;background:var(--t-good-fill)}
.earn-bridge{min-width:0;margin:0;overflow-x:auto}
.earn-bridge figcaption{margin-bottom:6px;font-size:21px;font-weight:800}
.earn-svg{display:block;width:100%;height:auto;overflow:visible;font-variant-numeric:tabular-nums}
.earn-zero{stroke:var(--t-line-strong);stroke-width:1.5}
.earn-grid{stroke:var(--t-line);stroke-width:1}
.earn-link{stroke:var(--t-line-strong);stroke-width:1.5;stroke-dasharray:3 4}
.earn-bar--gain{fill:var(--t-good);fill-opacity:0.85}
.earn-bar--loss{fill:var(--t-bad);fill-opacity:0.85}
.earn-bar--flat{fill:var(--t-ink-2);fill-opacity:0.6}
.earn-bar--net{fill-opacity:1}
.earn-bar__value{font-size:16px;font-weight:800;fill:currentColor}
.earn-bar__value.is-gain{fill:var(--t-good)}
.earn-bar__value.is-loss{fill:var(--t-bad)}
.earn-bar__value.is-flat{fill:var(--t-ink-2)}
.earn-bar__label{font-size:16px;fill:var(--t-ink-2)}
.earn-group-line{stroke-width:2}
.earn-group-line--arbitrage{stroke:var(--t-info)}
.earn-group-line--carry{stroke:var(--t-violet)}
.earn-group-line--forex{stroke:var(--t-ink-2)}
.earn-group-name{font-size:18px;font-weight:800;fill:var(--t-ink)}
/* panels */
.earn-panel{min-width:0;padding:0 0 16px}
.earn-panel__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px;padding:18px 24px 14px;margin-bottom:14px;border-bottom:1px solid var(--t-line);border-radius:calc(var(--t-radius) - 1px) calc(var(--t-radius) - 1px) 0 0;background:var(--t-surface-2)}
.earn-panel__head h2{margin:0;font-size:var(--t-fs-h3);font-weight:800}
.earn-legend{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--t-ink);font-size:17px}
.earn-legend__item::before{content:"";display:inline-block;width:18px;height:5px;margin-right:8px;vertical-align:middle;border-radius:3px}
.earn-legend__item--net::before{background:linear-gradient(90deg, var(--t-good-fill) 0 50%, var(--t-bad-fill) 50% 100%)}
.earn-legend__item--arb::before{background:var(--t-info-fill)}
.earn-legend__item--carry::before{background:var(--t-violet-fill)}
.earn-legend__item--fx::before{background:var(--t-line-strong)}
.earn-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.earn-line--net{stroke-width:3.2}
.earn-tone--up{stop-color:var(--t-good-line)}
.earn-tone--zero{stop-color:var(--t-ink-2)}
.earn-tone--down{stop-color:var(--t-bad-line)}
.earn-line--arb{stroke:var(--t-info)}
.earn-line--carry{stroke:var(--t-violet)}
.earn-line--fx{stroke:var(--t-ink-2)}
.earn-axis{font-size:17px;fill:var(--t-ink-2)}
.earn-axis.is-gain{fill:var(--t-good)}
.earn-axis.is-loss{fill:var(--t-bad)}
.earn-guide{stroke:var(--t-ink-2);stroke-width:1}
.earn-tip{margin:8px 24px 0;color:var(--t-ink);font-size:17px;font-variant-numeric:tabular-nums}
.earn-pair{display:grid;grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr);gap:20px}
.earn-table-wrap{overflow-x:auto;padding:0 8px}
.earn-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.earn-table th{padding:12px 14px;border-bottom:1px solid var(--t-th-line);background:var(--t-th-bg);color:var(--t-accent);font-size:16px;font-weight:800;white-space:normal;vertical-align:bottom}
.earn-table td{padding:12px 14px;border-bottom:1px solid var(--t-line);font-size:17px}
.earn-table .num{text-align:right}
.earn-route{display:grid}
.earn-route b{font-weight:700}
.earn-route small{color:var(--t-ink-2);font-size:16px}
.earn-share{display:block;width:96px;height:10px;border-radius:5px;background:var(--t-surface-3);overflow:hidden}
.earn-share__fill{display:block;height:100%}
.earn-share__fill.is-gain{background:var(--t-good-fill)}
.earn-share__fill.is-loss{background:var(--t-bad-fill)}
.earn-more{min-height:44px;margin:12px 24px 0;font-size:17px}
.earn-panel__foot{margin:12px 24px 0}
.earn-scroll{overflow-x:auto}
.earn-panel > .earn-scroll{padding:0 12px}
/* toward proof */
.earn-proof{display:grid;gap:2px;margin:0;padding:0 24px;list-style:none}
.earn-proof li{display:grid;grid-template-columns:minmax(170px, 1.3fr) minmax(90px, 1fr) 70px 130px minmax(160px, 1.2fr);align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--t-line);font-size:17px;font-variant-numeric:tabular-nums}
.earn-proof li:last-child{border-bottom:0}
.earn-proof__track{height:10px;border-radius:5px;background:var(--t-surface-3);overflow:hidden}
.earn-proof__fill{display:block;height:100%;background:var(--t-info-fill)}
.earn-proof li.is-proven .earn-proof__fill{background:var(--t-good-fill)}
.earn-proof li.is-proven .earn-proof__state{color:var(--t-good);font-weight:700}
.earn-proof__count, .earn-proof__low{color:var(--t-ink-2)}
.earn-proof__state{color:var(--t-ink)}
/* what the target takes */
.earn-plan__verdict{display:grid;gap:8px;padding:0 24px 8px}
.earn-plan__verdict p{max-width:88ch;margin:0;color:var(--t-ink);font-size:18px;line-height:1.55}
.earn-plan__verdict p:first-child{color:var(--t-ink-2)}
.earn-plan__tables{display:grid;grid-template-columns:minmax(0, 0.8fr) minmax(0, 1.2fr);gap:24px;margin-top:12px}
/* the $700 plan calibrated by trip size (20261019ce): the whole width, under the two tables; an edge's name and its
   exchanges wrap, so no table needs a sideways scroll bar */
.earn-plan__bands{margin-top:16px}
.earn-plan__tables .earn-table td:first-child, .earn-plan__bands .earn-table td:first-child{white-space:normal;min-width:18ch}
.earn-table tr.is-best td{font-weight:700}
.earn-table tr.is-best td:not(.is-gain):not(.is-loss){color:var(--t-accent)}
.earn-plan__speed{margin-top:10px;max-width:640px}
/* the real edge, proven in numbers (20261016bd) */
.earn-edge__verdict{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:2px solid var(--t-line);border-radius:999px;color:var(--t-ink);font-size:16px;font-weight:800}
.earn-edge__verdict.is-real{border-color:var(--t-good-line);color:var(--t-good)}
.earn-edge__basis{display:block;max-width:100ch;margin:0 24px 12px;line-height:1.55}
.earn-edge__words{max-width:100ch;margin:0 24px 14px;color:var(--t-ink);font-size:18px;line-height:1.55}
.earn-edge__tests{display:grid;gap:0;margin:0 24px 14px;padding:0;list-style:none;font-size:17px;font-variant-numeric:tabular-nums}
.earn-edge__test{display:grid;grid-template-columns:22px minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr);gap:12px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--t-line)}
.earn-edge__test:last-child{border-bottom:0}
.earn-edge__mark{font-weight:800}
.earn-edge__test.is-pass .earn-edge__mark{color:var(--t-good)}
.earn-edge__test.is-wait .earn-edge__mark{color:var(--t-accent)}
.earn-edge__test.is-loss .earn-edge__mark{color:var(--t-bad)}
.earn-edge__test small{color:var(--t-ink-2)}
.earn-edge__tables{display:grid;grid-template-columns:minmax(0, 0.85fr) minmax(0, 1.4fr);gap:24px}
/* the real edge's trips by their size (20261018cb): whether a bigger trip keeps the edge */
.earn-edge__sizes{max-width:72rem;margin-top:18px}
.earn-edge__sizes-words{max-width:100ch;margin:10px 24px 14px}
/* why money was lost (20261021ci): what took it, then the biggest losses one by one, each reason in words */
.earn-losses__sum{max-width:88ch;margin:0 24px 6px;color:var(--t-ink);font-size:18px;line-height:1.55}
.earn-losses__title{margin:18px 24px 8px;font-size:18px;font-weight:800}
.earn-losses .earn-table td:first-child{white-space:normal}
.earn-loss-list{display:grid;gap:0;margin:0;padding:0 24px;list-style:none}
.earn-loss{padding:14px 0;border-bottom:1px solid var(--t-line)}
.earn-loss:last-child{border-bottom:0}
.earn-loss__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.earn-loss__amount{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.earn-loss__why{max-width:92ch;margin:6px 0 0;color:var(--t-ink);font-size:17px;line-height:1.55}
.earn-loss__closed{max-width:92ch;margin:4px 0 0;color:var(--t-ink-2);font-size:16px;line-height:1.5}
.earn-day.is-gain{fill:var(--t-good);fill-opacity:0.8}
.earn-day.is-loss{fill:var(--t-bad);fill-opacity:0.8}
@media (max-width: 1100px){
  .earn-hero, .earn-pair, .earn-plan__tables, .earn-edge__tables{grid-template-columns:1fr}
}
/* two panels or two tables side by side only where each has room for all its columns; on a laptop they sit one
   under the other, so no table needs a sideways scroll bar (20261017bq) */
@container earn (max-width: 1480px){
  .earn-pair, .earn-plan__tables, .earn-edge__tables{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .earn-net{font-size:clamp(28px, 9vw, 40px)}
  .earn-hero{padding:18px}
  .earn-proof li{grid-template-columns:1fr 64px}
  .earn-proof__track, .earn-proof__low{display:none}
  .earn-proof__state{grid-column:1 / -1;color:var(--t-ink-2)}
  .earn-edge__test{grid-template-columns:18px minmax(0, 1fr);gap:2px 8px}
  .earn-edge__test b, .earn-edge__test small{grid-column:2}
}

/* the charts are never drawn smaller than they are laid out, so their labels stay at 16px and up: on a
   narrow screen they scroll sideways in their box instead */
.earn-scroll .earn-svg{min-width:960px}
.earn-bridge .earn-svg{min-width:1000px}
.earn-hero__figure > .earn-label{grid-column:1;grid-row:1}
.earn-hero__figure > .earn-net{grid-column:1;grid-row:2}
.earn-hero__figure > .earn-split{grid-column:2;grid-row:1 / span 3;align-self:start}
.earn-hero__figure > .earn-target, .earn-hero__figure > .earn-asof{grid-column:1}
@media (max-width: 760px){
  .earn-hero__figure{grid-template-columns:1fr;grid-template-rows:none}
  .earn-hero__figure > *{grid-column:1 !important;grid-row:auto !important}
}/* real money and paper apart (20261019cc): each its own net, never one added to the other -- real money's tag
   violet, paper's gold; the plan's figures marked an estimate; bars that fill toward a goal (pages/viz.rs) */
.earn-hero__figure > .earn-modes{grid-column:1 / -1}
.earn-modes{display:grid;gap:8px;margin-top:6px;padding-top:14px;border-top:1px solid var(--t-line)}
.earn-mode{margin:0;color:var(--t-ink);font-size:17px;line-height:1.6;font-variant-numeric:tabular-nums}
.earn-mode__tag{display:inline-block;min-width:108px;margin-right:6px;padding:2px 10px;border-radius:999px;font-size:16px;font-weight:800;line-height:1.5;text-align:center}
.earn-mode.is-real .earn-mode__tag{background:var(--t-violet);color:var(--t-page)}
.earn-mode.is-paper .earn-mode__tag{background:var(--t-brand);color:var(--t-on-brand)}
.earn-mode .is-gain, .earn-mode .is-loss, .earn-mode .is-flat{font-weight:800}
.earn-pill{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border:2px solid var(--t-accent-line);border-radius:999px;color:var(--t-accent);font-size:16px;font-weight:800;white-space:nowrap}
.earn-viz{min-width:0}
.earn-progress{display:grid;gap:2px;max-width:640px;margin:4px 24px 14px}
.earn-progress .viz-bar{height:12px}
/* how it adds up (20261023cp): the window as a calculator's tape -- each column its lines, a rule, the total and a
   double rule under it; the cents are the server's, rounded once; what was checked under the tapes */
.earn-tally{min-width:0;padding:0 0 20px}
.earn-tally__body{display:grid;gap:20px;padding:0 24px}
.earn-tally__mode{display:grid;gap:10px;min-width:0}
.earn-tally__title{justify-self:start;margin:0;padding:2px 12px;border-radius:999px;font-size:16px;font-weight:800;line-height:1.5}
.earn-tally__title.is-real{background:var(--t-violet);color:var(--t-page)}
.earn-tally__title.is-paper{background:var(--t-brand);color:var(--t-on-brand)}
.earn-tally__tapes{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 300px), 1fr));gap:18px 32px;align-items:start}
.earn-tape{width:100%;border-collapse:collapse;font-size:17px;font-variant-numeric:tabular-nums}
.earn-tape caption{padding:0 0 6px;color:var(--t-ink-2);font-size:17px;font-weight:800;text-align:left}
.earn-tape th{padding:8px 14px 8px 0;border:0;background:none;color:var(--t-ink);font-size:17px;font-weight:650;text-align:left;vertical-align:top;white-space:normal}
.earn-tape td{width:1%;padding:8px 0;border:0;font-size:17px;font-weight:800;text-align:right;white-space:nowrap;vertical-align:top}
.earn-tape tbody tr + tr > *{border-top:1px dotted var(--t-line-strong)}
.earn-tape small{display:block;margin-top:2px;color:var(--t-ink-2);font-size:16px;font-weight:500;line-height:1.4}
.earn-tape__rounding th, .earn-tape__rounding td{color:var(--t-ink-2)}
.earn-tape tfoot th, .earn-tape tfoot td{padding-top:10px;border-top:2px solid var(--t-ink-2);border-bottom:4px double var(--t-ink-2);font-weight:800}
.earn-checks{display:grid;gap:8px;margin:0;padding:14px 0 0;border-top:1px solid var(--t-line);list-style:none}
.earn-check{display:grid;grid-template-columns:22px minmax(0, 1fr);gap:8px;color:var(--t-ink);font-size:17px;line-height:1.5}
.earn-check__mark{font-weight:800}
.earn-check.is-ok .earn-check__mark{color:var(--t-good)}
.earn-check.is-off .earn-check__mark{color:var(--t-brand)}
.earn-tally__rule{max-width:92ch;margin:0;line-height:1.55}
@media (max-width: 640px){
  .earn-tally__body{padding:0 14px}
}
/* 20261204r69: Today -- the trading day from 00:00 UTC -- under the net: which day it is, its hours and how long it has
   left, what its end does, and Today beside the rolling 24 hours */
.earn-hero__figure > .earn-tday{grid-column:1}
.earn-tday{display:grid;gap:4px;padding:10px 14px;border-left:4px solid var(--t-brand);border-radius:0 10px 10px 0;background:var(--t-surface-2)}
.earn-tday__when{margin:0;color:var(--t-ink);font-size:18px;font-weight:800}
.earn-tday__clock{margin:0;line-height:1.5}
.earn-hero__figure > .earn-tday__close, .earn-hero__figure > .earn-today{grid-column:1 / -1;margin:0;line-height:1.55}
