/* Spec 030 — Agentic Ops Mission Board */
.ao-shell {
  display: grid;
  grid-template-columns: 200px 1fr minmax(300px, 360px);
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: start;
}
.ao-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #333);
}
.ao-status-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted, #94a3b8);
}
.ao-fleet-rail {
  position: sticky;
  top: 0.5rem;
}
.ao-fleet-rail h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted, #888);
  margin-bottom: 0.5rem;
}
.ao-fleet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.ao-fleet-item:hover { background: rgba(255, 255, 255, 0.04); }
.ao-fleet-item--active { border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.ao-fleet-item--pulse .ao-fleet-dot { animation: ao-pulse 1.5s ease-in-out infinite; }
.ao-fleet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}
.ao-fleet-dot--active { background: #22c55e; }
@keyframes ao-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.ao-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0.65rem;
  min-height: 200px;
}
.ao-board-col h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border, #444);
}
.ao-board-col--critical h4 { border-color: #ef4444; color: #fca5a5; }
.ao-board-col--high h4 { border-color: #f97316; color: #fdba74; }
.ao-board-col--warn h4 { border-color: #eab308; color: #fde047; }
.ao-board-col--ok h4 { border-color: #64748b; color: #94a3b8; }
.ao-incident-card {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border, #333);
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ao-incident-card:hover { border-color: #3b82f6; }
.ao-incident-card--active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}
.ao-incident-title { font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.ao-incident-meta { font-size: 0.72rem; color: var(--muted, #888); }
.ao-incident-action {
  font-size: 0.78rem;
  color: var(--muted, #aaa);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ao-incident-actions { display: flex; gap: 0.35rem; margin-top: auto; flex-wrap: wrap; }
.ao-context-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 420px;
  position: sticky;
  top: 0.5rem;
}
.ao-thread-messages {
  flex: 1;
  overflow-y: auto;
  max-height: 280px;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 0.85rem;
}
.ao-bubble { margin: 0.4rem 0; padding: 0.5rem 0.65rem; border-radius: 8px; }
.ao-bubble-agent { background: rgba(59, 130, 246, 0.12); border-left: 3px solid #3b82f6; }
.ao-bubble-human { background: rgba(34, 197, 94, 0.1); border-left: 3px solid #22c55e; }
.ao-bubble-meta { font-size: 0.7rem; color: var(--muted, #888); margin-bottom: 0.2rem; }
.ao-timeline {
  margin-top: 1rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border, #333);
}
.ao-timeline-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ao-mobile-tabs { display: none; }
.ao-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted, #888);
  grid-column: 1 / -1;
}
.ao-skeleton {
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: ao-shimmer 1.2s infinite;
}
@keyframes ao-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 1100px) {
  .ao-shell { grid-template-columns: 1fr; }
  .ao-mobile-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }
  .ao-mobile-tabs button.active { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; }
  .ao-pane { display: none; }
  .ao-pane--active { display: block; }
  .ao-fleet-rail, .ao-context-panel { position: static; }
  .ao-board { grid-template-columns: 1fr 1fr; }
}
