/* Project-specific layout. The shared Win95 chrome lives in assets/win95.css. */

.viewport {
  aspect-ratio: 16 / 9;
  max-height: 62vh;
  min-height: 320px;
}

/* The sandbox fills the viewport. The inline style on the iframe is the
   belt; this is the braces. */
#sandbox {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.project-controls {
  margin-top: 10px;
}

.color-row,
.toggle-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.color-row label,
.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

input[type="color"] {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--field);
  box-shadow: inset 1px 1px 0 var(--lo);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.equation {
  margin: 10px 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: inset 1px 1px 0 var(--lo);
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
}

#code {
  display: block;
  width: 100%;
  min-height: 240px;
  margin: 8px 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  tab-size: 2;
  resize: vertical;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#editor-status {
  font-size: 12px;
  color: #333;
}

@media (max-width: 760px) {
  .viewport {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
}
