/* React-owned primitives only. Keep all baseline fonts, cascade and shell geometry. */
.next-auth-fields{padding:0;margin:0;border:0;min-width:0}
.next-auth-fields>.field{margin-bottom:20px}
.next-auth-fields>p{margin-bottom:16px;line-height:1.6}
.next-feature-gate{max-width:800px;line-height:1.7}
.next-feature-gate h2{margin-bottom:12px}
.next-feature-gate p{margin-bottom:20px}
.form-error:empty{display:none}
.form-error:not(:empty){display:block}
.mobile-scrim{border:0;padding:0}
@media(prefers-reduced-motion:reduce){.loading-ring{animation:none}}

.next-draft-reminder{position:fixed;z-index:12;right:24px;bottom:22px;display:flex;align-items:center;gap:12px;padding:12px 16px;background:white;border:1px solid #d8e5f3;border-radius:12px;box-shadow:0 4px 20px #17395a20;max-width:calc(100vw - 32px)}
.next-preserved-draft{padding:16px 0;border-bottom:1px solid #e4ecf4}.next-preserved-draft>h3{margin:0 0 14px}.next-preserved-draft>.row{margin-top:14px}

/* Reuse the existing control focus ring for the keyboard-scrollable setup list. */
.meta-ui > .steps[tabindex="0"]:focus-visible{outline:3px solid #65C8B9;outline-offset:3px}

/* Compact pipeline cards and the controlled, opaque pointer preview. */
.sp-main-inner .sp-lead.sp-lead-compact{height:auto;min-height:120px;padding:11px 12px 10px;margin-bottom:8px;border-radius:9px;overflow:visible;box-shadow:0 2px 5px #12397606;cursor:default}
.sp-main-inner .sp-lead-compact[data-can-drag="true"]{cursor:grab;user-select:none}
.sp-main-inner .sp-lead-compact .sp-lead-link{border-radius:inherit;user-select:none;-webkit-user-drag:none}
.sp-main-inner .sp-lead-compact .sp-lead-top{min-height:20px;padding-right:31px;margin:0}
.sp-main-inner .sp-lead-compact .sp-lead-top b{font-size:14px;line-height:20px;letter-spacing:-.15px;max-width:100%}
.sp-main-inner .sp-lead-compact .sp-lead-actions{position:absolute;top:0;right:0;width:44px;min-width:44px;height:44px;min-height:44px;margin:-10px -10px 0 0;border-radius:8px;cursor:pointer}
.sp-main-inner .sp-lead-compact .sp-lead-actions:hover{background:#EAF5F3}
.sp-main-inner .sp-lead-compact>p{font-size:12px;line-height:18px;padding-right:29px;margin:1px 0 8px;color:#5D6C88}
.sp-main-inner .sp-lead-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 8px;min-width:0;margin:0 0 7px}
.sp-main-inner .sp-lead-meta>strong{font-size:14px;line-height:19px;font-weight:650;letter-spacing:-.15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:#122742}
.sp-main-inner .sp-lead.is-selected .sp-lead-meta>strong{color:#007B80}
.sp-main-inner .sp-lead-due{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;font-size:11px;line-height:18px;color:#5D6C88}
.sp-main-inner .sp-lead-due>.ph{font-size:13px;flex:none}
.sp-main-inner .sp-lead-due>span,.sp-main-inner .sp-lead-source>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-main-inner .sp-lead-foot{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:17px}
.sp-main-inner .sp-lead-source{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;line-height:17px;color:#62708B}
.sp-main-inner .sp-lead-source .sp-source{width:16px;height:16px;flex:0 0 16px}
.sp-main-inner .sp-lead-source .sp-source .ph,.sp-main-inner .sp-lead-source .sp-source .ph-fill{font-size:16px}
.sp-main-inner .sp-lead-foot .stage-saving-label{position:static;font-size:10px;line-height:16px;white-space:nowrap;color:#007A70}
.sp-main-inner .sp-lead.dragging{opacity:.35;border-style:dashed;cursor:grabbing}
.sp-main-inner .sp-lane.drag-over{background:#F8FBFE;border-color:#E2EAF4;box-shadow:none;outline:0}
.sp-main-inner .sp-lane.drag-over .sp-lane-header h2{color:inherit}
.sp-main-inner .sp-lane-body{position:relative;flex:1;display:flex;flex-direction:column;min-width:0}
.sp-main-inner .sp-lane-body .sp-lane-cards{flex:1}
.sp-main-inner .sp-drop-target{position:absolute;inset:0;z-index:4;display:flex;align-items:flex-start;justify-content:center;min-height:100%;padding:28px 18px;border:1.5px dashed #2683ED;border-radius:7px;background:#EAF4FF;color:#345578;text-align:center;pointer-events:none}
.sp-main-inner .sp-drop-target>span{position:sticky;top:clamp(90px,28vh,240px);font-size:13px;line-height:1.6;max-width:210px}
.sp-main-inner .sp-drop-target strong{display:block;margin-top:6px;font-size:15px;font-weight:650;color:#204A78;overflow-wrap:anywhere}
.sp-drag-preview{position:fixed;top:0;left:0;z-index:1500;box-sizing:border-box;min-height:120px;padding:11px 12px 10px;border:1.5px solid #2683ED;border-radius:9px;background:#FFF;color:#122742;opacity:1;pointer-events:none;user-select:none;box-shadow:0 9px 24px #194A7A24;transform:translate3d(-10000px,-10000px,0);will-change:transform;overflow:hidden}
.sp-drag-preview .sp-lead-top{display:flex;min-height:20px;margin:0}
.sp-drag-preview .sp-lead-top b{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:20px;letter-spacing:-.15px;font-weight:650}
.sp-drag-preview>p{margin:1px 0 8px;font-size:12px;line-height:18px;color:#5D6C88;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-drag-preview .sp-lead-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 8px;min-width:0;margin:0 0 7px}
.sp-drag-preview .sp-lead-meta>strong{font-size:14px;line-height:19px;font-weight:650;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-drag-preview .sp-lead-due{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;font-size:11px;line-height:18px;color:#5D6C88}
.sp-drag-preview .sp-lead-due>.ph{font-size:13px;flex:none}
.sp-drag-preview .sp-lead-due>span,.sp-drag-preview .sp-lead-source>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-drag-preview .sp-lead-foot{display:flex;align-items:center;min-width:0;min-height:17px}
.sp-drag-preview .sp-lead-source{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;line-height:17px;color:#62708B}
.sp-drag-preview .sp-lead-source .sp-source{width:16px;height:16px;flex:0 0 16px}
.sp-drag-preview .sp-lead-source .ph,.sp-drag-preview .sp-lead-source .ph-fill{font-size:16px}
@media(min-width:992px){.sp-main-inner .sp-board{align-items:stretch}.sp-main-inner .sp-lane{display:flex;flex-direction:column}.sp-main-inner .sp-lane-header{flex:none}.sp-main-inner .sp-lane-body{min-height:max(380px,calc(100dvh - 330px))}}
.sp-main-inner .sp-board-refresh{font-size:12px;line-height:18px;color:#587163;padding:0 12px 6px;flex:none}
.sp-main-inner .sp-read-reference{font-size:11px;overflow-wrap:anywhere}
@media(max-width:600px){.sp-main-inner .sp-lead.sp-lead-compact{min-height:120px;margin-bottom:9px}.sp-main-inner .sp-board-refresh{padding-left:20px;padding-right:20px}}

/* Bounded bulk selection keeps board and list actions in the same place. */
.bulk-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:11px 14px;margin:10px 0 14px;border:1px solid #dce7ec;border-radius:10px;background:#f8fbfc;color:#43546a;font-size:13px}.bulk-toolbar.has-selection{border-color:#8bc7bc;background:#f0faf7}.bulk-toolbar>span{font-weight:600;margin-right:5px}.bulk-toolbar>small{margin-left:auto;color:#687c8d;font-size:11px}.bulk-toolbar .btn{min-height:35px;font-size:12px}.bulk-stage-select{display:block;margin:6px 0 0;padding:3px 0;border:0;background:none;color:#167768;font:inherit;font-size:11px;cursor:pointer}.bulk-stage-select:hover{text-decoration:underline}.bulk-stage-select:disabled{opacity:.5;cursor:default}.sp-main-inner .sp-lead.bulk-selected{border-color:#198c77;box-shadow:0 0 0 1px #198c77;background:#f5fcf9}.bulk-card-select{position:absolute;right:42px;top:7px;width:30px;height:30px;display:grid;place-items:center;z-index:3;cursor:pointer}.bulk-card-select input{width:15px;height:15px;accent-color:#167d6d;cursor:pointer}.sp-main-inner .sp-lead-compact:has(.bulk-card-select) .sp-lead-top{padding-right:66px}.bulk-lead-dialog{width:min(650px,calc(100vw - 24px));max-height:90dvh}.bulk-lead-dialog .modal-body{overflow:visible}.bulk-lead-dialog .field,.bulk-lead-dialog .choice-field{margin-top:16px}.bulk-scope-summary,.bulk-hint{font-size:13px;line-height:1.6;color:#5b6e80}.bulk-clear-field{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:13px}.bulk-review-card{padding:18px 20px;border:1px solid #cee5df;border-radius:12px;background:#f3faf7}.bulk-review-card>strong{font-size:16px;color:#164c43}.bulk-review-card p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}.bulk-review-card small{color:#5b746d}.bulk-progress{display:grid;gap:8px;margin:22px 0;font-size:12px;color:#526577}.bulk-progress progress{width:100%;height:9px;accent-color:#188971}.bulk-results{border-top:1px solid #e3e9ed;padding-top:13px}.bulk-results h3{font-size:14px}.bulk-results ul{max-height:240px;overflow:auto;padding:0;margin:12px 0;list-style:none}.bulk-results li{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid #edf0f3;font-size:12px}.bulk-results a{font-weight:600;color:#13796c}.bulk-results span{color:#697886}.bulk-lead-dialog .form-actions{flex-wrap:wrap}.sp-drag-preview{contain:layout paint;backface-visibility:hidden}.sp-lane.drag-over .sp-lane-header{background:#eef8fc;border-radius:9px 9px 0 0}@media(max-width:680px){.bulk-toolbar>span{flex-basis:100%}.bulk-toolbar>small{margin-left:0;flex-basis:100%}.bulk-lead-dialog .modal-body{padding:18px}.bulk-lead-dialog .form-actions>.btn{flex:1}.bulk-toolbar .btn{min-height:40px}}
