/* Cursor Desktop–style chat (OB Command Center) */
#jarvis {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #1e1e1e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cursor-chat-log {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #cccccc;
  scroll-behavior: smooth;
  background: #1e1e1e;
}

.cursor-msg { margin-bottom: 16px; animation: cursor-fade-in 0.15s ease; }
@keyframes cursor-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.cursor-msg-user {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 20px;
}
.cursor-msg-user .cursor-msg-label {
  font-size: 11px;
  color: #858585;
  margin-bottom: 6px;
  font-weight: 600;
}
.cursor-msg-user .cursor-msg-bubble {
  padding: 10px 12px;
  border-radius: 6px;
  background: #2d2d2d;
  color: #e8e8e8;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #3c3c3c;
}

.cursor-msg-assistant {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.cursor-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cursor-avatar-cli {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}
.cursor-msg-cursor .cursor-msg-body {
  border-left: 2px solid #0891b2;
  padding-left: 10px;
}
.cursor-msg-clickable {
  cursor: pointer;
}
.cursor-msg-clickable .cursor-msg-body {
  border-left: 2px solid #22d3ee;
  padding-left: 10px;
}
.cursor-msg-clickable:hover .cursor-msg-body {
  background: rgba(34, 211, 238, 0.08);
}
.cursor-run-compact {
  margin-bottom: 8px;
  opacity: 0.85;
}
.cursor-msg-assistant .cursor-msg-body {
  flex: 1;
  min-width: 0;
  color: #cccccc;
  word-break: break-word;
}
.cursor-msg-assistant .cursor-msg-body p { margin: 0 0 8px; }
.cursor-msg-assistant .cursor-msg-body code {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  background: #2d2d2d;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12px;
}
.cursor-msg-assistant .cursor-msg-body strong { color: #e8e8e8; font-weight: 600; }

.cursor-generating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px 36px;
  font-size: 12px;
  color: #858585;
}
.cursor-generating-shimmer {
  height: 8px;
  flex: 1;
  max-width: 120px;
  border-radius: 4px;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: cursor-shimmer 1.2s infinite;
}
@keyframes cursor-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.cursor-error-card {
  margin: 8px 0 16px 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(244, 135, 113, 0.4);
  background: rgba(244, 135, 113, 0.08);
  color: #f48771;
  font-size: 12px;
  line-height: 1.5;
}
.cursor-error-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cursor-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #858585;
  margin: 8px 0;
}
.cursor-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #858585;
  animation: cursor-pulse 1.2s infinite;
}
@keyframes cursor-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.cursor-tool {
  margin: 8px 0 8px 36px;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  background: #252526;
  overflow: hidden;
  font-size: 12px;
}
.cursor-tool-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  background: #2a2a2a;
}
.cursor-tool-head:hover { background: #303030; }
.cursor-tool-chevron {
  color: #858585;
  font-size: 10px;
  transition: transform 0.15s;
  width: 12px;
}
.cursor-tool.collapsed .cursor-tool-chevron { transform: rotate(-90deg); }
.cursor-tool-icon { color: #858585; font-size: 13px; width: 18px; text-align: center; }
.cursor-tool-name {
  flex: 1;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  color: #cccccc;
  font-size: 12px;
}
.cursor-tool-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.cursor-tool-badge.ok { background: rgba(78, 201, 176, 0.15); color: #4ec9b0; }
.cursor-tool-badge.err { background: rgba(244, 135, 113, 0.15); color: #f48771; }
.cursor-tool-badge.run { background: rgba(220, 220, 170, 0.12); color: #dcdcaa; }
.cursor-tool-body { border-top: 1px solid #3c3c3c; }
.cursor-tool.collapsed .cursor-tool-body { display: none; }
.cursor-tool-section { padding: 8px 10px; border-bottom: 1px solid #2a2a2a; }
.cursor-tool-section:last-child { border-bottom: none; }
.cursor-tool-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #858585;
  margin-bottom: 4px;
}
.cursor-code {
  margin: 0;
  padding: 8px;
  border-radius: 4px;
  background: #1e1e1e;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.45;
  color: #ce9178;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}
.cursor-code.json { color: #9cdcfe; }

.cursor-run {
  margin: 8px 0 8px 36px;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  background: #1e1e1e;
  overflow: hidden;
}
.cursor-run-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #252526;
  border-bottom: 1px solid #3c3c3c;
}
.cursor-run-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cursor-run-dot.running { background: #dcdcaa; animation: cursor-pulse 1s infinite; }
.cursor-run-dot.done { background: #4ec9b0; }
.cursor-run-dot.failed { background: #f48771; }
.cursor-run-title { flex: 1; font-size: 12px; color: #cccccc; font-weight: 500; }
.cursor-run-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #333;
  color: #858585;
}
.cursor-run-badge.running { color: #dcdcaa; }
.cursor-run-badge.done { color: #4ec9b0; }
.cursor-run-badge.failed { color: #f48771; }
.cursor-run-cmd {
  padding: 8px 10px;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11px;
  color: #4ec9b0;
  border-bottom: 1px solid #2a2a2a;
  white-space: pre-wrap;
  word-break: break-all;
}
.cursor-run-output {
  margin: 0;
  padding: 8px 10px;
  max-height: 200px;
  overflow: auto;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #d4d4d4;
  white-space: pre-wrap;
}

.cursor-output-summary-card {
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.08);
  color: #cccccc;
}
.cursor-live-strip {
  margin: 8px 12px 4px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
}
.cursor-live-strip.hidden { display: none !important; }
.cursor-live-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}
.cursor-live-strip-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  max-height: 42vh;
  overflow: auto;
}
.cursor-live-strip.collapsed .cursor-live-strip-body {
  display: none;
}
.mission-cli-preview {
  color: #bae6fd;
  font-size: 0.68rem;
  line-height: 1.35;
  max-height: 2.8em;
  overflow: hidden;
}
.cursor-output-summary-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(14, 116, 144, 0.13);
}
.cursor-output-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.cursor-output-summary-head .cursor-avatar {
  width: 20px;
  height: 20px;
  font-size: 10px;
  border-radius: 5px;
}
.cursor-output-summary-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cursor-output-summary-status {
  font-size: 10px;
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  padding: 1px 7px;
}
.cursor-output-summary-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  color: #d4d4d4;
}
.cursor-output-summary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  color: #858585;
}
.cursor-output-open {
  border: 1px solid #3c3c3c;
  background: #252526;
  color: #cccccc;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 10px;
}
.cursor-output-open:hover {
  color: #fff;
  border-color: #22d3ee;
}

.cursor-composer {
  flex-shrink: 0;
  padding: 8px 10px 10px;
  background: #1e1e1e;
  border-top: 1px solid #2a2a2a;
}
.cursor-composer-box {
  border: 1px solid #3c3c3c;
  border-radius: 10px;
  background: #252526;
  overflow: hidden;
  transition: border-color 0.15s;
}
.cursor-composer-box:focus-within { border-color: #0078d4; }
.cursor-composer-box textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 12px 4px;
  border: none;
  background: transparent;
  color: #e8e8e8;
  font-size: 13px;
  line-height: 1.45;
  resize: none;
  font-family: inherit;
}
.cursor-composer-box textarea::placeholder { color: #6e6e6e; }
.cursor-composer-box textarea:focus { outline: none; }
.cursor-composer-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px 8px 8px;
  flex-wrap: wrap;
}
.composer-mode-seg {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  overflow: hidden;
  background: #1e1e1e;
}
.composer-mode-btn {
  border: 0;
  border-right: 1px solid #3c3c3c;
  background: transparent;
  color: #858585;
  font-size: 10px;
  min-height: 28px;
  padding: 4px 8px;
  cursor: pointer;
}
.composer-mode-btn:last-child { border-right: 0; }
.composer-mode-btn.active {
  color: #4ec9b0;
  background: rgba(78, 201, 176, 0.12);
}
.cursor-chip {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #3c3c3c;
  background: transparent;
  color: #858585;
  font-size: 11px;
  cursor: pointer;
}
.cursor-chip-model {
  cursor: default;
  color: #6e6e6e;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.cursor-chip-token {
  cursor: default;
  color: #22d3ee;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  border-color: rgba(34, 211, 238, 0.25);
}
.cursor-chip-token.jarvis-token-live {
  animation: jarvis-token-pulse 1.2s ease-in-out infinite;
  border-color: rgba(34, 211, 238, 0.55);
  color: #67e8f9;
}
.cursor-chip-clickable {
  cursor: pointer;
}
.cursor-chip-clickable:hover {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.08);
}
@keyframes jarvis-token-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(34, 211, 238, 0.25); }
}
.cursor-chip.autopilot-on {
  background: rgba(78, 201, 176, 0.12);
  border-color: #4ec9b0;
  color: #4ec9b0;
}
.cursor-btn-run {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #3c3c3c;
  background: #2d2d2d;
  color: #cccccc;
  font-size: 12px;
  cursor: pointer;
}
.cursor-btn-run:hover { background: #363636; }
.cursor-btn-run.mission-ready {
  border-color: #4ec9b0;
  color: #4ec9b0;
}
.cursor-btn-run:disabled { opacity: 0.45; cursor: not-allowed; }
.cursor-btn-send {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #0e639c;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cursor-btn-send:hover { background: #1177bb; }

#autopilot-btn.autopilot-off {
  background: transparent;
  color: #858585;
}
#autopilot-btn.autopilot-on {
  background: rgba(78, 201, 176, 0.12);
  color: #4ec9b0;
  border-color: #4ec9b0;
  animation: none;
}

.cursor-thought {
  padding: 6px 12px;
  font-size: 12px;
  color: #858585;
}
.cursor-thought-label { display: block; margin-bottom: 2px; }
.cursor-thought-text { color: #cccccc; }

.cursor-plan-card, .cursor-feedback-card, .cursor-build-card {
  margin: 8px 12px;
  border: 1px solid #3c3c3c;
  border-radius: 10px;
  background: #252526;
  overflow: hidden;
}
.cursor-plan-head, .cursor-feedback-head, .cursor-build-head {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cccccc;
  border-bottom: 1px solid #2a2a2a;
}
.cursor-plan-answers {
  padding: 8px 12px;
  font-size: 12px;
  color: #d4d4d4;
  background: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
}
.cursor-plan-body, .cursor-feedback-body {
  margin: 0;
  padding: 10px 12px;
  max-height: 240px;
  overflow: auto;
  font-size: 11px;
  color: #d4d4d4;
  white-space: pre-wrap;
}
.cursor-created-plan {
  margin: 4px 12px 8px;
  font-size: 11px;
  color: #858585;
}

.cursor-build-label {
  color: #4ec9b0;
  margin-right: 8px;
}
.jarvis-todo-strip {
  margin: 8px 12px;
  padding: 8px 10px;
  border: 1px solid #3c3c3c;
  border-radius: 10px;
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 5;
}
.jarvis-pipeline-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 10px;
}
.jarvis-pipeline-item { color: #858585; white-space: nowrap; }
.jarvis-pipeline-item.pipeline-done { color: #4ade80; }
.jarvis-pipeline-item.pipeline-active { color: #22d3ee; }
.jarvis-pipeline-sep { color: #555; margin: 0 2px; }
.jarvis-todo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.jarvis-todo-toggle {
  font-size: 12px;
  font-weight: 600;
  color: #cccccc;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.jarvis-todo-toggle:hover { color: #fff; }
.jarvis-todo-counter { font-size: 11px; color: #858585; }
.jarvis-todo-progress {
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.jarvis-todo-fill {
  height: 100%;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
  transition: width 0.3s ease;
}
.jarvis-todo-list { display: flex; flex-direction: column; gap: 2px; }
.jarvis-todo-list.hidden { display: none; }
.jarvis-todo-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.jarvis-todo-close {
  width: 22px;
  height: 22px;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  background: #1e1e1e;
  color: #858585;
  cursor: pointer;
}
.jarvis-todo-close:hover {
  color: #fff;
  border-color: #666;
}
.cursor-todo-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 6px;
  font-size: 11px;
  color: #a0a0a0;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.cursor-todo-item:hover { background: #2d2d2d; }
.cursor-todo-mark { flex-shrink: 0; width: 14px; }
.cursor-todo-title { flex: 1; min-width: 0; }
.cursor-todo-item.todo-active { color: #22d3ee; }
.cursor-todo-item.todo-active .cursor-todo-mark { animation: todo-pulse 1.5s ease-in-out infinite; }
.cursor-todo-item.todo-done { color: #4ade80; }
.cursor-todo-item.todo-done .cursor-todo-title { text-decoration: line-through; opacity: 0.85; }
.cursor-todo-item.todo-failed { color: #f48771; }
.cursor-todo-item.todo-pending { color: #858585; }
@keyframes todo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.cursor-build-meta {
  display: block;
  width: calc(100% - 16px);
  margin: 4px 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: #858585;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
}
.cursor-build-meta:hover { color: #cccccc; }
.cursor-build-todos {
  padding: 4px 12px 8px;
  font-size: 11px;
  color: #a0a0a0;
}
.cursor-build-todos.hidden { display: none; }
.cursor-todo-item { padding: 2px 0; }
.cursor-campaign-status {
  margin: 2px 12px 8px;
  font-size: 11px;
  color: #858585;
  font-style: italic;
}
.cursor-progress-note {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  margin: 6px 12px;
  padding: 7px 9px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 8px;
  background: rgba(8, 47, 73, 0.22);
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.35;
}
.cursor-progress-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 999px;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}
.cursor-progress-text {
  overflow-wrap: anywhere;
}
.cursor-progress-meta {
  margin-top: 2px;
  color: #93c5fd;
  font-size: 10px;
}
.cursor-build-agents { padding: 4px 0 8px; }

.cursor-agent-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 8999;
}
.cursor-agent-detail-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  max-height: min(78vh, 640px);
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 12px;
  z-index: 9001;
  display: none;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: width 0.2s ease, max-height 0.2s ease;
}
.cursor-agent-detail-card.open { display: flex; }
.cursor-agent-detail-card.expanded {
  width: min(720px, 96vw);
  max-height: 92vh;
}
.cursor-agent-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #3c3c3c;
}
.cursor-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3c3c3c;
  flex-shrink: 0;
  transition: background 0.15s, opacity 0.2s;
}
.cursor-agent-detail-head[data-agent-status="running"] .cursor-live-dot,
.cursor-agent-detail-head[data-agent-status="polling"] .cursor-live-dot,
.cursor-agent-detail-head[data-agent-status="planning"] .cursor-live-dot {
  background: #4ec9b0;
  animation: cursor-pulse 1.2s ease-in-out infinite;
}
.cursor-agent-detail-head[data-agent-status="done"] .cursor-live-dot {
  background: #6a9955;
}
.cursor-agent-detail-head[data-agent-status="failed"] .cursor-live-dot {
  background: #f48771;
}
.cursor-agent-detail-title { flex: 1; font-size: 13px; font-weight: 600; color: #e0e0e0; min-width: 0; }
.cursor-agent-detail-actions { display: flex; gap: 6px; flex-shrink: 0; }
.cursor-agent-detail-actions button {
  background: transparent;
  border: 1px solid #3c3c3c;
  color: #aaa;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cursor-agent-detail-actions button:hover { color: #e0e0e0; border-color: #555; }
.cursor-agent-detail-desc,
.cursor-agent-detail-scope {
  margin: 8px 12px 4px;
  padding: 8px 10px;
  font-size: 11px;
  color: #b0b0b0;
  background: #1e1e1e;
  border-radius: 6px;
  line-height: 1.45;
}
.cursor-agent-detail-meta {
  margin: 0 12px 6px;
  font-size: 10px;
  color: #6e6e6e;
}
.cursor-agent-detail-output {
  flex: 1;
  overflow: auto;
  padding: 8px 12px;
  font-size: 11px;
  color: #d4d4d4;
  scroll-behavior: smooth;
}
.cursor-agent-detail-output .cursor-code {
  margin: 6px 0;
  padding: 8px;
  background: #1e1e1e;
  border-radius: 6px;
  font-size: 10px;
  overflow-x: auto;
  font-family: ui-monospace, Consolas, monospace;
}
.cursor-agent-p { margin: 4px 0; line-height: 1.45; }
.cursor-agent-h { margin: 10px 0 4px; font-size: 12px; font-weight: 600; color: #e0e0e0; }
.cursor-agent-h5 { margin: 8px 0 4px; font-size: 11px; font-weight: 600; color: #ccc; }
.cursor-inline {
  background: #2a2a2a;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 10px;
  color: #ce9178;
}
.cursor-agent-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 10px;
}
.cursor-agent-table th,
.cursor-agent-table td {
  border: 1px solid #3c3c3c;
  padding: 4px 6px;
  text-align: left;
}
.cursor-agent-table th { background: #1e1e1e; color: #ccc; }
.tier-ok { color: #6a9955; }
.tier-warn { color: #dcdcaa; }
.tier-fail { color: #f48771; }
.cursor-agent-detail-recs {
  padding: 8px 12px;
  font-size: 11px;
  color: #d4d4d4;
  border-top: 1px solid #333;
  max-height: 140px;
  overflow-y: auto;
}
.cursor-agent-detail-recs-head { font-weight: 600; margin-bottom: 6px; }
.cursor-agent-detail-recs ol { margin: 0; padding-left: 18px; }
.cursor-agent-detail-recs li { margin-bottom: 4px; line-height: 1.4; }
.cursor-agent-detail-followup {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid #3c3c3c;
}
.cursor-agent-detail-input {
  flex: 1;
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  color: #e0e0e0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}
.cursor-agent-detail-send {
  background: #0e639c;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
}
.dock-hidden { display: none !important; }

.cursor-agent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.cursor-agent-row:hover { background: #2d2d2d; }
.cursor-agent-grid {
  color: #858585;
  font-size: 14px;
  width: 16px;
  text-align: center;
  transition: color 0.15s, opacity 0.2s;
}
.cursor-agent-row.status-running .cursor-agent-grid,
.cursor-agent-row.status-polling .cursor-agent-grid {
  color: #4ec9b0;
  animation: cursor-pulse 1.2s ease-in-out infinite;
}
.cursor-agent-row.status-done .cursor-agent-grid {
  color: #6a9955;
  animation: cursor-fade-in 0.3s ease;
}
.cursor-agent-row.status-failed .cursor-agent-grid { color: #f48771; }
.cursor-todo-item.todo-polling .cursor-todo-mark {
  animation: cursor-pulse 1.2s ease-in-out infinite;
}
@keyframes cursor-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes cursor-fade-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.cursor-agent-main { flex: 1; min-width: 0; }
.cursor-agent-title { font-size: 12px; color: #cccccc; font-weight: 500; }
.cursor-agent-sub { font-size: 11px; color: #858585; margin-top: 2px; }
.cursor-agent-auto {
  font-size: 10px;
  color: #858585;
  padding: 2px 6px;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
}
.cursor-agent-stop {
  font-size: 10px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid #5a3a3a;
  color: #f48771;
  border-radius: 4px;
  cursor: pointer;
}

.cursor-agent-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #1e1e1e;
  border-left: 1px solid #3c3c3c;
  z-index: 9000;
  display: none;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}
.cursor-agent-drawer.open { display: flex; }
.cursor-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #2a2a2a;
}
.cursor-drawer-title { font-size: 13px; font-weight: 600; color: #cccccc; }
.cursor-drawer-close {
  background: transparent;
  border: none;
  color: #858585;
  cursor: pointer;
  font-size: 16px;
}
.cursor-drawer-desc, .cursor-drawer-output {
  padding: 10px 14px;
  font-size: 11px;
  color: #d4d4d4;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 35vh;
}
.cursor-drawer-recs {
  padding: 0 14px 10px;
  font-size: 11px;
  color: #cccccc;
}
.cursor-drawer-followup {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #2a2a2a;
}
.cursor-drawer-input {
  flex: 1;
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  padding: 8px 10px;
  color: #cccccc;
  font-size: 12px;
}
.cursor-drawer-send {
  padding: 8px 14px;
  background: #0e639c;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.cursor-pulse-card {
  margin: 8px 12px;
  border: 1px solid #3c5c3c;
  border-radius: 10px;
  background: #1a2a1a;
  overflow: hidden;
}
.cursor-pulse-head {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4ec9b0;
  border-bottom: 1px solid #2a3a2a;
}
.cursor-pulse-mode { color: #858585; font-weight: 400; }
.cursor-pulse-bar {
  height: 4px;
  background: #2a2a2a;
  margin: 0 12px;
}
.cursor-pulse-fill {
  height: 100%;
  background: #4ec9b0;
  width: 0%;
  transition: width 0.3s;
}
.cursor-pulse-body {
  margin: 0;
  padding: 10px 12px;
  font-size: 11px;
  color: #d4d4d4;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
}
.cursor-pulse-agents { padding: 4px 12px 10px; }
.cursor-pulse-agent-row {
  font-size: 11px;
  color: #cccccc;
  padding: 4px 0;
  cursor: pointer;
}
.cursor-pulse-agent-row:hover { color: #4ec9b0; }

.ceo-queue-badge {
  display: inline-block;
  margin: 0 8px 6px;
  padding: 3px 8px;
  font-size: 10px;
  color: #dcdcaa;
  border: 1px solid #5a5a3a;
  border-radius: 6px;
  background: rgba(220, 220, 170, 0.08);
}

@media (max-width: 768px) {
  #jarvis {
    min-height: 0;
    height: 100%;
  }
  .cursor-chat-log {
    min-height: 0;
    padding-bottom: 8px;
    overscroll-behavior: contain;
  }
  .cursor-composer {
    position: sticky;
    bottom: 0;
    z-index: 8;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .cursor-composer-bar {
    justify-content: flex-start;
  }
  .cursor-composer-box textarea {
    font-size: 16px;
  }
  .cursor-agent-detail-card {
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    top: env(safe-area-inset-top, 0px);
    transform: none;
    width: 100vw;
    max-height: none;
    height: auto;
    border-radius: 0;
  }
  .cursor-agent-detail-card.expanded {
    max-height: none;
    height: auto;
  }
  .cursor-agent-detail-actions button {
    min-width: 44px;
    min-height: 44px;
  }
  .cursor-agent-detail-input {
    font-size: 16px;
  }
  .cursor-agent-row {
    padding: 10px 12px;
  }
  .cursor-agent-detail-output .cursor-agent-p,
  .cursor-agent-detail-recs {
    font-size: 12px;
  }
  .cursor-agent-table {
    display: block;
    overflow-x: auto;
    font-size: 9px;
  }
  .jarvis-todo-strip {
    max-height: 120px;
    overflow-y: auto;
  }
  .cursor-todo-item {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .cursor-agent-detail-title {
    font-size: 12px;
  }
  .cursor-agent-detail-scope {
    font-size: 10px;
  }
}
