/* shader-editor.html: header bar, editor on the left, live preview on the right. */
.se-page { min-height: 100vh; display: flex; flex-direction: column; }
.se-page__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding: 14px 24px; border-bottom: 1px solid var(--border-soft);
}
.se-page__back { text-decoration: none; font-size: 15px; padding: 10px 0; display: inline-flex; align-items: center; gap: 8px; }
.se-page__title { font-size: 20px; margin: 0; }
.se-page__templates { margin-left: auto; display: flex; align-items: center; gap: 10px; width: 300px; max-width: 100%; }
.se-page__templates .graph__select { flex: 1; }

.se-page__main {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px; padding: 20px 24px 24px;
}
.se-page__editor { min-height: 0; display: flex; flex-direction: column; }
.se-page__preview {
  position: relative; min-height: 360px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #120F0C;
}
.se-page__preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.se-page__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); }

@media (min-width: 900px) {
  .se-page { height: 100vh; }
  .se-page__main { overflow: hidden; }
}
@media (max-width: 899px) {
  .se-page__main { grid-template-columns: minmax(0, 1fr); }
  .se-page__preview { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .se-page__templates { margin-left: 0; width: 100%; }
}
