
::highlight(bs-hidden) {
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  text-decoration-color: transparent;
}
.bs-wait-frame { clip-path: inset(0 100% 100% 0); }
.bs-wait-paste { opacity: 0; }
.bs-pop { animation: bs-pop .24s var(--ease-spring) both; }
@keyframes bs-pop { from { opacity: 0; scale: .9; } }

.about-frame.bs-wait .note-dot { transform: scale(0) !important; }
.about-frame.bs-wait .note-line { transform: scaleX(0) !important; }
.about-frame.bs-wait .note-label { opacity: 0 !important; }
.about-frame-wrap:has(> .about-frame.bs-wait) .note-list { opacity: 0 !important; }
.about-frame.bs-wait .pin-btn { transform: scale(0) !important; }

.bs-layer {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: clip;
  pointer-events: none;
  z-index: 55;          
}
body.project-active .bs-layer,
body.legal-active .bs-layer { display: none; }

.bs-layer .mp-cursor { transition: opacity .3s ease; }
.bs-layer .mp-cursor.is-gone { opacity: 0; }
.bs-layer .mp-cursor svg { transition: transform .1s ease; transform-origin: 2px 2px; }
.bs-layer .mp-cursor.is-press svg { transform: scale(.84); }

.bs-box {
  position: absolute;
  left: 0; top: 0;
  outline: 1.5px solid var(--c);
  transition: opacity .25s ease;
}
.bs-box.is-frame { background: color-mix(in srgb, var(--c) 6%, transparent); }
.bs-hd {
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border: 1.5px solid var(--c);
  border-radius: 1px;
}
.bs-hd.nw { left: -4.5px; top: -4.5px; }
.bs-hd.ne { right: -4.5px; top: -4.5px; }
.bs-hd.sw { left: -4.5px; bottom: -4.5px; }
.bs-hd.se { right: -4.5px; bottom: -4.5px; }
.bs-box.is-tiny .bs-hd { display: none; }
.bs-dims {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  transform: translateX(-50%);
  padding: 2px 6px 3px;
  border-radius: 4px;
  background: var(--c);
  color: #fff;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bs-box[data-dark-tag] .bs-dims { color: #1a1400; }
.bs-box.is-editing .bs-dims { display: none; }

.bs-caret {
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--c);
  transition: opacity .25s ease;
}
.bs-caret.is-blink { animation: bs-blink 1s steps(2, jump-none) infinite; }
@keyframes bs-blink { 50% { opacity: 0; } }

.bs-guide {
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .15s ease;
}
.bs-guide.is-v { width: 1px; }
.bs-guide.is-on { opacity: 1; }
.bs-guide::before,
.bs-guide::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  background:
    linear-gradient(45deg, transparent 43%, var(--accent) 43% 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, var(--accent) 43% 57%, transparent 57%);
}
.bs-guide::before { left: -3px; top: -3px; }
.bs-guide::after { right: -3px; top: -3px; }
.bs-guide.is-v::after { right: auto; top: auto; left: -3px; bottom: -3px; }

.bs-box.is-out, .bs-caret.is-out, .bs-guide.is-out { opacity: 0; animation: none; }
