/* Keep Fleet action buttons aligned: two existing buttons become one. */
.agent-actions-cell .co-remote-original,
button.co-remote-original { display: none !important; }
button.co-remote-unified {
  display: inline-flex !important; align-items: center; justify-content: center;
  gap: 2px; vertical-align: middle;
}
.co-remote-icon { display: block; width: 18px; height: 18px; object-fit: contain; }
.co-remote-chevron { font: 13px/1 system-ui; opacity: .8; margin-left: 1px; }
.co-remote-menu {
  position: fixed; z-index: 50000; background: #fff; color: #142c3f;
  border: 1px solid #c9dbe6; box-shadow: 0 10px 32px rgba(14,32,50,.22);
  border-radius: 12px; padding: 5px; box-sizing: border-box;
}
.co-remote-option {
  width: 100%; border: none; border-radius: 8px; background: transparent;
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  font: 500 14px/1.3 'Segoe UI',sans-serif; color: inherit; text-align: left;
  cursor: pointer;
}
.co-remote-option:hover, .co-remote-option:focus-visible { background: #e8f4f7; outline: none; }
.co-remote-option img { width: 20px; height: 20px; object-fit: contain; }
.co-remote-unified.remote-occupied {
  position: relative; color: #064b39 !important;
  background: #bdf5da !important; border-color: #0c9a65 !important;
  box-shadow: 0 0 0 2px rgba(10,151,102,.20);
}
.co-remote-unified.remote-occupied::after {
  content: ''; position: absolute; right: -3px; top: -3px;
  width: 8px; height: 8px; background: #079a67;
  border: 1.5px solid #fff; border-radius: 50%; pointer-events: none;
}

/* Remote popover is a child of an active modal dialog when launched there. */
dialog.modal > .co-remote-menu { position: fixed; z-index: 100000; }
.profile-select-create { display:flex; align-items:center; gap:8px; min-width:0; flex:1; }
.profile-select-create select { min-width:0; flex:1 1 auto; }
.profile-select-create .profile-create-btn { flex:0 0 auto; white-space:nowrap; min-height:36px; }
.profile-create-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding-top:12px; }
@media(max-width:600px) { .profile-select-create { width:100%; } .profile-select-create select { width:auto !important; } }
