/* ================= live market chart ================= */
.market-card{margin:2px 2px 14px;padding:15px 16px 13px;border-radius:18px;position:relative;overflow:hidden;
  background:linear-gradient(180deg,#161b32,#10142a);border:1px solid var(--line);box-shadow:0 10px 26px rgba(0,0,0,.32)}
.mkt-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mkt-label{font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#8b93bd}
.mkt-range{display:flex;gap:4px}
.mkt-rbtn{background:#1a1f3a;border:1px solid var(--line);color:var(--dim);font-family:'Outfit';font-weight:700;font-size:10px;
  padding:4px 9px;border-radius:8px;cursor:pointer;letter-spacing:.05em;transition:.14s}
.mkt-rbtn:hover{color:#cfd4f5}
.mkt-rbtn.on{background:#2a2f55;color:#fff;border-color:#3a4070}
.mkt-total{font-family:'Bebas Neue';font-size:40px;line-height:.95;letter-spacing:.02em;color:#fff;margin-top:10px}
.mkt-sub{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;flex-wrap:wrap}
.mkt-move{display:inline-flex;align-items:baseline;gap:6px;font-size:13.5px;font-weight:800;font-variant-numeric:tabular-nums}
.mkt-move.up{color:#3ff08a}
.mkt-move.down{color:#ff6a6a}
.mkt-move .mkt-pct{font-size:12px;opacity:.9}
.mkt-move .mkt-since{font-size:10.5px;color:var(--dim2);font-weight:600;opacity:.9;letter-spacing:.02em}
.mkt-chip{background:#141834;border:1px solid var(--line);border-radius:11px;padding:5px 12px;
  display:flex;flex-direction:column;line-height:1}
.mkt-chip>span{font-size:8px;letter-spacing:.16em;color:#8b93bd;font-weight:800;margin-bottom:3px}
.mkt-chip b{font-family:'Bebas Neue';font-size:19px;color:#fff;letter-spacing:.03em}
/* pan-y, not none: the chart lives at the top of the binder page, so touching
   it used to make that page completely unscrollable. Vertical belongs to the
   page, horizontal to the scrubber. */
.mkt-chart{position:relative;margin-top:11px;touch-action:pan-y;cursor:crosshair;-webkit-user-select:none;user-select:none}
.mkt-svg{display:block;width:100%;height:90px;overflow:visible}
.mkt-tip{position:absolute;top:-3px;transform:translateX(-50%);background:#0b0f22;border:1px solid var(--line);color:#dfe3ff;
  font-size:10px;font-weight:700;font-variant-numeric:tabular-nums;padding:3px 8px;border-radius:7px;white-space:nowrap;
  pointer-events:none;box-shadow:0 5px 14px rgba(0,0,0,.55);z-index:3}
.mkt-empty{color:var(--dim);font-size:12.5px;text-align:center;padding:20px 8px;font-weight:600}

/* the total, when it has just moved on its own */
#binderValue{transition:color .3s ease}
#binderValue.bumped{animation:mktbump .75s cubic-bezier(.2,1.3,.35,1)}
@keyframes mktbump{
  0%{transform:none}
  28%{transform:translateY(-3px) scale(1.035)}
  100%{transform:none}
}
@media (prefers-reduced-motion:reduce){#binderValue.bumped{animation-duration:.01ms}}
