.lead-capture { position: fixed; z-index: 1200; inset: 0; pointer-events: none; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.lead-capture[hidden], .lead-capture [hidden] { display: none !important; }
.lead-launcher { position: fixed; left: var(--lead-anchor-left, auto); right: var(--lead-anchor-right, 22px); bottom: clamp(112px, 14vh, 156px); min-height: 44px; padding: 0 17px 0 13px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; color: #fff; background: #0b63ff; box-shadow: 0 10px 28px rgba(11, 99, 255, .28); font-size: 14px; font-weight: 700; cursor: pointer; pointer-events: auto; }
.lead-launcher:focus-visible, .lead-close:focus-visible, .lead-submit:focus-visible, .lead-success button:focus-visible, .lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 3px solid rgba(11, 99, 255, .24); outline-offset: 2px; }
.lead-launcher-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; color: #0b63ff; background: #fff; font-size: 13px; }
.lead-backdrop { position: fixed; inset: 0; background: rgba(14, 28, 52, .38); backdrop-filter: blur(2px); pointer-events: auto; }
.lead-panel { position: fixed; right: 22px; top: 50%; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; transform: translateY(-50%); border: 1px solid #dce7f5; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(15, 36, 70, .24); pointer-events: auto; }
.lead-panel-head { padding: 20px 20px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e8eef6; }
.lead-panel-head p, .lead-panel-head h2 { margin: 0; }
.lead-panel-head p { color: #0b63ff; font-size: 12px; font-weight: 700; }
.lead-panel-head h2 { margin-top: 3px; color: #15223b; font-size: 20px; line-height: 28px; }
.lead-close { width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 6px; color: #607089; background: #f3f6fa; font-size: 24px; line-height: 1; cursor: pointer; }
.lead-form { padding: 18px 20px 20px; display: grid; gap: 14px; }
.lead-case { margin: 0; padding: 10px 12px; border-left: 3px solid #0b63ff; color: #385270; background: #f3f8ff; font-size: 12px; line-height: 18px; }
.lead-form label { min-width: 0; display: grid; gap: 6px; color: #34445d; font-size: 13px; font-weight: 600; }
.lead-form label > span { display: flex; align-items: baseline; gap: 5px; }
.lead-form b { color: #cf3535; }
.lead-form label small { color: #8390a3; font-size: 11px; font-weight: 400; }
.lead-form input, .lead-form textarea { width: 100%; min-width: 0; border: 1px solid #ccd8e7; border-radius: 6px; color: #17253e; background: #fff; font-size: 16px; font-weight: 400; }
.lead-form input { height: 42px; padding: 0 12px; }
.lead-form textarea { min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 22px; }
.lead-count { justify-self: end; margin-top: -3px; }
.lead-message { min-height: 20px; margin: -3px 0 0; color: #b62f2f; font-size: 12px; line-height: 20px; }
.lead-submit, .lead-success button { min-height: 42px; border: 0; border-radius: 6px; color: #fff; background: #0b63ff; font-size: 14px; font-weight: 700; cursor: pointer; }
.lead-submit:disabled { cursor: wait; opacity: .58; }
.lead-privacy { margin: -4px 0 0; color: #8390a3; font-size: 11px; line-height: 18px; text-align: center; }
.lead-success { padding: 38px 24px 28px; text-align: center; }
.lead-success > span { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #188c5b; font-size: 24px; }
.lead-success h3 { margin: 0; color: #17253e; font-size: 20px; }
.lead-success p { margin: 10px 0 24px; color: #65758c; font-size: 14px; line-height: 22px; }
.lead-success button { width: 100%; }

@media (max-width: 700px) {
  html.lead-is-open, html.lead-is-open body { overflow: hidden; }
  .lead-launcher { left: auto; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 46px; }
  .lead-panel { inset: auto 0 0; width: 100%; max-height: min(86vh, calc(100dvh - 24px)); transform: none; border-width: 1px 0 0; border-radius: 8px 8px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .lead-panel::before { width: 38px; height: 4px; margin: 8px auto -2px; display: block; border-radius: 2px; background: #d5deea; content: ""; }
  .lead-panel-head { padding: 14px 16px 12px; }
  .lead-panel-head h2 { font-size: 18px; line-height: 25px; }
  .lead-form { padding: 14px 16px 18px; gap: 11px; }
  .lead-form textarea { min-height: 68px; }
}
