.panel-shell {
  min-height: 160px;
  max-height: 160px;
  border-top: 1px solid var(--line);
}

.panel-shell.is-hidden {
  display: none;
}

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

.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;
  border-radius: 0;
}

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

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

.assistant-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.assistant-sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.assistant-sidebar-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assistant-sidebar-description,
.assistant-sidebar-context-text,
.assistant-sidebar-message-content {
  color: var(--vscode-descriptionForeground);
}

.assistant-sidebar-status {
  border-radius: 999px;
  border: 1px solid var(--vscode-panel-border);
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.4;
}

.assistant-sidebar-status.is-offline {
  background: rgba(255, 196, 0, 0.18);
  border-color: rgba(255, 196, 0, 0.35);
  color: var(--vscode-editor-foreground);
}

.assistant-sidebar-context {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--vscode-panel-border);
  border-radius: 6px;
  background: var(--vscode-editorWidget-background, rgba(0, 0, 0, 0.2));
}

.assistant-sidebar-context-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.assistant-sidebar-context-label,
.assistant-sidebar-message-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vscode-descriptionForeground);
}

.assistant-sidebar-context-value {
  text-align: right;
  color: var(--vscode-editor-foreground);
}

.assistant-sidebar-context-text,
.assistant-sidebar-message-content {
  margin: 0;
  white-space: pre-wrap;
}

.assistant-sidebar-prompt-form,
.assistant-sidebar-welcome,
.assistant-sidebar-transcript {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assistant-sidebar-prompt {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--vscode-input-border);
  border-radius: 6px;
  background: var(--vscode-input-background);
  color: var(--vscode-input-foreground);
  padding: 10px;
  font: inherit;
}

.assistant-sidebar-prompt:focus {
  outline: 1px solid var(--vscode-focusBorder);
  outline-offset: 1px;
}

.assistant-sidebar-start-button {
  align-self: flex-start;
  border: 1px solid var(--vscode-button-border, transparent);
  border-radius: 999px;
  background: var(--vscode-button-background);
  color: var(--vscode-button-foreground);
  padding: 7px 14px;
  cursor: pointer;
}

.assistant-sidebar-start-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.assistant-card,
.assistant-sidebar-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--vscode-panel-border);
  border-radius: 6px;
  border-bottom-width: 1px;
  background: var(--vscode-editorWidget-background, rgba(0, 0, 0, 0.2));
}

.assistant-sidebar-message.user {
  background: var(--vscode-list-hoverBackground);
}

.assistant-sidebar-message.assistant {
  background: var(--vscode-editorWidget-background, rgba(0, 0, 0, 0.2));
}

.status-bar {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--vscode-statusBar-background);
  color: var(--vscode-statusBar-foreground);
  font-size: 12px;
  padding: 0 8px;
  user-select: none;
  flex-wrap: nowrap;
  gap: 0;
  border-top: none;
}

.status-bar-left,
.status-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.status-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 100%;
  max-width: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.status-bar-item .task-message-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.task-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.panel-content {
  padding: 8px;
}

.task-list {
  gap: 4px;
}

.output-list,
.git-log-list {
  gap: 6px;
}

.task-entry {
  padding: 8px;
  border-bottom: none;
  border-radius: 4px;
  background-color: var(--vscode-sideBar-background);
}

.output-entry {
  padding: 8px;
  border-bottom: none;
  border-radius: 4px;
  background-color: var(--vscode-sideBar-background);
  font-size: 12px;
  color: var(--vscode-editor-foreground);
}

@media (max-width: 1100px) {
  .editor-frame {
    grid-template-columns: 1fr;
  }

  .assistant-sidebar-shell {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.text-muted {
  color: var(--vscode-descriptionForeground);
}

.editor-empty {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--vscode-editor-background);
  overflow-y: auto;
  padding: 40px 20px;
}

.dashboard-content {
  max-width: 720px;
  width: 100%;
}

.dashboard-content h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--vscode-editor-foreground);
}

.dashboard-content > .text-muted {
  margin-bottom: 24px;
  display: block;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 16px;
  background-color: var(--vscode-sideBar-background);
  border-radius: 6px;
}

.stat-number {
  font-size: 32px;
  font-weight: 600;
  color: var(--vscode-editor-foreground);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--vscode-descriptionForeground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.stat-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  background-color: var(--vscode-input-background);
  color: var(--vscode-descriptionForeground);
}

.stat-published {
  color: var(--vscode-testing-iconPassed);
}

.stat-draft {
  color: var(--vscode-editorWarning-foreground);
}

.stat-archived {
  color: var(--vscode-descriptionForeground);
}

.dashboard-section {
  background-color: var(--vscode-sideBar-background);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.dashboard-section h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--vscode-descriptionForeground);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
}

.timeline-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.timeline-bar {
  width: 100%;
  max-width: 40px;
  background-color: var(--vscode-activityBarBadge-background);
  border-radius: 3px 3px 0 0;
  margin-top: auto;
  min-height: 4px;
  position: relative;
  transition: opacity 0.15s;
}

.timeline-bar:hover {
  opacity: 0.8;
}

.timeline-bar-count {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--vscode-descriptionForeground);
}

.timeline-bar-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  color: var(--vscode-descriptionForeground);
  margin-top: 4px;
  line-height: 1.15;
}

.timeline-bar-label-month {
  white-space: nowrap;
}

.timeline-bar-label-year {
  font-size: 8px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  line-height: 1.6;
}

.dashboard-tag {
  padding: 2px 8px;
  border-radius: 10px;
  background-color: var(--vscode-input-background);
  color: var(--vscode-editor-foreground);
  cursor: default;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.dashboard-tag:hover {
  opacity: 0.75;
}

.dashboard-tag.has-color {
  border-radius: 12px;
}

.dashboard-tag.has-color:hover {
  opacity: 0.85;
}

.tag-cloud-more {
  font-size: 11px;
}

.tag-count {
  font-size: 10px;
  opacity: 0.5;
  margin-left: 2px;
}

.dashboard-category {
  font-size: 12px;
  border: 1px solid var(--vscode-input-border);
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
}

.recent-post-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  color: inherit;
}

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

.recent-post-title {
  flex: 1;
  color: var(--vscode-editor-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-post-status {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background-color: var(--vscode-input-background);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.recent-post-status.status-published {
  color: var(--vscode-testing-iconPassed);
}

.recent-post-status.status-draft {
  color: var(--vscode-editorWarning-foreground);
}

.recent-post-status.status-archived {
  color: var(--vscode-descriptionForeground);
}

.recent-post-date {
  color: var(--vscode-descriptionForeground);
  white-space: nowrap;
}

