/* RFC-3 接力条 + 思考文本面板样式（跟随 Studio 浅色主题） */

.relay-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-2, #f7f9fc);
  border: 1px solid var(--line, #d5dee9);
  border-radius: 12px;
  margin-bottom: 8px;
  min-height: 40px;
  overflow-x: auto;
  box-shadow: var(--shadow, 0 1px 2px rgba(26, 36, 51, 0.05));
}

.relay-handoff {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.relay-agent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1.5px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-3, #fff);
  color: var(--text, #1a2433);
  white-space: nowrap;
}

.relay-agent.is-active {
  background: var(--accent-soft, #d8f3ee);
  font-weight: 700;
}

.relay-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.relay-dot.is-pulsing {
  animation: relay-pulse 1.4s ease-in-out infinite;
}

@keyframes relay-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.relay-arrow {
  color: var(--muted, #66778c);
  font-size: 14px;
  font-weight: bold;
}

.relay-stage {
  font-size: 12px;
  color: var(--muted, #66778c);
  margin-left: 6px;
}

.relay-idle {
  color: var(--muted, #66778c);
  font-size: 12px;
  font-style: italic;
}

.relay-agent-model {
  font-size: 11px;
  color: var(--muted, #66778c);
  font-weight: 400;
  margin-left: 2px;
}

.relay-waiting-subagent {
  margin-left: auto;
  color: var(--accent, #0f9d8a);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.relay-thought {
  background: var(--bg-2, #f7f9fc);
  border: 1px solid var(--line, #d5dee9);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.relay-thought-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #66778c);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.relay-thought-body {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", "Menlo", monospace;
  font-size: 12px;
  color: var(--text, #1a2433);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

.relay-event-log {
  background: var(--bg-2, #f7f9fc);
  border: 1px solid var(--line, #d5dee9);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted, #66778c);
}

.relay-event-log summary {
  cursor: pointer;
  user-select: none;
}

.relay-event-list {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 0 0;
  max-height: 200px;
  overflow-y: auto;
}

.relay-event-list li {
  padding: 2px 0;
  border-bottom: 1px dotted var(--line, #d5dee9);
  font-family: ui-monospace, monospace;
}
