:root {
  --bg-color: #121212;
  --chat-bg: #121212;
  --panel-bg: #18181b;
  --border-color: #27272a;
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --accent-color: #3b82f6;
  /* Blue 500 */
  --accent-hover: #2563eb;
  /* Blue 600 */
  --user-bubble-bg: #27272a;
  --user-bubble-text: #fafafa;
  --assistant-bubble-bg: transparent;
  --assistant-bubble-text: #e4e4e7;
  --code-bg: #18181b;
  --chunk-bg: #18181b;
  --chunk-border: #27272a;
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  height: 100vh;
  overflow: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Header */
.app-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--border-color);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
}

.header-left {
  flex: 1;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Badge */
.deploy-mode-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 99px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--border-color);
  color: var(--text-secondary);
}

.deploy-mode-badge.local {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.deploy-mode-badge.cloud {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-selector-wrapper {
  margin: 0;
  display: none; /* Controlled by JS */
}

/* Styling the Select */
.project-selector {
  background: transparent;
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  min-width: 160px;
  transition: background-color 0.2s;
  
  /* Custom Arrow */
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

.project-selector:hover {
  background-color: var(--panel-bg);
}

.project-selector:focus {
  background-color: var(--panel-bg);
  box-shadow: 0 0 0 1px var(--border-color);
}


/* Header Right Actions */
.header-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.icon-btn:hover {
    background: var(--panel-bg);
    color: var(--text-primary);
}

.header-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 16px;
}

.header-stats {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 16px;
}

/* Spinner adjustment */
.header-spinner { 
    margin-right: 12px;
}
.header-spinner .spinner {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
}

/* Adjustments for hiding old elements if they exist */
.hint, .corpus-stats:not(.header-stats) {
    display: none; /* Hide old classes if not used in new structure */
}

/* Chat Area */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 150px 24px 120px;
  /* Top padding for header, bottom for input */
  display: flex;
  flex-direction: column;
  gap: 32px;
  scroll-behavior: smooth;
}

/* Scrollbar styling */
.chat-area::-webkit-scrollbar {
  width: 6px;
}

.chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 20px;
}

.welcome-message {
  text-align: center;
  margin-top: 15vh;
  color: var(--text-secondary);
  animation: fadeIn 0.5s ease-out;
}

.welcome-message h2 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Messages */
.msg {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  animation: slideIn 0.3s ease-out;
}

.msg.user-msg {
  align-items: flex-end;
}

.msg.assistant-msg {
  align-items: flex-start;
}

.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  position: relative;
  word-wrap: break-word;
}

.user-msg .bubble {
  background: var(--user-bubble-bg);
  color: var(--user-bubble-text);
  border-bottom-right-radius: 4px;
}

.assistant-msg .bubble {
  background: var(--assistant-bubble-bg);
  color: var(--assistant-bubble-text);
  padding: 0;
  /* Remove padding for assistant to align with left edge */
  max-width: 100%;
  width: 100%;
}

.assistant-text {
  line-height: 1.7;
}

.assistant-text p {
  margin: 0 0 1em 0;
}

.assistant-text p:last-child {
  margin-bottom: 0;
}

/* Code blocks */
pre {
  background: var(--code-bg);
  padding: 16px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 16px 0;
}

code {
  font-family: "Menlo", "Monaco", "Courier New", monospace;
  font-size: 13px;
}

p code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Composer */
.composer-area {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, var(--bg-color) 80%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.active-project-indicator {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.composer-wrapper {
  width: 100%;
  max-width: 800px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer-wrapper:focus-within {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

textarea {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  resize: none;
  padding: 12px 0;
  max-height: 200px;
  outline: none;
}

textarea::placeholder {
  color: var(--text-secondary);
}

button#send {
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

button#send:hover {
  background: var(--accent-hover);
}

button#send:active {
  transform: scale(0.95);
}

button#send:disabled {
  background: var(--border-color);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Chunks / Sources */
details.chunks {
  margin-top: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

details.chunks>summary {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  list-style: none;
}

details.chunks>summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

details.chunks>summary::-webkit-details-marker {
  display: none;
}

details.chunks>summary::before {
  content: "›";
  display: inline-block;
  transition: transform 0.2s;
  font-size: 14px;
  line-height: 1;
}

details.chunks[open]>summary::before {
  transform: rotate(90deg);
}

.chunk-list {
  padding: 0;
  border-top: 1px solid var(--border-color);
}

.chunk-item {
  border-bottom: 1px solid var(--border-color);
}

.chunk-item:last-child {
  border-bottom: none;
}

.chunk-item summary {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chunk-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.chunk-item .score {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.chunk-content {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 8px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Meta / Status */
.assistant-meta {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-line {
  font-style: italic;
  opacity: 0.8;
  animation: fadeIn 0.3s ease-out;
}

.meta-details {
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.meta-details summary {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  list-style: none;
  opacity: 1;
}

.meta-details summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.meta-details summary::before {
  content: "›";
  display: inline-block;
  transition: transform 0.2s;
  font-size: 14px;
  line-height: 1;
}

.meta-details[open] summary::before {
  transform: rotate(90deg);
}

.meta-details ul {
  margin: 0;
  padding: 12px;
  list-style: none;
  border-top: 1px solid var(--border-color);
}

.meta-details li {
  padding: 2px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

/* Thinking Process */
.thinking-section {
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.thinking-header {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.thinking-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.thinking-content {
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: monospace;
  white-space: pre-wrap;
  border-top: 1px solid var(--border-color);
  max-height: 200px;
  overflow-y: auto;
}

.thinking-content.collapsed {
  display: none;
}

/* Header Actions */
.header-actions {
  position: absolute;
  right: 24px;
  top: 24px;
  display: flex;
  gap: 8px;
}

/* Settings Button */
.settings-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}

.settings-btn:hover {
  color: var(--text-primary);
  background-color: var(--user-bubble-bg);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--panel-bg);
  margin: 5vh auto;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Custom Select styling to avoid default OS look */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  user-select: none;
}

/* Details / Summary */
details {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

details summary {
  padding: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.02);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details[open] summary {
  border-bottom: 1px solid var(--border-color);
}

details>div {
  padding: 16px;
}

/* Secondary Button */
.secondary-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background-color: var(--border-color);
  border-color: var(--text-secondary);
}

/* Modal Footer */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.primary-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primary-btn:hover {
  background-color: var(--accent-hover);
}

/* Interactive YAML GUI */
.interactive-yaml-container {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  padding: 16px;
  overflow-y: auto;
  line-height: 1.6;
}

.yaml-line {
  display: flex;
  align-items: center;
  /* Align items vertically */
  white-space: pre;
  min-height: 24px;
  /* Ensure line has height even if empty */
}

.yaml-indent {
  color: transparent;
  flex-shrink: 0;
}

.yaml-key {
  color: #8be9fd;
  /* Cyan */
  margin-right: 8px;
  flex-shrink: 0;
}

.yaml-input,
.yaml-select,
.yaml-textarea {
  background: transparent;
  border: none;
  /* No border */
  color: #f1fa8c;
  /* Yellow (String) */
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin: 0;
  outline: none;
  flex: 1;
  /* Take remaining space */
  min-width: 0;
  /* Allow shrinking if needed */
  text-overflow: ellipsis;
}

.yaml-input:focus,
.yaml-select:focus,
.yaml-textarea:focus {
  /* No border on focus either, maybe just a slight background to indicate active */
  background: rgba(255, 255, 255, 0.05);
}

.yaml-input::placeholder {
  color: #6272a4;
  font-style: italic;
}

.yaml-select {
  color: #bd93f9;
  /* Purple (Boolean/Enum) */
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* padding-right: 12px; */
  /* Removed to keep it tight */
  background-image: none;
}

/* For boolean specifically maybe another color */
.yaml-select.bool-true {
  color: #50fa7b;
}

/* Green */
.yaml-select.bool-false {
  color: #ff5555;
}

/* Red */

.yaml-textarea {
  display: block;
  width: 100%;
  resize: none;
  color: #f1fa8c;
  overflow: hidden;
  height: auto;
}

.yaml-array-item {
  display: flex;
  align-items: center;
}

.yaml-dash {
  color: var(--text-secondary);
  margin-right: 8px;
  flex-shrink: 0;
}

/* Deploy Mode Badge */
.deploy-mode-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.deploy-mode-badge.local {
  background: #22c55e20;
  color: #22c55e;
  border: 1px solid #22c55e40;
}

.deploy-mode-badge.cloud {
  background: #3b82f620;
  color: #3b82f6;
  border: 1px solid #3b82f640;
}

/* Header Project Actions */
.header-project-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  background: var(--panel-bg);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-btn:hover {
  border-color: var(--accent-color);
  background: rgba(99, 102, 241, 0.1);
}

.header-btn.create-btn {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.header-btn.create-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.header-btn svg {
  flex-shrink: 0;
}

/* Stats Container with Loading Spinner */
.stats-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* No Data Message */
.no-data-message {
  text-align: center;
  margin-top: 15vh;
  color: var(--text-secondary);
  animation: fadeIn 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-data-message h2 {
  font-weight: 500;
  font-size: 20px;
  color: var(--text-primary);
  margin: 0;
}

/* Feed Panel (inline view) */
.feed-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 150px 0 0;
}

.feed-panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feed-toolbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #1e1e22;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 48px;
}

.toolbar-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.example-select {
  width: 100%;
  max-width: 300px;
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.example-select:focus {
  border-color: var(--accent-color);
  outline: none;
}

.feed-panel .interactive-yaml-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px;
}

.terminal-container {
  height: 180px;
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  padding: 8px 16px;
  border-bottom: 1px solid #27272a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  font-size: 12px;
  color: #a1a1aa;
  font-weight: 500;
}

.terminal-status {
  font-size: 11px;
  color: var(--accent-color);
}

.terminal-logs {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  font-family: 'Menlo', monospace;
  font-size: 11px;
  color: #d4d4d4;
  white-space: pre-wrap;
  line-height: 1.5;
}

.feed-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--panel-bg);
}

.feed-actions .primary-btn {
  width: 100%;
}

/* Secondary button style for stop */
.secondary-btn {
  background: #ef4444 !important;
  color: white !important;
}

.secondary-btn:hover {
  background: #dc2626 !important;
}