.pceditor-middle-screen {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.pceditor-middle-screen__topbar {
  flex: 0 0 auto;
}
.pceditor-middle-screen__content {
  flex: 1 1 auto;
  overflow-y: auto;
  background-color: var(--g-color-text-secondary);
}
.pceditor-middle-screen__content_fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: #000;
}
.pceditor-middle-screen__wrapper {
  width: 100%;
  height: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}
.pceditor-middle-screen__canvas {
  scrollbar-width: thin;
  scrollbar-color: var(--g-color-scroll-handle) transparent;
  overflow: auto;
  background-color: var(--g-color-base-background);
  transform-origin: center top;
  position: absolute;
  height: 100%;
  max-width: 100%;
}
.pceditor-middle-screen__canvas::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}
.pceditor-middle-screen__canvas::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}
.pceditor-middle-screen__canvas::-webkit-scrollbar-thumb {
  background: var(--g-color-scroll-handle);
  border-radius: 4px;
  transition: background-color 0.2s;
  opacity: 0;
}
.pceditor-middle-screen__canvas::-webkit-scrollbar-thumb:hover {
  background: var(--g-color-scroll-handle-hover);
  opacity: 1;
}
.pceditor-middle-screen__canvas::-webkit-scrollbar-thumb:active {
  background: var(--g-color-scroll-handle-hover);
  opacity: 1;
}
.pceditor-middle-screen__canvas::-webkit-scrollbar-corner {
  background: transparent;
}
.pceditor-middle-screen__canvas:hover::-webkit-scrollbar-thumb {
  opacity: 0.7;
}
.pceditor-middle-screen__canvas:not(:hover)::-webkit-scrollbar-thumb {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
.pceditor-middle-screen__canvas_fullscreen {
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-width: 100%;
}
.pceditor-middle-screen__iframe {
  display: block;
  margin: 0 auto;
}
.pceditor-middle-screen__iframe_fullscreen {
  width: 100%;
  height: 100%;
}
.pceditor-middle-screen__exit-preview {
  position: fixed;
  opacity: 0.5;
  top: 16px;
  right: 16px;
  z-index: 1001;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pceditor-middle-screen__overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pceditor-middle-screen__border {
  position: absolute;
  border: 3px var(--g-color-line-brand) solid;
  border-radius: 10px;
}
.pceditor-middle-screen__loading {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--g-color-base-background);
  display: flex;
  align-items: center;
  justify-content: center;
}