.hg-locked-content {
  opacity: 0.2;
  pointer-events: none;
}

.hg-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hg-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.hg-toolbar .btn-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hg-input,
.hg-output {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  min-height: 300px;
  resize: vertical;
  white-space: pre;
}

@media (min-width: 992px) {
  .hg-input-column {
    display: flex;
    flex-direction: column;
  }
  .hg-input-column .hg-input {
    flex: 1 1 auto;
  }
}
.hg-output {
  background: #f8f9fa;
  min-height: 360px;
}

.hg-settings {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.35rem;
  height: 100%;
  min-width: 0;
  padding: 1rem;
}

.hg-settings fieldset {
  min-width: 0;
}

.hg-settings fieldset + fieldset {
  border-top: 1px solid #dee2e6;
  margin-top: 1rem;
  padding-top: 1rem;
}

.hg-settings legend {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hg-summary {
  font-size: 0.875rem;
  min-height: 1.35rem;
}

.hg-diagnostics {
  font-size: 0.875rem;
  max-height: 240px;
  overflow: auto;
}

.hg-copy-status {
  font-size: 0.875rem;
  min-height: 1.35rem;
}

.hg-import-status {
  font-size: 0.875rem;
  min-height: 1.35rem;
}

.hg-note code {
  color: inherit;
}

@media (max-width: 991.98px) {
  .hg-settings {
    height: auto;
    margin-top: 1rem;
  }
}
@media (max-width: 575.98px) {
  .hg-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .hg-toolbar .btn-group-actions {
    width: 100%;
  }
  .hg-toolbar .btn-group-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    white-space: normal;
  }
  .hg-toolbar .btn-group-actions #hg-upload {
    flex-basis: 100%;
  }
  .hg-input,
  .hg-output {
    min-height: 260px;
  }
}
