@import url('/static/fonts.css');

:root {
  --cyan: #06b6d4;
  --cyan-dim: #0891b2;
  --cyan-faint: rgba(6,182,212,.10);
  --bg-void: #020617;
  --bg-surface: #0f172a;
  --bg-elevated: #1e293b;
  --bg-hover: #273449;
  --border: rgba(255,255,255,.07);
  --border-active: rgba(6,182,212,.4);
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --orange: #f97316;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --sidebar-width: 220px;
  --chat-width: 360px;
  --transition: .15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Layout ───────────────────────────────────────────── */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 6px minmax(300px, 1fr) 6px var(--chat-width, 360px);
  grid-template-rows: 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ── Panel resize handles (sidebar + chat, shared) ── */
.panel-divider {
  background: var(--bg-elevated);
  cursor: col-resize;
  position: relative;
  z-index: 10;
  transition: background var(--transition);
}
.panel-divider:hover,
.panel-divider.dragging {
  background: var(--border-active);
}
.panel-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 32px;
  border-radius: 1px;
  background: var(--text-muted);
  opacity: 0.4;
  transition: opacity var(--transition);
}
.panel-divider:hover::after,
.panel-divider.dragging::after {
  opacity: 0.8;
  background: var(--cyan);
}
#sidebar-resize-handle { grid-column: 2; }
#chat-resize-handle    { grid-column: 4; }

/* ── Sidebar ──────────────────────────────────────────── */

.sidebar {
  grid-column: 1;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--bg-void);
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}

.sidebar-section {
  padding: 8px 0;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 16px 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 450;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.sidebar-nav-item.active {
  background: var(--cyan-faint);
  color: var(--cyan);
}

.sidebar-nav-item .material-symbols-outlined {
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: #020617;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  line-height: 1;
  margin-left: auto;
}

.sidebar-project-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg-void);
  flex-shrink: 0;
}

.sidebar-footer-name {
  font-size: 12px;
  font-weight: 500;
}

.sidebar-footer-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Main content ─────────────────────────────────────── */

.main-content {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-void);
  min-width: 0;
}

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

.page-title {
  font-size: 18px;
  font-weight: 600;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── Chat sidebar ─────────────────────────────────────── */

.chat-panel {
  grid-column: 5;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.chat-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-panel-title {
  font-size: 13px;
  font-weight: 600;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.chat-message-role {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.chat-message-role.manager { color: var(--cyan); }
.chat-message-role.user { color: var(--text-dim); }
.chat-message-role.system { color: #f59e0b; }

.chat-message-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-elevated);
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.chat-message-body ul,
.chat-message-body ol {
  padding-left: 1.4em;
  margin: 4px 0;
}

.chat-message-body p {
  margin: 4px 0;
}

.chat-message-body p:first-child { margin-top: 0; }
.chat-message-body p:last-child  { margin-bottom: 0; }

.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.stream-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}
.thinking-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: thinking-glow 1.5s ease-in-out infinite;
}
@keyframes thinking-glow {
  0%, 100% { opacity: 0.3; box-shadow: 0 0 4px var(--cyan); }
  50% { opacity: 1; box-shadow: 0 0 12px var(--cyan); }
}

.chat-message-body code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-void);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

.chat-message-body pre {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-void);
  padding: 10px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-top: 8px;
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  resize: none;
  min-height: 36px;
  max-height: 120px;
  outline: none;
  transition: border-color var(--transition);
}

.chat-input:focus {
  border-color: var(--border-active);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.btn-send {
  background: var(--cyan);
  color: var(--bg-void);
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.btn-send:hover { background: var(--cyan-dim); }

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-void);
}

.btn-primary:hover { background: var(--cyan-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: var(--red);
  color: var(--bg-void);
}

.btn-danger:hover {
  background: #c53030;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  gap: 4px;
}

/* ── Cards ────────────────────────────────────────────── */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* ── Badges ───────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.badge-cyan    { background: rgba(6,182,212,.15); color: var(--cyan); }
.badge-green   { background: rgba(34,197,94,.15); color: var(--green); }
.badge-yellow  { background: rgba(234,179,8,.15); color: var(--yellow); }
.badge-red     { background: rgba(239,68,68,.15); color: var(--red); }
.badge-orange  { background: rgba(249,115,22,.15); color: var(--orange); }
.badge-muted   { background: var(--bg-void); color: var(--text-muted); }

/* Priority badges */
.priority-low      { background: rgba(100,116,139,.12); color: var(--text-muted); }
.priority-medium   { background: rgba(59,130,246,.12);  color: #3b82f6; }
.priority-high     { background: rgba(249,115,22,.12);  color: var(--orange); }
.priority-critical { background: rgba(239,68,68,.15);   color: var(--red); border: 1px solid rgba(239,68,68,.25); }

/* ── Stats grid ───────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-delta {
  font-size: 11px;
  margin-top: 4px;
}

.stat-delta.up { color: var(--green); }
.stat-delta.down { color: var(--red); }

/* ── Progress bar ─────────────────────────────────────── */

.progress-bar {
  height: 4px;
  background: var(--bg-void);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width .3s ease;
}

/* ── HTMX loading indicator ───────────────────────────── */

.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* ── Scrollbar ────────────────────────────────────────── */

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ── Form elements ────────────────────────────────────── */

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--border-active);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--mono);
}

/* ── Onboarding wizard ────────────────────────────────── */

.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.85);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 540px;
  max-width: 90vw;
  padding: 32px;
}

.wizard-step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.wizard-step-dot {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--bg-elevated);
}

.wizard-step-dot.active { background: var(--cyan); }
.wizard-step-dot.done   { background: var(--cyan-dim); }

.wizard-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.wizard-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Kanban ───────────────────────────────────────────── */

.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  height: 100%;
  align-items: flex-start;
}

.kanban-column {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.kanban-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.kanban-column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.kanban-column-count {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-void);
  padding: 1px 7px;
  border-radius: 20px;
}

.kanban-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
  transition: background var(--transition);
}

.kanban-cards.drag-over {
  background: rgba(6, 182, 212, 0.06);
  outline: 2px dashed var(--cyan);
  outline-offset: -4px;
  border-radius: var(--radius);
}

.task-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.task-card:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.task-card-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.task-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.task-card-agent {
  font-size: 11px;
  color: var(--cyan);
  font-family: var(--mono);
}

/* ── Manager suggestion ───────────────────────────────── */

.manager-suggestion {
  position: fixed;
  bottom: 24px;
  right: calc(var(--chat-width) + 24px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 50;
}

.manager-suggestion-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.manager-suggestion-text {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.manager-suggestion-actions {
  display: flex;
  gap: 8px;
}

/* ── Tabs ─────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ── Flash messages ───────────────────────────────────── */

.flash {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
}

.flash-error   { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #fca5a5; }
.flash-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #86efac; }

/* ── Empty state ──────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .material-symbols-outlined {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: .4;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* ── Split divider (task page) ────────────────────────── */

.split-divider {
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 1200px) {
  .app-shell:not(#app-shell-task) {
    grid-template-columns: var(--sidebar-width) 6px 1fr;
  }
  .app-shell:not(#app-shell-task) .chat-panel { display: none; }
  .app-shell:not(#app-shell-task) #chat-resize-handle { display: none; }
}

@media (max-width: 768px) {
  .app-shell:not(#app-shell-task) {
    grid-template-columns: 1fr;
  }
  .app-shell:not(#app-shell-task) .sidebar { display: none; }
  .app-shell:not(#app-shell-task) #sidebar-resize-handle { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.hidden { display: none !important; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Agent Notes */
.notes-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  border-left: 2px solid var(--cyan);
  padding: 8px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.empty-hint {
  color: var(--text-muted);
  font-style: italic;
  font-family: inherit;
}

/* Blocked badge on kanban cards */
.blocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}

/* ── Attachments ── */
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
  margin-top: 6px;
  transition: background var(--transition), border-color var(--transition);
}
.attachment-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-active);
}
.attachment-link .material-symbols-outlined { font-size: 16px; }

.chat-attachment {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.chat-attachment a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 13px;
}
.chat-attachment a:hover { text-decoration: underline; }
.chat-attachment .material-symbols-outlined { font-size: 18px; }

.comment-attachment {
  margin-top: 4px;
}

.file-upload-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--cyan-faint);
  border-radius: 4px;
  font-size: 11px;
  color: var(--cyan);
  margin-top: 4px;
}
.file-upload-indicator button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}

/* ── Run Log Viewer ──────────────────────────────────── */

.run-log-viewer {
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
}

.run-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.run-log-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.run-log-header-info .badge { font-size: 10px; }

.run-log-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.run-log-close:hover { color: var(--text); }

.run-log-body {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-dim);
}
