/* ═══════════════════════════════════════
   Command Stream — Unified Tasks & History
   Color: red = action, green = working/done, gray = else. No yellow.
   ═══════════════════════════════════════ */

/* ═══ LAYOUT — full width, no sidebar ═══ */
.unified-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ═══ FILTER BAR ═══ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.filter-search {
  flex: 1;
  min-width: 0;
  max-width: 220px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  color: var(--text-primary);
}

.filter-search:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(179,0,0,0.08);
}

.filter-search::placeholder { color: var(--text-muted); }

.filter-bar .filter-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-bar .filter-select {
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 5px;
  color: var(--text-primary);
  cursor: pointer;
}

.filter-spacer { flex: 1; }

.lock-btn-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.lock-btn-inline:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.lock-btn-inline .material-icons-outlined { font-size: 13px; }

.lock-btn-inline.unlocked {
  color: var(--status-success);
  border-color: var(--status-success);
}

.reset-btn-inline {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; font-size: 10px; font-weight: 500;
  background: var(--bg-primary); color: var(--text-muted);
  border: 1px solid var(--border-default); border-radius: 5px;
  cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.reset-btn-inline:hover {
  background: rgba(220,38,38,0.06); color: var(--red, #dc2626);
  border-color: var(--red, #dc2626);
}
.reset-btn-inline .material-icons-outlined { font-size: 13px; }
.reset-btn-inline.resetting {
  pointer-events: none; opacity: 0.6;
}
.reset-btn-inline.resetting .material-icons-outlined { animation: spin 0.7s linear infinite; }

/* ═══ STREAM ═══ */
.stream {
  flex: 1;
  overflow-y: auto;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ ACCORDION SECTIONS ═══ */
.stream-accordion {
  border-bottom: 1px solid var(--border-default);
}
.stream-accordion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  transition: background 0.1s;
}
.stream-accordion-header:hover { background: var(--bg-tertiary); }
.accordion-arrow {
  font-size: 10px;
  color: var(--text-muted);
  width: 12px;
}
.accordion-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.accordion-count {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}
.accordion-count.running {
  background: rgba(34, 197, 94, 0.15);
  color: var(--status-success);
}
.stream-accordion-body {
  /* no extra padding — rows handle their own */
}
.stream-empty-section {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══ VERSION BADGE ═══ */
.version-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ═══ CUSTOM DROPDOWNS ═══ */
.custom-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-trigger {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-default);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.1s, background 0.1s;
}
.dropdown-trigger:hover {
  border-color: var(--border-focus);
  background: var(--bg-tertiary);
}
.dropdown-caret {
  font-size: 8px;
  margin-left: 2px;
  opacity: 0.6;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  padding: 5px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.08s;
}
.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.dropdown-item.selected {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Header dropdown (inline in accordion header) */
.header-dropdown { margin-left: 4px; }
.header-dropdown .dropdown-trigger {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.header-dropdown .dropdown-trigger:hover {
  border-color: var(--border-default);
  background: var(--bg-primary);
}

/* ═══ HEADER BUTTONS (lock, reset) ═══ */
.accordion-spacer { flex: 1; }
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.header-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.header-btn .material-icons-outlined { font-size: 16px; }

/* ═══ ICON BUTTONS (config/run) ═══ */
.stream-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.1s;
}
.stream-btn-icon:hover { border-color: var(--border-focus); color: var(--text-primary); }
.stream-btn-icon .material-icons-outlined { font-size: 16px; }
.stream-btn-icon.run-btn { color: var(--status-success); }
.stream-btn-icon.run-btn:hover { background: rgba(34, 197, 94, 0.1); border-color: var(--status-success); }

/* ═══ HISTORY ROW ═══ */
.history-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}
.history-status-icon .material-icons-outlined { font-size: 14px; }
.history-status-icon.completed { background: rgba(34, 197, 94, 0.15); color: var(--status-success); }
.history-status-icon.failed { background: rgba(239, 68, 68, 0.15); color: var(--status-error); }
.row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding-left: 12px;
  flex-shrink: 0;
}
.meta-duration {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.meta-datetime {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.date-divider {
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-top: 2px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  margin-top: 4px;
}

/* ═══ ROW ═══ */
.stream-row {
  display: flex;
  align-items: center;
  position: relative;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.1s;
}

.stream-row:hover { background: var(--bg-tertiary); }
.stream-row.expanded { background: var(--bg-secondary); }

.row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.row-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ BADGES ═══ */
.stream-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stream-badge.completed {
  color: var(--status-success);
  background: rgba(34,197,94,0.08);
}

.stream-badge.failed {
  color: var(--status-error);
  background: rgba(220,38,38,0.06);
}

.stream-badge.running {
  color: var(--status-success);
  background: rgba(34,197,94,0.08);
}

.stream-badge.queued {
  color: var(--text-muted);
  background: var(--bg-tertiary);
}

.mini-spinner {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(34,197,94,0.3);
  border-top-color: var(--status-success);
  border-radius: 50%;
  animation: stream-spin 0.7s linear infinite;
}

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

/* ═══ ROW RIGHT: action slot ═══ */
.row-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 12px;
}

.stream-btn {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

/* Run = primary red fill */
.stream-btn.run {
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
}

.stream-btn.run:hover { opacity: 0.85; }

/* Configure = red outline */
.stream-btn.configure {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.stream-btn.configure:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* Run Again = neutral outline */
.stream-btn.run-again {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.stream-btn.run-again:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* Review text — centered in row */
.row-review {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Running spinner icon */
.running-icon {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(34,197,94,0.2);
  border-top-color: var(--status-success);
  border-radius: 50%;
  animation: stream-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ═══ EXPAND PANEL ═══ */
.expand-panel {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  padding: 12px 16px 14px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.expand-summary {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.expand-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.expand-kv { font-size: 11px; }

.expand-kv-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.expand-kv-value {
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 1px;
}

.expand-kv-value.ok { color: var(--status-success); }
.expand-kv-value.err { color: var(--status-error); }

.expand-error {
  padding: 6px 8px;
  background: rgba(220,38,38,0.04);
  border-left: 2px solid var(--status-error);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--status-error);
  line-height: 1.4;
  margin-bottom: 10px;
}

/* ═══ EXPAND: Files ═══ */
.expand-files {
  margin-bottom: 10px;
}
.expand-files-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.expand-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 5px;
  font-size: 11px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.expand-file-row .file-name {
  flex: 1;
  font-family: var(--font-mono);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.expand-file-row .file-size {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.file-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.1s, background 0.1s;
  flex-shrink: 0;
}
.file-download-btn:hover {
  color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.expand-docs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.expand-doc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 5px;
  font-size: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.expand-doc:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.expand-doc .material-icons-outlined { font-size: 13px; }

/* Available task expand */
.expand-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.expand-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Running expand — live feed */
.expand-feed {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.feed-entry {
  display: flex;
  gap: 8px;
  padding: 1px 0;
}

.feed-time {
  color: var(--text-muted);
  flex-shrink: 0;
}

.feed-msg {
  color: var(--text-secondary);
  flex: 1;
}

.feed-msg.ok { color: var(--status-success); }
.feed-msg.err { color: var(--status-error); }
.feed-msg.step { color: var(--accent-primary); }

/* ═══ EXPAND ACTIONS ═══ */
.expand-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
  border-radius: 5px;
  cursor: pointer;
}

.btn-report:hover { opacity: 0.85; }
.btn-report .material-icons-outlined { font-size: 13px; }

.btn-config-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s;
}

.btn-config-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-config-link .material-icons-outlined { font-size: 13px; }

.expand-actions .spacer { flex: 1; }

.btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s;
}

.btn-delete:hover {
  color: var(--status-error);
  background: rgba(220,38,38,0.06);
}

.btn-delete .material-icons-outlined { font-size: 13px; }

.btn-stop {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--status-error);
  border: 1px solid rgba(220,38,38,0.2);
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-stop:hover {
  background: rgba(220,38,38,0.06);
}

/* ═══ REPORT MODAL ═══ */
.report-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.report-overlay.hidden { display: none; }

.report-modal {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  width: 560px;
  max-height: 88%;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.report-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.report-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  margin: 0;
}

.report-close {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.report-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.report-status-bar {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  font-size: 11px;
  align-items: center;
}

.report-stat { color: var(--text-muted); }
.report-stat strong { color: var(--text-primary); }

.report-section { margin-bottom: 16px; }
.report-section:last-child { margin-bottom: 0; }

.report-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.report-metric {
  text-align: center;
  padding: 8px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.report-metric-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.report-metric-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

.report-docs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.report-doc:hover { border-color: var(--accent-primary); }
.report-doc .material-icons-outlined { font-size: 18px; color: var(--accent-primary); }

.report-doc-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.report-doc-meta {
  font-size: 9px;
  color: var(--text-muted);
}

/* Timeline */
.rt { display: flex; flex-direction: column; }

.rt-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 10px;
}

.rt-entry:last-child { border-bottom: none; }

.rt-time {
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 50px;
}

.rt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.rt-dot.green { background: var(--status-success); }
.rt-dot.red { background: var(--status-error); }
.rt-dot.gray { background: var(--text-muted); }

.rt-text {
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.4;
}

.report-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-default);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

/* ═══ CONFIG VIEW (within unified layout) ═══ */
.stream-config-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.stream-config-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}

.stream-config-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  padding: 3px 6px;
}

.stream-config-back .material-icons-outlined { font-size: 14px; }

.stream-config-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

/* ═══ EMPTY STATE ═══ */
.stream-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.stream-empty .material-icons-outlined {
  font-size: 48px;
  opacity: 0.5;
  margin-bottom: 12px;
  display: block;
}

/* ═══ BUTTON STATES ═══ */
.stream-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.stream-btn.loading {
  opacity: 0.7;
  cursor: wait;
}
.stream-btn-icon.loading {
  opacity: 0.5;
  pointer-events: none;
  cursor: wait;
}
.stream-btn-icon.loading .material-icons-outlined {
  animation: spin 0.75s linear infinite;
}

/* ═══ EXPAND: Activity Timeline ═══ */
.expand-timeline {
  margin-bottom: 10px;
}

.expand-timeline-title {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 0;
  font-size: 10px;
}

.timeline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-dot.green { background: var(--status-success); }
.timeline-dot.red { background: var(--status-error); }
.timeline-dot.gray { background: var(--text-muted); }

.timeline-time {
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 50px;
}

.timeline-text {
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.4;
}

/* ═══ EXPAND: Help Details ═══ */
.expand-help {
  padding: 8px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 10px;
}

.expand-help-title {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.expand-help-field {
  display: flex;
  gap: 6px;
  padding: 2px 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

.expand-help-label {
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 50px;
}

/* ═══ EXPAND: Running Progress ═══ */
.expand-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 10px;
}

.expand-progress-text {
  color: var(--text-secondary);
  flex: 1;
}

.expand-confidence {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.expand-confidence.high {
  color: var(--status-success);
  background: rgba(34,197,94,0.08);
}

.expand-confidence.medium {
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.expand-confidence.low {
  color: var(--status-error);
  background: rgba(220,38,38,0.06);
}

/* ═══ EXPAND: Error Log Entries ═══ */
.expand-error-entry {
  padding: 4px 8px;
  background: rgba(220,38,38,0.04);
  border-left: 2px solid var(--status-error);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--status-error);
  line-height: 1.4;
  margin-bottom: 4px;
}

.expand-error-entry .error-time {
  color: var(--text-muted);
  font-size: 9px;
}

/* ═══ REPORT: Summary Section ═══ */
.report-summary {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 14px;
}
