/* ── 请求回放：模型改写块 ─────────────────────────────── */

.routing-exec-rewrite {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.routing-exec-rewrite[data-kind='compact'] { border-color: var(--primary-bd); }
.routing-exec-rewrite[data-kind='vision'] { border-color: var(--warn-bd); }
.routing-exec-rewrite-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.routing-exec-rewrite-head > b { font-size: 13px; font-weight: 600; }
.routing-exec-rewrite-head > span { color: var(--text-3); font-size: 11.5px; }
.routing-exec-rewrite-flow { display: flex; align-items: stretch; gap: 8px; }
.routing-exec-rewrite-node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.routing-exec-rewrite-node > span { color: var(--text-3); font-size: 10.5px; }
.routing-exec-rewrite-node > b { font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.routing-exec-rewrite-node.is-accent { border-color: var(--primary-bd); background: var(--primary-soft); }
.routing-exec-rewrite-node.is-accent > b { color: var(--primary-fg); }
.routing-exec-rewrite-arrow { display: flex; flex: none; align-items: center; color: var(--text-3); }

@container routing-detail (max-width: 560px) {
  .routing-exec-rewrite-flow { flex-direction: column; }
  .routing-exec-rewrite-arrow { justify-content: center; transform: rotate(90deg); }
}
@media (max-width: 767px) {
  .routing-exec-rewrite-flow { flex-direction: column; }
  .routing-exec-rewrite-arrow { justify-content: center; transform: rotate(90deg); }
}
