
#lgact-mask {
  position: fixed; inset: 0; z-index: 2147483200;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(17, 23, 35, 0.45);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#lgact-mask.is-open { display: flex; animation: lgactFade 0.16s ease; }
@keyframes lgactFade { from { opacity: 0; } to { opacity: 1; } }
#lgact-mask * { box-sizing: border-box; }
.lgact-modal {
  width: 480px; max-width: 100%; background: #fff; border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2); padding: 22px 24px 20px; color: #1f2329;
  animation: lgactPop 0.18s ease;
}
@keyframes lgactPop { from { transform: translateY(8px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.lgact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lgact-title { font-size: 17px; font-weight: 650; line-height: 1.4; }
.lgact-close { border: none; background: none; font-size: 20px; color: #98a2b3; cursor: pointer; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.lgact-close:hover { background: #f2f4f7; color: #475467; }
.lgact-sub { font-size: 13px; color: #667085; line-height: 1.6; margin-bottom: 16px; }

/* 智能体身份条 */
.lgact-agent { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; box-shadow: inset 0 0 0 1px #eef1f5; margin-bottom: 18px; }
.lgact-agent__avatar { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 650; flex: 0 0 34px; }
.lgact-agent__name { font-size: 14px; font-weight: 600; color: #1f2329; }
.lgact-agent__meta { font-size: 12px; color: #f79009; margin-top: 2px; }

/* 步骤指示 */
.lgact-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.lgact-step { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #98a2b3; }
.lgact-step__dot { width: 20px; height: 20px; border-radius: 50%; background: #eef1f5; color: #98a2b3; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: 0 0 20px; }
.lgact-step.is-active { color: #2970ff; font-weight: 600; }
.lgact-step.is-active .lgact-step__dot { background: #2970ff; color: #fff; }
.lgact-step.is-done .lgact-step__dot { background: #16a34a; color: #fff; }
.lgact-step__line { flex: 1 1 auto; height: 1px; min-width: 14px; background: #eef1f5; }

/* 表单 */
.lgact-field { margin-bottom: 14px; }
.lgact-label { font-size: 13px; font-weight: 500; margin-bottom: 7px; color: #344054; }
.lgact-label.req::after { content: " *"; color: #f04438; }
.lgact-input { width: 100%; border: 1px solid #e4e7ec; border-radius: 9px; padding: 9px 12px; font-size: 13px; font-family: inherit; outline: none; color: #1f2329; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.lgact-input::placeholder { color: #98a2b3; }
.lgact-input:focus { border-color: #2970ff; box-shadow: 0 0 0 3px rgba(41, 112, 255, 0.12); }
.lgact-input:disabled { background: #f7f8fa; color: #98a2b3; cursor: not-allowed; }
.lgact-hint { font-size: 12px; color: #98a2b3; margin-top: 6px; line-height: 1.5; }
.lgact-err { font-size: 12px; color: #f04438; margin-top: 6px; display: none; }
.lgact-err.is-show { display: block; }

.lgact-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.lgact-btn { border-radius: 9px; padding: 9px 18px; font-size: 14px; font-family: inherit; cursor: pointer; border: 1px solid transparent; font-weight: 500; }
.lgact-ghost { background: #fff; border-color: #e4e7ec; color: #475467; }
.lgact-ghost:hover { background: #f9fafb; }
.lgact-primary { background: #2970ff; color: #fff; }
.lgact-primary:hover { background: #1c60f0; }
.lgact-primary:disabled { background: #a9c4ff; cursor: default; }
.lgact-spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 7px; animation: lgactSpin 0.7s linear infinite; }
@keyframes lgactSpin { to { transform: rotate(360deg); } }

/* 成功态 */
.lgact-done { text-align: center; padding: 8px 4px 4px; }
.lgact-done__badge { width: 56px; height: 56px; border-radius: 50%; background: #ecfdf3; color: #16a34a; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lgact-done__title { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.lgact-done__desc { font-size: 13px; color: #667085; line-height: 1.6; margin-bottom: 20px; }
