.container {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}

:global(.tc-drag-surface):has(.container) {
  border-radius: 16px;
}

.titleBar {
  position: absolute;
  top: -28px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  color: #8b949e;
  user-select: none;
  white-space: nowrap;
  z-index: 2;
  cursor: grab;
  padding: 2px 6px;
  border-radius: 4px;
}

[data-widget-selected] .titleBar {
  color: var(--color-border-accent-emphasis, #0969da);
}

.readOnlyBadge {
  font-size: 10px;
  color: #6e7681;
  background: rgba(110, 118, 129, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.content {
  background: #0d1117;
  color: #e6edf3;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 17px;
  padding: 12px;
  overflow-y: auto;
  white-space: pre;
  flex: 1;
  border: 1px solid var(--color-border, #30363d);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  box-sizing: border-box;
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  color: #8b949e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  text-align: center;
  user-select: none;
}

.placeholderTitle {
  color: #e6edf3;
  font-weight: 500;
}

.placeholderSub {
  color: #6e7681;
  font-size: 12px;
}
