/* Plot tools fade in at the same top-right position in every view. */
.cf-plot { position: relative; overflow: hidden; }
.cf-plot-svg { display: block; overflow: hidden; -webkit-user-select: none; user-select: none; }
.cf-plot .modebar { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.cf-plot:hover .modebar, .cf-plot:focus-within .modebar, .cf-plot-frame:hover .modebar { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cf-plot .modebar { transition: none; } }
.cf-plot .modebar[hidden], .cf-plot .modebar-group[hidden], .cf-plot .modebar-btn[hidden] { display: none; }
.cf-plot .modebar-group { display: flex; gap: 2px; background: rgba(255, 255, 255, 0.95); }
.cf-plot .modebar-group + .modebar-group { border-left: 1px solid var(--cf-line, #aaa); padding-left: 8px; }
.cf-plot .modebar-btn {
  box-sizing: border-box; display: grid; place-content: center; height: 22px; padding: 3px 4px;
  border: 0; background: transparent; font-size: 16px; line-height: normal; cursor: pointer;
}
.cf-plot .modebar-btn svg { display: block; fill: rgba(68, 68, 68, 0.65); }
.cf-plot .modebar-btn:hover svg, .cf-plot .modebar-btn.active svg { fill: rgba(68, 68, 68, 0.7); }
.cf-plot .modebar-btn:focus-visible { outline: 1px solid #000; outline-offset: 1px; border-radius: 3px; }
.cf-plot .cf-plot-range-entry {
  position: absolute; z-index: 3; box-sizing: content-box; min-width: 3ch; margin: 0; padding: 0 1px;
  border: 0; border-radius: 0; outline: 1px solid rgba(255, 255, 255, 0.2); line-height: normal;
}
