/* LoanDesk360 build map · user context — picker + badge */
.ld-up-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: ld-up-fade 0.2s ease-out;
}
@keyframes ld-up-fade { from { opacity: 0; } to { opacity: 1; } }
.ld-up-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 32px 64px -20px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.06);
  width: 100%; max-width: 460px;
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0f172a;
  overflow: hidden;
  animation: ld-up-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ld-up-pop { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.ld-up-head { padding: 22px 24px 14px; }
.ld-up-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ld-up-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.ld-up-brand-text { font-weight: 700; font-size: 14px; color: #0f172a; letter-spacing: -0.01em; }
.ld-up-blue { color: #2563eb; }
.ld-up-card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.ld-up-sub { margin: 0; font-size: 13px; color: #475569; line-height: 1.5; }

.ld-up-list { padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.ld-up-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: white; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.12s;
  font-family: inherit; color: inherit;
}
.ld-up-row:hover { background: #f5f9ff; border-color: #bcd3ff; transform: translateX(2px); }
.ld-up-row:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }
.ld-up-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  color: white; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.5px;
}
.ld-up-rowbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ld-up-name { font-weight: 600; font-size: 14px; color: #0f172a; }
.ld-up-role { font-size: 11px; color: #64748b; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.4px; }
.ld-up-arrow { color: #94a3b8; font-size: 18px; transition: transform 0.12s; }
.ld-up-row:hover .ld-up-arrow { transform: translateX(3px); color: #2563eb; }

.ld-up-other { padding: 16px 24px 22px; }
.ld-up-other[hidden] { display: none; }
.ld-up-list[hidden] { display: none; }
.ld-up-other label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; font-family: 'JetBrains Mono', monospace; }
.ld-up-other input {
  width: 100%; padding: 11px 13px;
  border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; font-size: 14px; color: #0f172a;
  background: white;
}
.ld-up-other input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.ld-up-other-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.ld-up-btn {
  padding: 10px 16px; border-radius: 10px;
  background: #2563eb; color: white; border: none;
  font: inherit; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all 0.15s;
}
.ld-up-btn:hover { background: #1d4ed8; }
.ld-up-btn-ghost { background: transparent; color: #475569; border: 1px solid #e2e8f0; }
.ld-up-btn-ghost:hover { background: #f5f9ff; color: #1d4ed8; border-color: #bcd3ff; }
.ld-up-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: transparent; color: #64748b;
  cursor: pointer; font-size: 24px; line-height: 1;
}
.ld-up-close:hover { background: #f1f5f9; color: #0f172a; }

/* Badge */
#ld-user-badge {
  position: fixed; bottom: 18px; left: 18px;
  z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.18);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px; color: #0f172a;
  max-width: calc(100vw - 36px);
}
#ld-user-badge .ld-ub-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  color: white; font-weight: 700; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.4px;
}
#ld-user-badge .ld-ub-text { display: flex; flex-direction: column; line-height: 1.1; }
#ld-user-badge .ld-ub-label { font-size: 9px; color: #64748b; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.6px; }
#ld-user-badge .ld-ub-name { font-weight: 600; font-size: 13px; }
#ld-user-badge .ld-ub-switch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #f8fafc;
  cursor: pointer; color: #475569;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.15s;
  margin-left: 4px;
}
#ld-user-badge .ld-ub-switch:hover { background: #ebf2ff; color: #1d4ed8; border-color: #bcd3ff; }

@media (max-width: 540px) {
  #ld-user-badge { bottom: 10px; left: 10px; right: 10px; max-width: none; }
}
