#sandbox-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

#sandbox-editor-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 200px;
}

#sandbox-editor-panel .section-label {
  padding: 10px 16px 6px;
  flex-shrink: 0;
}

#editor-wrapper {
  flex: 1;
  overflow: hidden;
}

/* Horizontal resize handle */
#sandbox-resize {
  width: 6px;
  background: var(--border);
  cursor: ew-resize;
  flex-shrink: 0;
  transition: background 0.15s;
}

#sandbox-resize:hover,
#sandbox-resize.dragging {
  background: var(--orange);
}

#sandbox-canvas-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 200px;
}

#sandbox-canvas-panel .section-label {
  padding: 10px 16px 6px;
  flex-shrink: 0;
}

#turtle-output {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

#skulpt-target {
  position: relative;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
}

#output-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  z-index: 1;
}

#output-placeholder .icon { font-size: 2.5rem; }

#output-placeholder p {
  font-size: 0.85rem;
  color: var(--muted);
}

#console-output {
  flex-shrink: 0;
  font-family: 'Source Code Pro', ui-monospace, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  padding: 0 16px;
  max-height: 100px;
  overflow-y: auto;
  color: #e05050;
}

#console-output.has-output { padding: 10px 16px; }
#console-output.info { color: var(--muted); }

#btn-share {
  background: #2e2e2e;
  color: var(--white);
  box-shadow: 0 4px 0 #000;
}

#btn-share:hover { background: #3a3a3a; }

#btn-share:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000;
}
