.compiler-hero-section {
  padding-bottom: 54px;
}

.compiler-card {
  overflow: hidden;
  padding: 0;
}

.compiler-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.compiler-language {
  color: #213083;
  font-size: 16px;
  font-weight: 700;
}

.compiler-run {
  min-width: 96px;
}

.compiler-banner-slot {
  display: flex;
  width: 100%;
  padding: 18px;
  align-items: center;
  justify-content: center;
}

.compiler-workspace + .compiler-banner-slot {
  padding-top: 0;
}

.compiler-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 520px;
}

.compiler-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
}

.compiler-field + .compiler-field {
  border-left: 1px solid #e5e7eb;
}

.compiler-textarea {
  width: 100%;
  min-height: 450px;
  flex: 1;
  resize: vertical;
  border: 1px solid #d7dce5;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  padding: 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.65;
  outline: none;
}

.compiler-textarea:focus {
  border-color: #213083;
  box-shadow: 0 0 0 3px rgba(33, 48, 131, 0.12);
}

.compiler-output {
  resize: none;
  background: #f8fafc;
}

.compiler-content {
  margin-top: 32px;
}

.compiler-content .related-tools-section {
  margin-top: 28px;
}

.compiler-content .tool-faq {
  margin-top: 28px;
}

@media (max-width: 767px) {
  .compiler-banner-slot {
    padding: 14px;
  }

  .compiler-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .compiler-field + .compiler-field {
    border-top: 1px solid #e5e7eb;
    border-left: 0;
  }

  .compiler-textarea {
    min-height: 320px;
  }
}
