/* 全局产品化 UX 层：页面上下文、产出说明、操作记录、新手引导 */
.ux-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 12px; margin: 0 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); font-size: 12px; color: var(--muted);
}
.ux-bc { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ux-bc b { color: var(--ink); font-weight: 600; }
.ux-bc .ux-group { color: #64748b; }
.ux-out { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ux-out-label { color: #94a3b8; font-size: 11px; letter-spacing: .5px; white-space: nowrap; }
.ux-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 11.5px;
  border: 1px solid #e2e8f0; white-space: nowrap;
}
.ux-chip::before { content: "→"; color: #94a3b8; font-size: 10px; }
.ux-spacer { flex: 1; }
.ux-status { display: inline-flex; align-items: center; gap: 5px; color: #64748b; white-space: nowrap; }
.ux-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; display: inline-block; }
.ux-dot.warn { background: #f59e0b; }
.ux-dot.off { background: #cbd5e1; }
.ux-actions { display: flex; align-items: center; gap: 6px; }
.ux-btn {
  border: 1px solid var(--line); background: #fff; color: #475569;
  border-radius: 7px; padding: 4px 9px; font-size: 11.5px; cursor: pointer;
}
.ux-btn:hover { background: #f8fafc; color: var(--ink); border-color: #cbd5e1; }
.ux-btn.primary { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.ux-onboarding {
  margin: -4px 0 12px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid #dbeafe; background: linear-gradient(180deg,#f8fbff,#fff);
}
.ux-onboarding h4 { margin: 0 0 4px; font-size: 13px; color: #0f172a; }
.ux-onboarding p { margin: 0 0 10px; color: #64748b; font-size: 12px; }
.ux-ob-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.ux-ob-step {
  display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px;
  background: #fff; border: 1px solid #e8eef7; border-radius: 8px; cursor: pointer;
}
.ux-ob-step:hover { border-color: #bfdbfe; }
.ux-ob-num {
  width: 20px; height: 20px; border-radius: 50%; background: #2563eb; color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: 0 0 20px;
}
.ux-ob-step b { display: block; font-size: 12px; color: #0f172a; }
.ux-ob-step span { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.ux-ob-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ux-log-item { padding: 9px 0; border-bottom: 1px dashed #eef2f7; font-size: 12px; }
.ux-log-item:last-child { border-bottom: 0; }
.ux-log-item .t { color: #0f172a; font-weight: 500; }
.ux-log-item .d { color: #94a3b8; font-size: 11px; margin-top: 2px; }
.ux-toast {
  position: fixed; right: 22px; bottom: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 12px; max-width: 420px;
  padding: 10px 12px; border-radius: 9px; background: #0f172a; color: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.25); font-size: 12.5px;
}
.ux-toast button {
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #93c5fd;
  border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 12px;
}
.ux-toast button:hover { background: rgba(255,255,255,.08); }
@media (max-width: 900px) {
  .ux-ob-steps { grid-template-columns: 1fr; }
  .ux-bar { gap: 8px; }
  .ux-status { display: none; }
}
