/* Selection stays anchored to its field, including inside native modal forms. */
.entity-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.entity-popover:popover-open { display: flex; flex-direction: column; }
.entity-popover .picker-search { padding: 12px; flex: 0 0 auto; }
.entity-popover .picker-options { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.entity-popover .picker-option { width: 100%; text-align: left; }
.entity-popover .entity-code { flex: 0 0 40px; overflow-wrap: anywhere; }
.entity-popover .entity-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.entity-popover .picker-hint { padding: 8px 12px; flex: 0 0 auto; font-size: 12px; }
.entity-popover .empty-state { padding: 16px 8px; }
.dialog-header h2 { flex: 1; }
.header-actions .account-button { width: auto; flex: 0 1 auto; min-width: 44px; max-width: 260px; }
.account-button .account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button > svg { flex-shrink: 0; }
