.code-language-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 2.5rem 0.5rem 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 10px;
  background: var(--gray-100, #f1f5f9);
}

.code-language-control label {
  font-weight: 700;
  font-size: 0.85rem;
}

.code-language-select {
  min-width: 180px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--gray-200, #cbd5e1);
  border-radius: 8px;
  background: var(--background, #fff);
  color: var(--text, #0f172a);
}

.tcc-code-shell {
  overflow: hidden;
  margin: 1.25rem 0;
  border: 1px solid var(--gray-200, #dbe3ee);
  border-radius: 12px;
  background: #0f172a;
}

.tcc-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tcc-code-language {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.code-copy-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.code-copy-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tcc-code-shell pre {
  margin: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 640px) {
  .code-language-control {
    align-items: stretch;
    flex-direction: column;
  }

  .code-language-select {
    width: 100%;
  }
}
