html,
body {
  background: #faf9ff;
  color: #15192b;
  font-family: 'Segoe UI', Arial, sans-serif;
  height: 100%;
  margin: 0;
}

body.globaltuts-tryit-lite {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.globaltuts-tryit-topbar {
  align-items: center;
  background: linear-gradient(180deg, #171b2f 0%, #121628 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.globaltuts-tryit-home {
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.globaltuts-tryit-label {
  color: #c7d2fe;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.globaltuts-tryit-run {
  background: linear-gradient(135deg, #6c5ce7, #8b5cf6);
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 18px;
}

.globaltuts-tryit-run:hover {
  filter: brightness(1.05);
}

.globaltuts-tryit-run:disabled {
  cursor: wait;
  opacity: 0.72;
}

.globaltuts-tryit-runtime {
  color: #94a3b8;
  display: none;
  font-size: 12px;
  font-weight: 600;
}

body.globaltuts-tryit-python .globaltuts-tryit-runtime {
  display: inline-block;
}

@media (min-width: 901px) {
  body.globaltuts-tryit-python .globaltuts-tryit-runtime {
    display: inline-block;
  }
}

.globaltuts-tryit-workspace {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.globaltuts-tryit-editor-pane,
.globaltuts-tryit-result-pane {
  min-height: 0;
  min-width: 0;
}

.globaltuts-tryit-editor-pane {
  border-right: 1px solid #e4e7f2;
}

.globaltuts-tryit-editor-pane .CodeMirror {
  background: #ffffff;
  font-family: Consolas, Menlo, 'Courier New', monospace;
  font-size: 15px;
  height: 100% !important;
  line-height: 1.45;
}

.globaltuts-tryit-editor-pane .CodeMirror-scroll {
  min-height: calc(100vh - 64px);
}

#globaltutsTryitCode {
  display: none;
}

#globaltutsTryitResult {
  background: #ffffff;
  border: 0;
  display: block;
  height: 100%;
  min-height: calc(100vh - 64px);
  width: 100%;
}

.globaltuts-tryit-output {
  background: #0f172a;
  border: 0;
  box-sizing: border-box;
  color: #e2e8f0;
  font-family: Consolas, Menlo, 'Courier New', monospace;
  font-size: 14px;
  height: 100%;
  line-height: 1.55;
  margin: 0;
  min-height: calc(100vh - 64px);
  overflow: auto;
  padding: 18px 20px;
  white-space: pre-wrap;
  word-break: break-word;
}

.globaltuts-tryit-output.is-loading {
  color: #94a3b8;
}

.globaltuts-tryit-output.is-error {
  color: #fecaca;
}

@media (max-width: 900px) {
  .globaltuts-tryit-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .globaltuts-tryit-editor-pane {
    border-bottom: 1px solid #e4e7f2;
    border-right: 0;
  }

  .globaltuts-tryit-editor-pane .CodeMirror-scroll,
  #globaltutsTryitResult,
  .globaltuts-tryit-output {
    min-height: 45vh;
  }
}
