.panel {
  height: 200px;
  display: flex;
  flex-direction: column;
  background-color: var(--vscode-panel-background);
  border-top: 1px solid var(--vscode-panel-border);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 35px;
  padding: 0 8px;
  background-color: var(--vscode-sideBar-background);
  border-bottom: 1px solid var(--vscode-panel-border);
}

.panel-tabs {
  display: flex;
  gap: 2px;
}

.panel-tab {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--vscode-tab-inactiveForeground);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.panel-tab[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

.panel-tab:hover {
  color: var(--vscode-tab-activeForeground);
}

.panel-tab.active {
  color: var(--vscode-tab-activeForeground);
  border-bottom-color: var(--vscode-focusBorder);
}

.panel-close {
  background: transparent;
  border: none;
  color: var(--vscode-descriptionForeground);
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
}

.panel-close:hover {
  background-color: var(--vscode-list-hoverBackground);
  color: var(--vscode-editor-foreground);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.panel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--vscode-descriptionForeground);
  font-size: 12px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.output-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.output-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.output-toolbar {
  display: flex;
  justify-content: flex-end;
}

.output-copy-button {
  font-size: 11px;
  padding: 3px 10px;
  background-color: var(--vscode-button-secondaryBackground);
  color: var(--vscode-button-secondaryForeground);
  border: 1px solid var(--vscode-panel-border);
  border-radius: 4px;
  cursor: pointer;
}

.output-copy-button:hover {
  background-color: var(--vscode-list-hoverBackground);
}

.output-item {
  background-color: var(--vscode-sideBar-background);
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
  color: var(--vscode-editor-foreground);
  white-space: pre-wrap;
  word-break: break-word;
}

.task-group-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background-color: var(--vscode-list-hoverBackground);
  color: var(--vscode-editor-foreground);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
}

.task-group-chevron {
  color: var(--vscode-descriptionForeground);
}

.task-group-title {
  font-size: 12px;
  font-weight: 600;
}

.task-group-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--vscode-descriptionForeground);
}

.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background-color: var(--vscode-sideBar-background);
  border-radius: 4px;
  font-size: 12px;
}

.task-status {
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--vscode-descriptionForeground);
  border-top-color: var(--vscode-focusBorder);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.task-check {
  color: var(--vscode-testing-iconPassed);
  font-weight: bold;
}

.task-error {
  color: var(--vscode-notificationsErrorIcon-foreground);
  font-weight: bold;
}

.task-pending {
  color: var(--vscode-descriptionForeground);
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-child-row {
  margin-left: 16px;
}

.task-name {
  font-size: 12px;
  color: var(--vscode-editor-foreground);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-message {
  font-size: 11px;
  color: var(--vscode-descriptionForeground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.task-progress-bar {
  flex: 1;
  height: 3px;
  background-color: var(--vscode-input-background);
  border-radius: 2px;
  overflow: hidden;
}

.task-progress-value {
  min-width: 32px;
  font-size: 11px;
  color: var(--vscode-descriptionForeground);
  text-align: right;
}

.task-progress-fill {
  height: 100%;
  background-color: var(--vscode-focusBorder);
  transition: width 0.2s ease;
}

.task-cancel {
  padding: 2px 8px;
  font-size: 11px;
  background-color: var(--vscode-button-secondaryBackground);
}

.post-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-links-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background-color: var(--vscode-sideBar-background);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}

.post-links-item:hover {
  background-color: var(--vscode-list-hoverBackground);
}

.post-links-item:focus-visible {
  outline: none;
  border-color: var(--vscode-focusBorder);
}

.post-links-direction {
  font-size: 12px;
  color: var(--vscode-editor-foreground);
}

.git-log-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.git-log-target {
  font-size: 12px;
  color: var(--vscode-descriptionForeground);
  padding: 0 2px 4px;
  border-bottom: 1px solid var(--vscode-panel-border);
}

.git-log-item {
  background-color: var(--vscode-sideBar-background);
  border-radius: 4px;
  padding: 8px;
}

.git-log-subject {
  font-size: 12px;
  color: var(--vscode-editor-foreground);
  margin-bottom: 4px;
}

.git-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--vscode-descriptionForeground);
}

.git-log-hash {
  font-family: var(--vscode-editor-font-family);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
