/* Task Manager on-screen cube — always above windows, never in the layout. */

#biostudio-usage-cube {
  position: fixed;
  z-index: 1000050;
  width: 188px;
  height: 318px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 10px 28px rgb(0 0 0 / 28%);
}

#biostudio-usage-cube.is-hidden,
#biostudio-usage-cube[hidden] {
  display: none;
}

#biostudio-usage-cube.is-dragging {
  cursor: grabbing;
  box-shadow: 0 16px 36px rgb(0 0 0 / 38%);
}

#biostudio-usage-cube.is-hot {
  box-shadow: 0 10px 28px rgb(220 38 38 / 28%);
}

#biostudio-usage-cube .usage-cube-canvas {
  display: block;
  width: 188px;
  height: 318px;
  pointer-events: none;
}

#biostudio-usage-cube .usage-cube-check {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 2px 10px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: #e5e7eb;
  font: 600 10px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

#biostudio-usage-cube .usage-cube-check:hover {
  background: rgb(255 255 255 / 20%);
}

#biostudio-usage-cube .usage-cube-check:disabled {
  opacity: 0.6;
  cursor: progress;
}

#biostudio-usage-proof {
  position: fixed;
  z-index: 1000051;
  width: 300px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgb(134 239 172 / 45%);
  border-radius: 12px;
  background: #141820;
  color: #e5e7eb;
  font: 500 11px/1.45 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 28px rgb(0 0 0 / 28%);
}

#biostudio-usage-proof[hidden] {
  display: none;
}

#biostudio-usage-proof.is-bad {
  border-color: rgb(248 113 113 / 60%);
}

#biostudio-usage-proof .usage-proof-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 12px;
  color: #86efac;
}

#biostudio-usage-proof.is-bad .usage-proof-title {
  color: #fca5a5;
}

#biostudio-usage-proof .usage-proof-close {
  border: 0;
  background: none;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.tmgr-cube-btn.on {
  border-color: var(--accent, #2563eb);
  color: var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent, #2563eb) 12%, transparent);
}
