.ai-apply-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 12px 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.78rem;
  line-height: 1.4;
}
body.light .ai-apply-bar {
  background: rgba(241, 245, 249, 0.9);
  border-color: #e2e8f0;
}
.ai-apply-bar .ai-apply-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-right: 4px;
}
.ai-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}
.ai-mode-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ai-mode-badge.ask {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(125, 211, 252, 0.08);
}
.ai-mode-badge.ask .dot { background: #7dd3fc; }
.ai-mode-badge.preview {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}
.ai-mode-badge.preview .dot { background: #fbbf24; }
.ai-mode-badge.apply {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}
.ai-mode-badge.apply .dot { background: #34d399; }
.ai-apply-env {
  margin-left: auto;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}
