#view-controls {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2147483646; /* Just below toolbar overlay */
}


/* Update position from fixed to absolute to scroll with document flow */
#raw-html-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  z-index: 0;
  background-color: rgba(15, 15, 20, 0.92);
  color: #00ff66;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  pointer-events: none; /* Enforces click-through and immutability */
  user-select: none;
}

#raw-html-overlay.hidden {
  display: none;
}

/* Maintain fixed placement for control buttons regardless of scroll */
#view-controls {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2147483646;
}

/* Ensure interactive elements render above background overlay */
#main {
  position: relative;
  z-index: 1;
}