/* Lead Pulse V29.36 · Simple Add / Edit lead form (le2). Loads after lp-theme.css. */
html[data-theme] .le2{width:min(640px,calc(100vw - 24px))!important;max-width:640px!important}
html[data-theme] .le2 .modal-head{padding:22px 24px 16px!important;border-bottom:1px solid var(--line)}
html[data-theme] .le2 .modal-head .eyebrow{font-size:11.5px;letter-spacing:.08em;color:var(--lp-accent-ink)}
html[data-theme] .le2 .modal-head h3{margin:4px 0 4px!important;font-size:22px!important;letter-spacing:-.02em}
html[data-theme] .le2 .modal-head .sub{font-size:13.5px;color:var(--muted)}
html[data-theme] .le2 .modal-body{padding:18px 24px 8px!important;display:flex;flex-direction:column;gap:12px}
html[data-theme] .le2 .field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}
html[data-theme] .le2 .field>label,html[data-theme] .le2 .field label[for]{font-size:12.5px!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important;color:var(--soft)!important}
html[data-theme] .le2 input:not([type=checkbox]):not([type=hidden]),html[data-theme] .le2 select,html[data-theme] .le2 textarea{width:100%;min-height:44px;padding:0 13px;border-radius:11px!important;border:1px solid var(--line2)!important;background:var(--panel2)!important;color:var(--text)!important;font:inherit;font-size:14.5px}
html[data-theme] .le2 textarea{min-height:84px;padding:10px 13px;resize:vertical}
html[data-theme] .le2 input:focus,html[data-theme] .le2 select:focus,html[data-theme] .le2 textarea:focus{outline:0;border-color:var(--lp-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--lp-accent) 18%,transparent)!important}
html[data-theme] .le2 input.le-invalid{border-color:var(--red)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 18%,transparent)!important}
html[data-theme] .le2 .le-quick{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--panel)}
html[data-theme] .le2 .le-name input{min-height:50px;font-size:16.5px;font-weight:600}
html[data-theme] .le2 .le-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
html[data-theme] .le2 .le-half{max-width:calc(50% - 6px)}
html[data-theme] .le2 .le-more-label{display:flex;align-items:baseline;gap:8px;margin:6px 2px 0;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
html[data-theme] .le2 .le-more-label span{font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted);opacity:.8}
/* Sections */
html[data-theme] .le2 .le-sec{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden;transition:border-color .15s ease}
html[data-theme] .le2 .le-sec[open]{border-color:var(--line2)}
html[data-theme] .le2 .le-sec>summary{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 14px;list-style:none;cursor:pointer;user-select:none}
html[data-theme] .le2 .le-sec>summary::-webkit-details-marker{display:none}
html[data-theme] .le2 .le-sec>summary:hover{background:var(--lp-hover)}
html[data-theme] .le2 .le-sec-ic{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
html[data-theme] .le2 .le-sec-ic svg{width:18px;height:18px}
html[data-theme] .le2 .le-sec-t{flex:1;min-width:0}
html[data-theme] .le2 .le-sec-t b{display:block;font-size:14.5px;font-weight:750;color:var(--text)}
html[data-theme] .le2 .le-sec-t small{display:block;margin-top:1px;font-size:12.5px;color:var(--muted)}
html[data-theme] .le2 .le-sec-count{flex:none;padding:3px 9px;border-radius:999px;background:color-mix(in srgb,var(--green) 14%,transparent);color:var(--green);font-style:normal;font-size:11.5px;font-weight:750}
html[data-theme] .le2 .le-sec-chev{flex:none;width:9px;height:9px;margin:0 4px 4px 2px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s ease}
html[data-theme] .le2 .le-sec[open] .le-sec-chev{transform:rotate(225deg);margin-bottom:-4px}
html[data-theme] .le2 .le-sec-body{display:flex;flex-direction:column;gap:14px;padding:6px 14px 16px;border-top:1px solid var(--line);padding-top:14px}
/* Chips */
html[data-theme] .le2 .le-chips{display:flex;flex-wrap:wrap;gap:6px}
html[data-theme] .le2 .le-chip{min-height:34px;padding:0 13px;border-radius:999px;border:1px solid var(--line2);background:var(--panel2);color:var(--soft);font:inherit;font-size:13px;font-weight:650;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease}
html[data-theme] .le2 .le-chip:hover{border-color:color-mix(in srgb,var(--lp-accent) 45%,var(--line2));color:var(--text)}
html[data-theme] .le2 .le-chip.on{background:var(--lp-accent);border-color:var(--lp-accent);color:#fff}
html[data-theme] .le2 .le-chip:focus-visible{outline:2px solid var(--lp-accent);outline-offset:2px}
html[data-theme] .le2 .le-other{min-height:40px!important;font-size:13.5px!important}
html[data-theme] .le2 .le-check{display:flex;align-items:center;gap:9px;margin-top:2px;font-size:13px!important;font-weight:600!important;color:var(--soft)!important;cursor:pointer}
html[data-theme] .le2 .le-check input{width:18px;height:18px;accent-color:var(--lp-accent)}
html[data-theme] .le2 .le-hint{margin-top:6px;font-size:12.5px;color:var(--muted)}
html[data-theme] .le2 .required-dot{margin-left:6px;padding:1px 7px;border-radius:999px;background:color-mix(in srgb,var(--red) 14%,transparent);color:var(--red);font-size:10.5px;font-weight:750}
html[data-theme] .le2 .hidden{display:none!important}
html[data-theme] .le2 .duplicate-check-card{margin:0}
html[data-theme] .le2 .modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 24px!important;border-top:1px solid var(--line)}
html[data-theme] .le2 .modal-foot .btn{min-height:44px;padding:0 18px;border-radius:11px}
html[data-theme] .le2 .modal-foot .btn.primary{min-width:130px}
@media (max-width:640px){
  html[data-theme] .le2 .modal-head{padding:18px 16px 14px!important}
  html[data-theme] .le2 .modal-body{padding:14px 14px 8px!important}
  html[data-theme] .le2 .le-quick{padding:14px}
  html[data-theme] .le2 .le-row2{grid-template-columns:1fr}
  html[data-theme] .le2 .le-half{max-width:none}
  html[data-theme] .le2 .modal-foot{padding:12px 14px!important}
  html[data-theme] .le2 .modal-foot .btn{flex:1}
}
/* Header and buttons stay put; only the fields scroll. */
html[data-theme] .le2{display:flex!important;flex-direction:column;max-height:calc(100dvh - 32px)!important;overflow:hidden!important}
html[data-theme] .le2>.modal-head{flex:none}
html[data-theme] .le2>form{display:flex;flex-direction:column;flex:1;min-height:0}
html[data-theme] .le2 .modal-body{flex:1;min-height:0;overflow-y:auto!important;overscroll-behavior:contain}
html[data-theme] .le2 .modal-foot{flex:none;position:static!important;background:var(--panel)}
@media (max-width:640px){html[data-theme] .le2{max-height:calc(100dvh - 16px)!important}}
html[data-theme] .le2 .modal-body>*{flex-shrink:0}
