:root {
  --bg: #09101a;
  --bg-2: #0d1522;
  --card: rgba(14, 20, 34, 0.88);
  --card-strong: rgba(14, 21, 36, 0.98);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --text: #e8edf7;
  --muted: #94a3b8;
  --accent: #77a8ff;
  --accent-2: #74e2a9;
  --accent-3: #a78bfa;
  --danger: #ff7a8d;
  --warning: #ffcb70;
  --border-soft: rgba(148, 163, 184, 0.18);
  --border-med: rgba(148, 163, 184, 0.26);
  --border-strong: rgba(148, 163, 184, 0.34);
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --ctl-h: 34px;
  --fz-ctl: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 0% -10%, rgba(72, 115, 255, 0.18), transparent 55%),
    radial-gradient(1000px 700px at 100% 0%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(180deg, #07101a 0%, #09101a 28%, #0a111c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.pg3d-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(1000px 420px at 15% -5%, rgba(119, 168, 255, 0.16), transparent 65%),
    radial-gradient(1000px 420px at 85% 0%, rgba(116, 226, 169, 0.12), transparent 65%),
    linear-gradient(180deg, #0b1220 0%, rgba(11, 18, 32, 0.92) 100%);
}

.pg3d-hero::before,
.pg3d-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pg3d-hero::before {
  background-image:
    linear-gradient(rgba(119, 168, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 168, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.34;
}

.pg3d-hero::after {
  background: linear-gradient(180deg, transparent, rgba(7, 14, 24, 0.72));
}

.pg3d-hero__inner {
  width: min(1380px, 95vw);
  margin: 0 auto;
  padding: 34px 0 30px;
  position: relative;
  z-index: 1;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(119, 168, 255, 0.22);
  background: rgba(119, 168, 255, 0.08);
  color: #cfe0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-kicker--muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.pg3d-hero__title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  margin: 0;
  text-align: center;
  background: linear-gradient(135deg, #d7e4ff 0%, #85b3ff 50%, #7df1b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(119, 168, 255, 0.18);
}

.pg3d-hero__title.typing::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 0.9em;
  margin-left: 0.12ch;
  vertical-align: -0.08em;
  border-radius: 3px;
  background: #a6bfff;
  box-shadow: 0 0 14px rgba(119, 168, 255, 0.6);
  animation: pg3d-cursor-blink 0.9s steps(1, end) infinite;
}

@keyframes pg3d-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.18; }
}

.pg3d-author {
  text-align: center;
  color: #aab9cf;
  margin-top: 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}


.app-shell {
  width: min(1380px, 95vw);
  margin: 0 auto;
  padding: 20px 0 34px;
}

.status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.status-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}


.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.pill-primary {
  border-color: rgba(119, 168, 255, 0.35);
  background: rgba(119, 168, 255, 0.12);
  color: #dbe8ff;
}

.pill-soft {
  color: var(--muted);
}

.pill-status.ready,
#status.ready {
  color: #9ff5c4;
  border-color: rgba(116, 226, 169, 0.32);
  background: rgba(116, 226, 169, 0.08);
}

.pill-status.processing,
#status.processing {
  color: #ffd38c;
  border-color: rgba(255, 203, 112, 0.32);
  background: rgba(255, 203, 112, 0.08);
}

.pill-status.error,
#status.error {
  color: #ff9ca9;
  border-color: rgba(255, 122, 141, 0.34);
  background: rgba(255, 122, 141, 0.1);
}

.pill-auto.idle {
  color: var(--muted);
}

.pill-auto.waiting {
  color: #bfd3ff;
  border-color: rgba(119, 168, 255, 0.35);
  background: rgba(119, 168, 255, 0.08);
}

.pill-auto.running {
  color: #c8ffd7;
  border-color: rgba(116, 226, 169, 0.35);
  background: rgba(116, 226, 169, 0.08);
}

.pill-auto.error {
  color: #ff9ca9;
  border-color: rgba(255, 122, 141, 0.34);
  background: rgba(255, 122, 141, 0.1);
}

.editor-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.22fr) minmax(390px, 0.98fr);
  align-items: stretch;
}

.input-card,
.viewer-card,
.output-card {
  min-width: 0;
}

.input-card {
  grid-column: 1 / 2;
}

.viewer-card {
  grid-column: 2 / 3;
}

.output-card {
  grid-column: 1 / -1;
}

.card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.9), rgba(8, 13, 24, 0.96));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(130%);
}

.card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.viewer-card-header {
  min-height: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 10px 6px;
}

.output-card-header {
  min-height: 0;
  padding: 4px 10px 3px;
  border-bottom-width: 0;
  background: transparent;
}

.card-title-wrap {
  min-width: 0;
}

.card h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d0dcf4;
}

.card-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  max-width: 48ch;
}

.card .body {
  padding: 12px;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, max-content));
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.text-input,
.select-input {
  height: var(--ctl-h);
  min-width: 160px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-med);
  font-size: var(--fz-ctl);
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.text-input::placeholder {
  color: var(--muted);
}

.text-input:focus,
.select-input:focus {
  outline: none;
  border-color: rgba(119, 168, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(119, 168, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.btn,
.btn_save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ctl-h);
  gap: 6px;
  padding: 0 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: var(--fz-ctl);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, rgba(119, 168, 255, 1), rgba(97, 145, 235, 0.94));
  border: 1px solid rgba(119, 168, 255, 0.5);
  box-shadow: 0 10px 24px rgba(82, 123, 226, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn_save:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(82, 123, 226, 0.24);
}

.btn:active,
.btn_save:active {
  transform: translateY(1px);
}

.btn.secondary,
.btn_save {
  background: linear-gradient(180deg, rgba(116, 226, 169, 1), rgba(84, 194, 138, 0.96));
  border-color: rgba(116, 226, 169, 0.5);
  box-shadow: 0 10px 24px rgba(84, 194, 138, 0.2);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-med);
  box-shadow: none;
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.pg3d-debug-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--ctl-h);
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--border-med);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: var(--fz-ctl);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.pg3d-debug-toggle input {
  accent-color: var(--accent);
}

.btn-label {
  white-space: nowrap;
}

.button-icon,
.viewer-chip-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.section-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(119, 168, 255, 0.18);
  background: linear-gradient(180deg, rgba(119, 168, 255, 0.14), rgba(119, 168, 255, 0.05));
  color: #dce8fe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.section-icon svg,
.button-icon svg,
.viewer-chip-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn::before,
.btn_save::before {
  margin-right: 0;
  font-size: 12px;
}

.btn.compact {
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.btn.compact .btn-label {
  display: none;
}

#editorOpenJsonBtn::before { content: "↗"; }
#editorExportJsonBtn::before { content: "↓"; }
#editorWordWrapBtn::before { content: ""; }
#editorOrbitToggleBtn::before,
#editorFitViewBtn::before,
#editorResetViewBtn::before { content: ""; }
#editorLocalSaveBtn::before,
#editorExportStlBtn::before { content: ""; }


.editor-codepane {
  position: relative;
  overflow: hidden;
  min-height: 59vh;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(84, 116, 182, 0.08), rgba(10, 16, 29, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --line-gutter-width: 52px;
}

.editor-codepane::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.editor-codepane::before {
  background-image:
    linear-gradient(to bottom, rgba(119, 168, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 22px;
  opacity: 0.5;
}

.editor-codepane pre.highlighter,
.editor-codepane textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  tab-size: 2;
  padding: 14px 14px 14px calc(var(--line-gutter-width) + 14px);
  margin: 0;
  min-height: 59vh;
  white-space: pre;
}

.editor-line-gutter {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: var(--line-gutter-width);
  margin: 0;
  padding: 14px 6px 14px 0;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.88);
  text-align: right;
  pointer-events: none;
  user-select: none;
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.editor-line-gutter {
  text-indent: 0;
}

.editor-codepane pre.highlighter {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #d8e1f5;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}

.editor-codepane textarea {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--accent);
  border: none;
  outline: none;
  resize: none;
  overflow: auto;
}

.editor-codepane textarea::selection {
  background: rgba(119, 168, 255, 0.28);
}

.wrap-on .editor-codepane pre.highlighter,
.wrap-on .editor-codepane textarea,
.wrap-on #editorHitLayerContent {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tok-kw { color: #88f2b9; }
.tok-var { color: #8eb9ff; }
.tok-rule { color: #ffc978; }
.tok-num { color: #ff8ea0; }
.tok-op { color: #e5edff; }
.tok-paren,
.tok-brack { color: #f5f8ff; }

.se-rule-def {
  font-weight: 700;
}

.se-rule-ref {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 201, 120, 0.42);
  text-underline-offset: 2px;
}

.se-reach {
  background: rgba(82, 203, 141, 0.12);
  border-radius: 6px;
}

.se-unreach {
  opacity: 0.55;
  filter: saturate(0.72);
}

.se-active {
  background: rgba(119, 168, 255, 0.18);
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 rgba(119, 168, 255, 0.5);
}

.ctx {
  padding: 1px 2px;
  border-radius: 6px;
}

.err-squiggle {
  background-image: linear-gradient(to right, transparent 0 1px, #ff7676 1px 2px, transparent 2px 3px);
  background-size: 6px 2px;
  background-repeat: repeat-x;
  background-position: 0 100%;
}

#editorHitLayer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

#editorHitLayerContent {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 14px 14px 14px calc(var(--line-gutter-width) + 14px);
  white-space: pre;
  overflow: visible;
  color: transparent;
  user-select: none;
}

#editorHitLayerContent span {
  pointer-events: auto;
}

#editorTooltip {
  position: fixed;
  z-index: 10;
  display: none;
  pointer-events: none;
  background: rgba(12, 17, 30, 0.97);
  color: var(--text);
  border: 1px solid var(--border-med);
  border-radius: 10px;
  padding: 7px 9px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  max-width: 42ch;
  font: 12px/1.4 Inter, system-ui, sans-serif;
}

#editorTooltip.is-error {
  border-color: rgba(255, 122, 141, 0.55);
}

.viewer-body {
  padding: 0 !important;
}

.editor-viewer-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.viewer-icon-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 10px;
  font-size: 0;
  line-height: 0;
}

.viewer-icon-btn__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 15px;
  line-height: 1;
}

.viewer-hud-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.editor-viewer-stage {
  position: relative;
  min-height: 0;
  background:
    radial-gradient(520px 320px at 18% 14%, rgba(119, 168, 255, 0.14), transparent 62%),
    radial-gradient(440px 280px at 88% 10%, rgba(116, 226, 169, 0.08), transparent 62%),
    linear-gradient(180deg, #050a13 0%, #09111d 100%);
}

#glcanvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  background: transparent;
}

.viewer-overlay {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.viewer-overlay--top-left {
  top: 14px;
  left: 14px;
}


.viewer-axis-widget {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  pointer-events: none;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.overlay-card {
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 14, 25, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.overlay-card--compact {
  max-width: 320px;
}

.overlay-eyebrow {
  color: #dbe8ff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.overlay-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.output-card .body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

#editorConsoleOutput {
  max-height: 280px;
  overflow-y: auto;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.42));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.45;
}

.console-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.1);
}

.console-line:last-child {
  border-bottom: none;
}

.console-time {
  color: #7f90aa;
  flex: 0 0 auto;
}

.console-msg {
  color: #d8e3f6;
  white-space: pre-wrap;
}

.console-warn .console-msg {
  color: #ffd79e;
}

.console-error .console-msg {
  color: #ff9db1;
}


.ref-body {
  padding: 14px;
  display: grid;
  gap: 9px;
  font-size: 13px;
  line-height: 1.6;
}

.ref-body > div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.ref-badge {
  font: 700 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-block;
}

.badge-syntax { background: rgba(167, 139, 250, 0.88); }
.badge-concept { background: rgba(59, 130, 246, 0.88); }
.badge-action { background: rgba(16, 185, 129, 0.88); }
.badge-warning { background: rgba(245, 158, 11, 0.88); }

.ref-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: #9cc0ff;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

#refToggleLabel {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}


.editor-codepane textarea,
.editor-codepane pre.highlighter,
#editorConsoleOutput {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.editor-codepane textarea::-webkit-scrollbar,
.editor-codepane pre.highlighter::-webkit-scrollbar,
#editorConsoleOutput::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.editor-codepane textarea::-webkit-scrollbar-thumb,
.editor-codepane pre.highlighter::-webkit-scrollbar-thumb,
#editorConsoleOutput::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 2px solid rgba(119, 168, 255, 0.8);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .input-card,
  .viewer-card,
  .output-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
}

@media (max-width: 720px) {
  .app-shell,
  .pg3d-hero__inner {
    width: min(95vw, 95vw);
  }

  .card header,
  .status-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar,
  .status-group {
    width: 100%;
    justify-content: flex-start;
  }

  .toolbar {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .text-input,
  .select-input,
  .btn,
  .btn_save {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }

  .editor-viewer-stage,
  #glcanvas {
    min-height: 52vh;
    height: 52vh;
  }

  .editor-codepane,
  .editor-codepane pre.highlighter,
  .editor-codepane textarea {
    min-height: 50vh;
  }
}
