.paper-notes-3d {
  width: 100%;
  margin: 2.25rem 0 0;
  padding: 1rem;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #fbfcfe;
  color: #172033;
}

.paper-notes-3d__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid #d8e1ea;
}

.paper-notes-3d__eyebrow {
  margin: 0 0 0.2rem;
  color: #607086;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paper-notes-3d h2 {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.paper-notes-3d__stats {
  padding: 0.28rem 0.5rem;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  color: #40516a;
  font-size: 0.9rem;
  white-space: nowrap;
}

.paper-notes-3d__workspace {
  margin-top: 1rem;
}

.paper-notes-3d__stage {
  position: relative;
  min-height: 620px;
  border-radius: 8px;
  background: #f5f8fc;
  border: 1px solid #d8e1ea;
  overflow: hidden;
}

.paper-notes-3d__stage canvas {
  display: block;
  width: 100%;
  height: 620px;
}

.paper-notes-3d__status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.38rem 0.55rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 225, 234, 0.9);
  border-radius: 6px;
  color: #506177;
  font-size: 0.76rem;
}

.paper-notes-3d__tooltip {
  position: absolute;
  z-index: 2;
  max-width: 320px;
  padding: 0.55rem 0.7rem;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
}

.paper-notes-3d__tooltip strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.paper-notes-3d__clusters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #fff;
}

.paper-notes-3d__cluster {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid #e1e8f0;
  border-radius: 7px;
  background: #fbfcfe;
}

.paper-notes-3d__cluster h3 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.3rem;
  color: #172033;
  font-size: 0.9rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.paper-notes-3d__swatch {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.paper-notes-3d__keywords {
  margin: 0 0 0 1.22rem;
  color: #667085;
  font-size: 0.73rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .paper-notes-3d {
    padding: 0.85rem;
  }

  .paper-notes-3d__header {
    align-items: start;
    flex-direction: column;
  }

  .paper-notes-3d__stage,
  .paper-notes-3d__stage canvas {
    min-height: 520px;
    height: 520px;
  }

  .paper-notes-3d__clusters {
    grid-template-columns: 1fr;
  }
}
