.lead-import-dialog{width:min(1120px,calc(100vw - 32px));max-width:none;color:var(--navy,#153957)}
.lead-import{--import-border:#dce6ee;--import-muted:#5d7085;color:#153957;min-width:0}
.lead-import p{line-height:1.65;max-width:92ch;margin:0 0 16px}.lead-import h3,.lead-import h4{color:#153957;margin:22px 0 12px;font-family:inherit;font-weight:700}.lead-import h3{font-size:21px}.lead-import h4{font-size:17px}.lead-import-intro{color:var(--import-muted)}
.lead-import-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--import-border);padding-bottom:16px;margin-bottom:18px}.lead-import-tabs [aria-selected=true]{background:#153957;color:#fff;border-color:#153957}.lead-import label{display:flex;flex-direction:column;gap:7px;font-weight:600;min-width:0;margin-bottom:16px}.lead-import small{color:var(--import-muted);font-size:12px;font-weight:400}.lead-import input,.lead-import select,.lead-import textarea{box-sizing:border-box;min-width:0;width:100%;max-width:100%;border:1px solid #b8cad9;border-radius:8px;padding:11px 12px;font:inherit;color:#153957;background:#fff;min-height:46px}.lead-import textarea{line-height:1.6;resize:vertical}.lead-import input[type=file]{font-size:14px}.lead-import input[type=checkbox],.lead-import input[type=radio]{width:18px;min-height:18px;height:18px;flex:0 0 18px;margin:3px 0}.lead-import input[type=date]{min-height:48px}.lead-import select[multiple]{min-height:100px;padding-bottom:12px}.lead-import :focus-visible{outline:3px solid #ffbc91;outline-offset:3px}.lead-import .button{min-height:44px;white-space:normal}.lead-import .button.primary{background:#ff5b19;border-color:#ff5b19;color:#fff}.lead-import button:disabled{opacity:.55;cursor:not-allowed}
.lead-import-note{background:#f4f7fa;border-left:3px solid #ff5b19;border-radius:6px;padding:14px 16px;font-size:13px;color:#455e75}.lead-import-defaults,.lead-import-source-config,.lead-import-review,.lead-import-source{border:1px solid var(--import-border);border-radius:12px;padding:20px;margin:24px 0;min-width:0}.lead-import-defaults legend{font-weight:700;padding:0 7px}.lead-import-defaults>p{font-size:13px;color:var(--import-muted)}.lead-import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;align-items:start}.lead-import-map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}.lead-import-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.lead-import-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--import-border);border-radius:9px;margin:16px 0;max-height:580px}.lead-import table{border-collapse:collapse;min-width:840px;width:100%;table-layout:fixed}.lead-import th{text-align:left;background:#f2f6fa;color:#153957;font-size:12px;padding:12px;vertical-align:top}.lead-import th:first-child{width:64px}.lead-import th:last-child{width:145px}.lead-import td{padding:12px;border-top:1px solid var(--import-border);vertical-align:top}.lead-import-cell-label{font-size:11px!important;font-weight:400!important;color:var(--import-muted);margin-bottom:8px!important}.lead-import td input:not([type=checkbox]){font-size:13px;min-height:40px;padding:8px}.lead-import-badge{display:inline-block;background:#eaf2f8;color:#183a55;border-radius:6px;padding:5px 8px;font-size:12px;font-weight:600;line-height:1.5;margin-bottom:8px}.lead-import [data-import-row-editor] fieldset{border:1px solid var(--import-border);border-radius:8px;padding:16px;min-width:0}.lead-import [data-import-row-editor] legend{font-weight:700;padding:0 6px}.lead-import-consent{display:flex!important;flex-direction:row!important;gap:10px!important;font-size:14px;align-items:flex-start}.lead-import-recovery{background:#fff3e8;border:1px solid #f3c49b;border-radius:8px;padding:16px;margin-bottom:20px;display:flex;gap:10px;flex-wrap:wrap}.lead-import-recovery[hidden]{display:none}.lead-import-recovery p{width:100%;font-size:13px;margin:4px 0 0}.lead-import-success{border:1px solid #bbd5cc;background:#eff8f3;border-radius:10px;padding:20px;margin-top:20px}.lead-import-success h3{margin-top:0}.lead-import-source ul{padding-left:20px;line-height:1.8}.lead-import-source h4{margin-top:0}.lead-import [data-import-status]:empty{display:none}.lead-import [data-import-status].is-error{padding:14px;border-radius:8px;border-left:3px solid #b32a2a;background:#fff1ef}
.lead-import-input-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin:22px 0 26px}.lead-import-input-option{min-width:0;border:1px solid var(--import-border);border-radius:12px;padding:20px;background:#fbfcfe}.lead-import-input-option h4{margin-top:0}.lead-import-input-option>p{font-size:14px}.lead-import-input-option label:last-child{margin-bottom:0}.lead-import-paste-example{margin-top:20px;padding-top:16px;border-top:1px solid var(--import-border);min-width:0}.lead-import-paste-example summary{font-weight:600;cursor:pointer;line-height:1.6;padding:4px 0}.lead-import-paste-example p{font-size:13px;margin:12px 0}.lead-import-paste-example pre{box-sizing:border-box;max-width:100%;overflow-x:auto;padding:12px;border:1px solid var(--import-border);border-radius:8px;background:#fff;font-size:12px;line-height:1.7;tab-size:4;margin:0}.lead-import-paste-example code{font:inherit}
@media(max-width:760px){.lead-import-input-options{grid-template-columns:minmax(0,1fr);gap:16px}.lead-import-input-option{padding:16px}}
@media(max-width:700px){.lead-import-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);margin:10px auto}.lead-import-grid,.lead-import-map-grid{grid-template-columns:minmax(0,1fr)}.lead-import-defaults,.lead-import-source-config,.lead-import-review,.lead-import-source{padding:14px;margin:20px 0}.lead-import-tabs{gap:6px}.lead-import-tabs .button{flex:1;padding:10px 8px;font-size:13px}.lead-import-actions>.button{flex:1 1 180px}.lead-import-dialog .leads-dialog-body{padding:18px}.lead-import p{font-size:14px}.lead-import-table-wrap{max-height:500px}.lead-import label small{margin-top:-3px}}
.lead-import-tag-panel{margin-top:18px;padding-top:18px;border-top:1px solid var(--import-border)}
.lead-import-tag-panel h4 small{font-size:12px;font-weight:500}
.lead-import-tag-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.lead-import-tag-create label{margin-bottom:0}
.lead-import-tag-panel .lead-import-actions{padding-bottom:8px}
.lead-import-tag-status{font-size:13px;color:var(--import-muted);overflow-wrap:anywhere}
.lead-import-tag-status:empty{display:none}
.lead-import-match-panel{margin-top:24px;padding:22px;border:1px solid var(--import-border);border-left:3px solid #ff5b19;border-radius:12px;background:#fbfcfe}
.lead-import-match-panel h4{margin-top:0}
.lead-import-match-panel h5{font-size:16px;line-height:1.5;margin:0 0 10px}
.lead-import-incoming{padding:16px 18px;margin:16px 0;border:1px solid #f2d7c2;border-radius:10px;background:#fff8f0}
.lead-import-incoming p{margin:7px 0 0;overflow-wrap:anywhere}
.lead-import-match-panel fieldset{min-width:0;border:1px solid var(--import-border);border-radius:10px;padding:18px}
.lead-import-match-panel legend{font-weight:700;padding:0 7px}
.lead-import-match-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.lead-import-match-card{padding:18px;border:1px solid #cbd8e4;border-radius:10px;background:#fff;overflow-wrap:anywhere;min-width:0}
.lead-import-match-card p{font-size:13px;margin-bottom:12px}
.lead-import-match-card dl{margin:12px 0;display:grid;gap:10px}
.lead-import-match-card dt{font-size:11px;font-weight:650;color:var(--import-muted);margin-bottom:3px}
.lead-import-match-card dd{margin:0;font-size:13px;line-height:1.55}
.lead-import-match-reasons{color:#526b82}
.lead-import-match-card .lead-import-consent{font-weight:650;margin:12px 0 0;padding-top:12px;border-top:1px solid var(--import-border)}
.lead-import-match-card .lead-import-share-choice{padding:12px;border:1px solid #f2d0b3;border-radius:8px;background:#fff7ed;font-size:13px}
.lead-import [data-import-row-choice]{display:block;margin:4px 0 10px;line-height:1.5}
.lead-import-column-samples{display:grid;gap:5px;min-width:0;padding:10px 12px;border:1px solid var(--import-border);border-radius:7px;background:#f4f7fa;overflow-wrap:anywhere;line-height:1.6}
.lead-import-column-samples span{display:block;font-weight:400}
.lead-import-update-mode{padding:18px 20px;border:1px solid var(--import-border);border-left:3px solid #ff5b19;border-radius:10px;background:#f5f8fc;margin:20px 0}
.lead-import-update-mode .lead-import-consent{margin:0 0 10px;font-weight:700;line-height:1.6}
.lead-import-update-mode p{font-size:13px;line-height:1.7;margin:0;color:var(--import-muted)}
.lead-import-mapping-issue{margin:12px 0 18px;padding:14px 16px;border:1px solid #ebc7ba;border-left:3px solid #b44021;border-radius:8px;background:#fff5ed;overflow-wrap:anywhere;line-height:1.6}
.lead-import-mapping-issue:empty{display:none}
.lead-import [data-import-map][aria-invalid=true]{border-color:#b44021;box-shadow:0 0 0 1px #b44021}
@media(max-width:760px){.lead-import-match-list{grid-template-columns:minmax(0,1fr)}.lead-import-tag-create{grid-template-columns:minmax(0,1fr)}.lead-import-tag-create .button{width:100%}.lead-import-match-panel{padding:14px}.lead-import-match-panel fieldset{padding:14px}}

.lead-import [data-import-new-defaults][hidden]{display:none}

.lead-import-formula-warning{margin:20px 0;padding:18px 20px;border:1px solid #efc89b;border-left:3px solid #ff5b19;border-radius:10px;background:#fff7ed;color:#153957;min-width:0;overflow-wrap:anywhere;line-height:1.7}
.lead-import-formula-warning[hidden]{display:none}
.lead-import-formula-warning h4{margin:0 0 10px}
.lead-import-formula-warning p{font-size:13px;margin:8px 0}
.lead-import-formula-warning details{margin-top:14px;padding-top:12px;border-top:1px solid #efc89b}
.lead-import-formula-warning summary{cursor:pointer;font-weight:650;padding:5px 0;line-height:1.7}
.lead-import-formula-warning ul{padding-left:22px;margin:12px 0;display:grid;gap:12px}
.lead-import-formula-warning li strong,.lead-import-formula-warning li>span{display:block}
.lead-import-formula-warning li>span{font-size:12px;color:#455e75}
.lead-import-formula-warning code{font-size:12px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.lead-import-formula-warning{padding:14px 16px}}

.lead-import-dialog{--import-dialog-header:65px;scroll-padding-top:var(--import-dialog-header)}
.lead-import-dialog>header{position:sticky;top:0;z-index:3;background:#fff;padding:12px 22px}
.lead-import [hidden]{display:none!important}
.lead-import-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0 0 16px}
.lead-import-steps li{padding:7px 12px;border:1px solid var(--import-border);border-radius:8px;color:var(--import-muted);font-size:13px}
.lead-import-steps [aria-current=step]{border-color:#a8c2d9;background:#edf4fa;color:#153957;font-weight:700}
.lead-import [data-import-setup]>h3,.lead-import-review>h3{margin:0 0 8px}
.lead-import-optional{margin:8px 0;padding:0 12px;border:1px solid var(--import-border);border-radius:8px}
.lead-import-optional>summary{min-height:44px;line-height:1.5;padding:11px 0;cursor:pointer;font-weight:600}
.lead-import-optional[open]>summary{margin-bottom:10px}
.lead-import-owner{max-width:420px}
.lead-import-source-actions:not(:empty){margin-top:12px}.lead-import-source-actions .button{max-width:100%;white-space:normal}.lead-import-loaded-file{font-size:13px;margin:0 0 8px;overflow-wrap:anywhere}
.lead-import-review{margin-top:12px}
.lead-import-review [data-import-count]{font-weight:700;margin:0 0 6px}
.lead-import-review [data-import-next-step]{margin-bottom:8px}
.lead-import-review-actions{position:sticky;top:var(--import-dialog-header);z-index:2;background:#fff;border-bottom:1px solid var(--import-border);padding:8px 0 12px}
.lead-import-review-actions .lead-import-actions{margin:0}
.lead-import [data-import-checked=false] :is(.lead-import-badge,[data-import-row-review],[data-import-row-choice]){display:none}
.lead-import #lead-import-match-title,.lead-import [data-import-row-editor] legend{scroll-margin-top:108px}
@media(max-width:700px){
  .lead-import-review-actions .lead-import-actions>.button{flex:1 1 auto}
  .lead-import-table-wrap{max-height:min(500px,60dvh)}
  .lead-import-table-wrap table{display:block;min-width:0}
  .lead-import-table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .lead-import-table-wrap tbody,.lead-import-table-wrap tr,.lead-import-table-wrap td{display:block}
  .lead-import-table-wrap tr{padding:10px 12px;border-bottom:1px solid var(--import-border)}
  .lead-import-table-wrap td{border:0;padding:0}
  .lead-import-table-wrap td:nth-child(1){margin-bottom:8px}
  .lead-import-table-wrap td:last-child{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
  .lead-import-table-wrap td:last-child button{padding:8px 10px}
  .lead-import-table-wrap td input:not([type=checkbox]){font-size:16px}
}
